Booting Linux off of a USB drive
I am trying to boot Linux from a USB hard drive on a Thinkpad T40
i found instruction on "simonf.com/usb/ " web site
loading scsi and usb modules in the initrd level, thanks to the author.
initrd print out
#!/bin/nash
echo "Loading jbd.o module"
insmod /lib/jbd.o
echo "Loading ext3.o module"
insmod /lib/ext3.o
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo "Loading usb modules"
insmod /lib/usbcore.o
insmod /lib/scsi_mod.o
insmod /lib/sd_mod.o
insmod /lib/usb-storage.o
insmod /lib/usb-uhci.o
/bin/sleep 5
echo Creating block devices
mkdevices /dev
echo Creating root device
mkrootdev /dev/root
/bin/sfdisk -R /dev/sda
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/root /sysroot
pivot_root /sysroot /sysroot/initrd
umount /initrd/proc
I proceed and try to load i get this errors on executing this section
running initrd load.
echo Creating block devices
mkdevices /dev
echo Creating root device
mkrootdev /dev/root
/bin/sfdisk -R /dev/sda
mkrootdev /dev/root
field to open /proc/partition : 2
field to open /proc/cmdline: 2
/dev/sda no such device
sfdisk cannotopen /dev/sda for reading
/bin/sfdidk exited ubnormaly
at the Partition check i get all partition correct.
any clue ?
|