Note: this wiki is no longer maintained. If you have any questions related to this wiki, please post them on the CrunchBang forums.

Translations of this page?:

Z-Obsolete LAPTOP Cruncheee partitioning and postinstall tips [OBSOLETE]

There are many advices on the web about how to partition your eeepc.
At first it can be quite confusing and many people just install their OS on the first disk, which results in a pc with a very limited harddisk space.

Why not use it's full potential ?

That's what this howto is about. The examples here applies to Asus eeepc 901 but might be used on other eee's as well.

The content below have been taken from different sources (see below).

Default hardisk layout

  • /dev/sda is the 4GB onboard SSD
  • /dev/sdb is the internal removable 16GB SSD
  • /dev/sdc is the SDHC/SD/MMC card if you have one in there
  • /dev/sdd is your USB Stick (if the SD slot is empty it's /dev/sdc)

New harddisk layout

  • /dev/sda1 is the entire 4GB section. I am mounting it as ”/” and using ext2
  • /dev/sdb1 is 15002 MB of sdb. I am mounting it as ”/home” and using ext2
  • /dev/sdb2 is the remaining 1135MB of sdb and is swap space. The swap space is large to allow for hibernation.

I am using ext2 to allow to lessen the number of writes to the SSD. Of course using a journaled files system is generally better.

Partitioning Step By Step

Partitioning is being done in install process.

1. When you reach the Partition Editor screen, choose Manual

2. In the next screen, mark the existing partitions and choose Delete partition

Now you have this

/dev/sda
  Free space 4034 MB
/dev/sdb
  Free space 16139 MB

3. Now mark the free space in /dev/sda and choose New Partition

  • Leave the size 4030 MB as is.
  • Choose Ext2-journal filesystem
  • In mountpoint choose ”/“

Press the OK button

4. Now mark the free space in /dev/sdb and choose New Partition

  • In this screen, type the size of the new partition 15002 MB
  • In mountpoint choose /home
  • Choose Ext2-journal filesystem

Press the OK button

5. Mark the last free space in /dev/sdb and choose New Partition

  • Leave the size as is
  • Choose Swap area (the Swaparea does not need formatting!)

Press the OK button

6. Double click on each partition and Be sure that all the “Format Partition” options are ticked !

Now your partition scheme should look like this

Press OK

Press Forward

Continuing the install

  1. Again all self-explanatory (name, login name, password, machine name)
  2. Sit back while the installer performs it's magic (it takes a few mins… play some portal)
  3. Hit Restart Now and let the eee reboot
  4. For some reason the eee doesn't always reboot and just hangs, if so hold down the power button for five sec to power down, remove the USB and then power back on
  5. Hit F2 from the BIOS screen
  6. Boot → Hard Disk Drives Make sure that the “SS-Asus” is the first drive
  7. Login… you now have a functioning #! CrunchBang system :-)

Postinstallation Tips

Customising 901 (some parts may apply to 1000)

ed. cimh 13 July 09

After the 9.04 install most things will work fine including wifi and suspend (provided you have created a swap disk). Some minor things are not working such as the f2 wifi toggle, the silver hotkeys, f789 controls for sound. There are a few solutions for these my preferred option is to install fewts scripts.

To do this follow the instructions at: [http://www.statux.org/wiki/index.php?title=EeePC] the steps involve:

  • Adding his repository to your package manager
  • Reloading the manager then search for 'eeepc'
  • Selecting and installing eeepc-acpi-utilities and an eeepc dkms package

Once these are installed f2 should toggle the wifi the volume keys work and so do the hotkeys - the function of the various keys can be changed by editing: etc/default/eeepc-acpi


Speed up slowness on 700, 701 models

Short version

  • p4-clockmod < (add this line to the bottom of you /etc/modules file)
  • /usr/bin/cpufreq-set -d 675MHz -u 900MHz -g ondemand < (add this above “exit 0” in /etc/rc.local)
  • restart

Explanation

The CPU in crunchee uses an “OnDemand” governor which has problems with non-Atom processors. Therefore, the cpu clock speed by default is set to 113MHz (type cpufreq-info to see for yourself) which is why the CPU usage is so high yet the system runs so sluggishly.

Adding the line “p4-clockmod” into your /etc/modules file ensures that the manual clocking module is loaded automatically.

Now you want to make sure that the settings you like are set upon boot.  For that you add the call to ”/usr/bin/cpufreq-set” in /etc/rc.local.  You need to do this before the “exit 0” statement.

/usr/bin/cpufreq-set -d 113MHz -u 900MHz -g ondemand exit 0

This means the CPU can vary between 133MHz (-d indicates lowest speed) and 900MHz (-u indicates highest speed).  Ondemand specifies that the powermanagement should look at my usage.  I'm doing nothing?  Run at 133MHz, I'm watching youtube?  Run at 900MHz.

In order to vary between 600MHz and 900MHz:

/usr/bin/cpufreq-set -d 675MHz -u 900MHz -g ondemand exit 0

WebCam

If your webcam doesn't work, then it has to activated in the BIOS.

  1. Hit F2 at boot and go to the BIOS screen
  2. Use Arrow keys and go to Advanced/Onboard Devices Configuration and press Enter
  3. Go to Onboard Camera press the + sign until it is enabled
  4. Press F10 for Save and Exit

After Installing

After finishing the installation, edit /etc/fstab and make sure that /media/cdrom0 points to the CD drive and not to the USB stick. If you don't, you might get this error when trying to mount a USB stick: “Cannot mount volume. Invalid mount option when attempting to mount the volume.” This is because the installer believes it is installing from a CD drive (bug 150872).

Open /etc/fstab for editing

sudo leafpad /etc/fstab 

Find a line like this (usually at the end):

/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0 

and comment it out by placing a # at the beginning:

#/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0 

Save the file, and you're done.

Press the OK button

Purge logfiles at boot

Logfiles usually eats a lot of space. Put data that is not needed long-term on a tmpfs, which is written to memory.

Again edit /etc/fstab

sudo leafpad /etc/fstab

Add this at the bottom of the file

tmpfs      /var/log        tmpfs        defaults           0    0
tmpfs      /tmp            tmpfs        defaults           0    0
tmpfs      /var/tmp        tmpfs        defaults           0    0
tmpfs      /var/log/apt    tmpfs        defaults           0    0

You will lose the data in these areas after a reboot. Data in /tmp is not a big deal, though you may want logs longer than that.

Update your system

Press Super+u and type Y when the terminal ask for it.

The Super key is the same as the Win key (or the Home button).

I need screenspace !!

  • No problem, get this Firefox plugin Hide Menubar. You can also switch to full screen mode in Firefox using the F11 key.
  • Check the Dropbox Howto it's cool and fits nicely into a eee userspace.

Just remember to replace gedit with leafpad, and thunar with pcmanfm :)

Wifi toggling doesn't work

On the EEE 1000H (and probably other models too) the default install cannot successfully re-enable the wireless after it has been switched off. The solution is to use the pciehp (PCI-e hotplug) module. Unfortunately, this module doesn't exist on the default (“lean”) kernel that is installed with cruncheee, however, it is part of the full eeepc kernel (not the “lean” version). The package is “linux-eeepc”, so a “sudo apt-get install linux-eeepc” should do it. Once the pciehp module is available, the eee-control daemon takes advantage of it. All you need to do is reboot into a kernel that includes the pciehp module, and your wireless toggle button will work as expected.

If you find that the above applies to other EEE models, then please edit this page for the benefit of others.

Other resources

 
cruncheee_partitioning_and_postinstall_tips.txt · Last modified: 2012/05/24 08:22 by machinebacon
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported

Powered by DokuWiki. Hosted by Linode.
Copyright © 2010 CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.