(Re)Partitioning the drive

Get on EM mode

Get on EM mode. On foonas-em this is done by pressing the Power button one time after the device powered on, and while the power light is still slowly blinking. If you can't get on EM mode by this way, you can enter 'run fooflboot' on the netconsole.

Partition the disk

We will create 3 partitions : one with about 3GB for the Debian system, another one with 256MB for swap, and another one that takes the rest of the disk.

Install a temporary Debian system on /dev/hda3

TIP

If you already have a working installation of a 2.6 Linux system, you can skip this part and debootstrap from there directly. See Debootstrap Ubuntu from Gentoo

Now we will prepare to boot a pre-made image on /dev/hda3, so we can use the debootstrap tool later on to create our final system on /dev/hda1. Make sure you grab a kernel version compatible with your box.

Note that we will use the mainstream kernel on this system. This means that we have to use the PATA drivers, instead of IDE.
So edit your fstab file, make sure sda1 goes to /, and sda3 goes to /mnt. Ensure we have no "hda1", "hda2" or "hda3", replace for "sda1", "sda2", "sda3".

# vim /etc/fstab

We have to ensure the box will connect to the network. So edit the /etc/network/interfaces file.

# vim /etc/network/interfaces (configure to use with dhcp or static config)

Boot your Ubuntu OS

Make the Power/Back button work

Make Hwclock work

Hwclock only reads from /dev/rtc, but the system makes /dev/rtc0. Add this command to have udev to link rtc->rtc0 every time the system boots, so you can use the hwclock command. Just add the line to the file: