----- Original Message ----- From: "Dan Nicholson" <[EMAIL PROTECTED]> To: "BLFS Support List" <[email protected]> Sent: Wednesday, May 31, 2006 5:37 PM Subject: Re: A grubby question - the menu.lst statements
> On 5/31/06, Kevin Alm <[EMAIL PROTECTED]> wrote: > > > > > > title LFS 6.15.4 vmlinuz > > > root (hd0,0) > > > kernel /lfs/vmlinuz-2.6.15.4 root=/dev/hdb1 ro > > > > > Quite correct. Actually lines like: > > > > root (hd0,0) in menu.lst do _nothing_. root (hd0,0) is an interactive mode > > (grub prompt) command. By the time menu.lst is parsed the chance for grub to > > act on it has passed. > > Umm, that's not true. How do explain the above syntax working if root > (hdx,y) does nothing? It would never find your kernel if it didn't. > I've always done it as shown above, and GRUB has been able to find my > kernels regardless of partition. > > -- > Dan > -- When you do for example: root (hd0,0) setup (hd0) from the grub prompt, the first command verifies the existance of the menu.lst, stage1, etc. on partition hd0,0 (that's the root of the grub install, nothing to do with /) and then the second fetchs a clean copy of stage1, encodes a pointer to hd(0,0), and writes the file to the mbr. At the time grub needs the hd(0,0) info, menu.lst isn't available to provide the info as to where menu.lst is. ;) Anyway, you can put any root hd(n,m) you want into menu.lst and it won't matter one bit. I know, I tried. Wanted to redirect to a different menu.lst on another partition one time but it wouldn't work. Regards, Kevin -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
