Page 1 of 1

GRUB Instllation error for USB drive

Posted: Thu Dec 14, 2006 1:32 am
by extremecoder
Hi all,
I am currently facing some issues in installing grub to my USB flash drive, inorder to boot my kernel from the flash drive. I modified the command "install (fd0)/boot/stage1 (fd0) (fd0)/boot/stage2 (fd0)/boot/menu.cfg", by changing the fd0 with various combinations like sda, sda1; etc. But nothing work out, I only get a GRUB error message "Error (23): Error while parsing the number".

- Regards
_ec

Posted: Thu Dec 14, 2006 2:21 am
by Walling
Have you tried hd2, hd3, maybe hd1 if you only have one harddisc (which is hd0). Maybe this will help you as well: http://www.freesoftwaremagazine.com/articles/grub_intro

Posted: Thu Dec 14, 2006 12:23 pm
by gaf
Have you tried hd2, hd3, maybe hd1 if you only have one harddisc (which is hd0).
Trying could be quite risky. If your BIOS happends to map devices in a strange way you might accidentially zap the bootsector of your hardisk.

- Create a native GRUB floppy
- Copy stage1, stage1.5 and stage2 to your USB drive (folder /boot/grub/)
- Boot GRUB from the floppy and use find

Code: Select all

find /boot/grub/stage1
(drive, partition)
cheers,
gaf