noorez
May 19th, 2008, 08:36 PM
I tried to install grub to a usb device using these instructions:
1. format usb disk to FAT.
2. copy /usr/lib/grub/i386-pc/stage* /media/disk/boot/grub/
3. grub > root (hd1,0)
4. grub > setup (hd1)
5. quit
to test it i booted from the usb disk (note: hd1 is now the hard drive on my computer, hd0 is the usb disk since i booted from it)
to boot into ubuntu i did this:
grub> root (hd1,4)
grub> kernel /boot/vmlinz.... root=/dev/sda5 ro quiet splash
grub> initrd /boot/initrd...
grub> boot
this worked.
when i tried to boot into windows xp i did this:
grub> root (hd1,0)
grub> makeactive
grub> chainloader +1
grub> boot
this hands on the "Starting up..."
1. format usb disk to FAT.
2. copy /usr/lib/grub/i386-pc/stage* /media/disk/boot/grub/
3. grub > root (hd1,0)
4. grub > setup (hd1)
5. quit
to test it i booted from the usb disk (note: hd1 is now the hard drive on my computer, hd0 is the usb disk since i booted from it)
to boot into ubuntu i did this:
grub> root (hd1,4)
grub> kernel /boot/vmlinz.... root=/dev/sda5 ro quiet splash
grub> initrd /boot/initrd...
grub> boot
this worked.
when i tried to boot into windows xp i did this:
grub> root (hd1,0)
grub> makeactive
grub> chainloader +1
grub> boot
this hands on the "Starting up..."