On 19 Jul, Carlo Sogono wrote:
>  [EMAIL PROTECTED] wrote:
> > 1) How will grub work out where to find menu.lst?  How will it 'know'
> >    to use the updated /dev/hda7/boot/grub/menu.lst rather than the out
> >    of date /dev/hda6/boot/grub/menu.lst version?
>  
>  GRUB calls this its "root device" and info on where to find the root 
>  device is found in the MBR. Type "grub" in your console and then "help 
>  root".

I know.  But there is /dev/hda6/boot/grub/menu.lst that says root is
hda6, and /dev/hda7/boot/grub/menu.lst which says it is hda7.  Which is
used?

And does anyone know where apt decides where root is?  It doesn't get
the info from the menu.lst used to boot the system, nor from fstab - it
seems to be stored in a config file that was used during the install,
I've discovered as a result of my copy of hda6 to hda7.

James wrote:

> /boot/grub/menu.lst specifically shows what disks and partitions are used.
> you can specify 
> root (hd0,1)
> bla bla
> 
> or specify the root here
>    (hd0,6)/boot/vmlinuz-bla
> 
> fstab must be correct or it wont work (or worse)
> if / in listed as /dev/hda6 even though it is hda7 6 is used 7 is not and 
> this 
> explains your chaos.

Yes, I know, and that's why I quickly fixed it.

> The best way to do this:
> boot knoppix
> fiddle your partitions
> fix the files eg fstab
> boot your system
> 
> even easier have another partition/system. boot that and fix this.

Well, yes, that's what I did, since I had two bootable Ubuntu
installations. :-)

The thing I'm trying to fix is apt messing up menu.lst because it
has noted that it was originally installed to hda6 (I theorise).

And I'm wondering which menu.lst grub will use to boot from.  Or does
it look for /boot/grub/menu.lst across all partitions and do a union of
all the bootable kernels it finds?

luke

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to