On Wed, 2006-07-19 at 23:13 +1000, Luke Kendall wrote: <snip> > 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? No, as I mentioned in an off list post, the bit of code in the MBR will contain a jump instruction which will jump into one of the /boot/grub directories where the stage 2 boot loader code will take over. The relevant menu.lst is the one in that directory.
What you need to do is "edit" the first 446 bytes of hda appropriately :-) There are no doubt many ways of achieving this. If the computer has a floppy drive and you have a suitable GRUB boot floppy you can use it to boot the new installation. Once up and running edit /boot/grub/menu.lst to taste and then do sudo grub-install /dev/hda This will overwrite the first 446 bytes with code pointing to /boot/grub. (depending on how you have set up your fstab, the "/boot/grub" on the other partition will either not be mounted at all or will show up as /some_path/boot/grub and will not be relevant) Others reading this may be interested in the following links http://www.troubleshooters.com/linux/grub/index.htm http://www.troubleshooters.com/linux/grub/grub.htm http://www.troubleshooters.com/linux/grub/specialboots.htm http://www.pcug.org.au/oss/wiki/pmwiki.php?n=PCUG.GRUBTroubleshooting cheers, Ken -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
