This guide have done using Fedora 8 but will work on another distribution or live CD/DVD/USB. Almost all modern Linux distribution have fdisk and grub. If you have a plan to modify initrd ramdisk, you will need gzip and cpio. You need 4GB+ USB drive, Linpus working fast enough on Imation Atom 4GB
1. Boot to Linux, plug your USB drive and then open a terminal window, login as root. Type 'fdisk -l' (without quote) to see your USB drive device.
- Code: Select all
# fdisk -l
...
Disk /dev/sdb: 4007 MB, 4007657472 bytes
255 heads, 63 sectors/track, 487 cylinders
...
2. Base on above output, I am sure my USB drive detected as /dev/sdb. Now, we will repartition it as Linux file system.
- Code: Select all
# fdisk /dev/sdb
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help):
Press 'm' (without quote) to see fdisk command list and 'p' to see your USB drive current partition table.
Press 'd' to delete a partition.
After all partition deleted, make a new partition using 'n' command.
Select as a primary partition, press 'p'.
Press '1' when fdisk asking for Partition number, we will only make a single partition on our USB drive.
When fdisk asking for First cylinder, press Enter. Press Enter again when fdisk asking for Last cylinder. All USB drive capacity allocated as a single partition.
Set above partition as an active partition, press 'a' and then '1' to select the first partition.
Press 'w' to write partition table to disk and exit.
3. Make sure your USB drive not mounted and then format it as ext2 file system, labeling as 'linpus'.
- Code: Select all
# umount /dev/sdb1
# /sbin/mkfs.ext2 -L linpus /dev/sdb1
4. Unplug and then back plug your USB drive, Fedora will mount it to '/media/linpus'. It also possible manually mount it to '/mnt/linpus'.
- Code: Select all
# mkdir /mnt/linpus
# mount /dev/sdb1 /mnt/linpus
# cd /mnt/linpus
5. I assume you have Aspire One recovery DVD mounted on '/media/cdrom'.
- Code: Select all
# cd /mnt/linpus
# tar xvjf /media/cdrom/hdc._.tar.bz2
# tar xvjf /media/cdrom/addon/audio.tar.bz2
# tar xvjf /media/cdrom/addon/desktop.tar.bz2
# tar xvjf /media/cdrom/addon/euscen.tar.bz2
# tar xvjf /media/cdrom/addon/pcm_patch0622.tar.bz2
# tar xvjf /media/cdrom/addon/release103E.tar.bz2
# tar xvjf /media/cdrom/addon/translate.tar.bz2
# mkdir dev proc sys
Since first time booting language and password setting wizard not working, no need to extract manual0620.tar.bz2 for now.
6. Installing grub boot loader to your USB drive but you must replace Linpus grub directory with my grub directory attached here. It also contain a modified initrd ramdisk base on Fedora 8 initrd. I need stabilized command but not exist in Linpus nash binary. I can use sleep command to replace stabilized but HAL daemon refuse to start. I assume your USB drive is the second disk on your computer.
- Code: Select all
# mv boot/grub boot/grub.old
# tar xvjf blackhawk-boot.tar.bz2
# grub
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
...
grub> root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
grub> find /boot/grub/stage1
(hd1,0)
grub> setup (hd1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd1) (hd1)1+16 p (hd1,0)/boot/grub/stage2
/boot/grub/grub.conf"... succeeded
Done.
grub> quit
Command 'find /boot/grub/stage1' is use to make sure you do not installing grub on wrong disk. If you want to boot Windows XP on SSD from this grub boot loader, add to '/boot/grub/grub.conf':
- Code: Select all
title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
7. Open '/etc/fstab', change Linpus root directory from '/dev/sda1' to 'LABEL=linpus' and comment out swap activation. The last line needed if you want to mount your SSD drive to '/mnt/windows' with read/write permission.
- Code: Select all
# vi etc/fstab
LABEL=linpus / ext2 defaults,noatime 1 1
...
#/dev/sda2 swap swap defaults 0 0
/dev/sda1 /mnt/windows vfat user,exec,umask=0 0 0
On vi, press Ins to edit and Esc to quit from edit mode. Type ':qw' + Enter to save and quit from vi.
8. Open '/etc/rc.d/rc.S' to fix mount point problem and autofsck, change all '/dev/sda1' string to 'LABEL=linpus' (without quote)
- Code: Select all
# vi etc/rc.d/rc.S
...
/sbin/fsck.ext2 -fy LABEL=linpus
...
echo "LABEL=linpus / ext2 rw 0 0">/etc/mtab &
...
9. Unmounting your USB drive, installing Aspire One's Linpus finish.
- Code: Select all
# umount /mnt/linpus
10. Plug your USB drive to Aspire One's USB port, reboot your baby and press F12 to select boot from USB drive. On Linpus, change KPowersave setting to disable autosuspend. Good luck!
Installing Aspire One's Linpus to SD card
Almost same as above except you must make a boot disk (grub on USB or SSD) since SD/MMC reader on Aspire One not detected as boot disk by BIOS. You also need a modified initrd to preload Aspire One SD/MMC card driver on boot, you can download it from my rapidshare link http://rapidshare.com/files/145396296/i ... k.img.html . For testing purpose, safer you make a USB boot disk than installing grub to your SSD/HDD master boot record. WinGrub installing to boot.ini also a safe alternatif. Good luck!
Note: I can not upload my modified initrd and grub directory here, 2.7MB.
Edit: http://rapidshare.com/files/142481498/b ... r.bz2.html
09/05/08: Mount point and autofsck fix. Boot Windows XP on SSD from grub on USB.
09/06/08: add 'mkdir dev proc sys' command at step 5. Without it, Linpus refuse to start. Sorry.
09/08/08: write partition table to disk
09/15/08: a single initrd to boot Linpus on USB or SD + short instruction Linpus on SD.
