On 19 Jul, Ken Caldwell wrote:
>  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. 

Ah, okay, and the grub-install uses the /boot/grub/menu.lst from the
filesystem mounted as / as its data source.  So if I run that from
hda7, then it's that filesystem's copy of menu.lst.

>  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 

Okay.... Though the first link you provide (below), near the end of
the page, gives the example of doing this by doing grub-install
/dev/hda1.  I believe your example is installing to the MBR of the
drive, while the troubleshooter example assumes that the MBR on the
drive is untouched, and will chain load to partition /dev/hda1?

I gather in my case (root and / on /dev/hda7) I could do a similar thing
by running grub and entering this:

grub> root (hd0,6)
grub> setup (hd0) 

>  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 

They're great links!  Though on this one:

>  http://www.troubleshooters.com/linux/grub/index.htm 

These instructions seemed broken (surely the first copy is wrong?):

[EMAIL PROTECTED] root]# mount /dev/fd0u1440 /mnt/test
[EMAIL PROTECTED] root]# cp -p /usr/share/doc/grub-doc-0.93/menu.lst 
/mnt/test/boot/grub/stage1  stage2  
[EMAIL PROTECTED] root]# cp -p /usr/share/doc/grub-doc-0.93/menu.lst 
/mnt/test/boot/grub/menu.lst.example
[EMAIL PROTECTED] root]# umount /dev/fd0u1440
[EMAIL PROTECTED] root]#

>  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 

Thanks, Ken (and James!), that all worked fine.

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