GRUB Instllation error for USB drive

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
extremecoder
Member
Member
Posts: 59
Joined: Tue May 23, 2006 11:00 pm

GRUB Instllation error for USB drive

Post 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
User avatar
Walling
Member
Member
Posts: 158
Joined: Mon Dec 04, 2006 6:06 am
Location: Berlin, Germany

Post 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
User avatar
gaf
Member
Member
Posts: 349
Joined: Thu Oct 21, 2004 11:00 pm
Location: Munich, Germany

Post 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
Post Reply