Renaming GRUB stage1 and stage2...

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
Tora OS

Renaming GRUB stage1 and stage2...

Post by Tora OS »

Ive been reading over the various documents, but there is one thing i cant figuer out....

Can I have grub stage1 and stage2 be a different file name?


for example:

Code: Select all

install=(fd0)/BOOT (fd0) (fd0)/GRUB 0x8000 p (fd0)/BOOT.INI
instead of the typical:

Code: Select all

install=(fd0)/boot/grub/stage1 (fd0) (fd0)/boot/grub/stage2 0x8000 p (fd0)/boot/grub/menu.lst
^ I think i have the syntax right.

Thanks for the help....
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Renaming GRUB stage1 and stage2...

Post by Solar »

Shouldn't be a problem. stage1 is just 512 bytes merged with the MBR's partition table, and stage2 is found by sector number, not file name. (Unless you use a stage1_5 IIRC.) So I don't see why renaming the files should make trouble.
Every good solution is obvious once you've found it.
Post Reply