Wednesday, May 31, 2006

Linux resources

Installing Fedora Core 5 into a USB device.

Note: If would be wise to disconnect your internal harddrive while performing this task.

Steps that I went through to install Fecora Core 5 in a USB hard drive.
1) Instert CD 1 into drive bay in type: linux expert. This will force to load usb drivers. Then follow the usual instruction.
2) On reboot, normally it should fail. Reboot again with CD 1 into the drive bay and type

linux rescue

3) Create boot directory in /mnt/source/, like so:

mkdir /mnt/source/boot

4) Assuming usb drive is /dev/sda, the boot partition into /mnt/source/boot, like so:

mount /dev/sda1 /mnt/source/boot, assuming /dev/sda1 is where the boot partition is located.

5) Mount root partition to /mnt/source, like so:

mount /dev/sda2 /mnt/source, where /dev/sda2 is the /(root) partition.

6) Do a change root to the mounted partion,

chroot /mnt/source

and change directory to /boot

7) Create a new image with USB preload, use the command below:

mkinitrd --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod ./usbinitrd-`uname -r`.img `uname -r`

8) Copy the file into the boot partition and edit grub.conf accordingly then reboot.

0 Comments:

Post a Comment

<< Home