GRUB and two HDs

Casey Delaney Callendrello cdc2107 at columbia.edu
Tue Aug 17 12:19:01 EDT 2004


Here's another handy trick.  I've never tried it with two hard drives 
but there's no reason to suspect it won't work

1)Install windows so the NT boot loader comes up. 
2) Boot to linux with a boot disk and install grub on the superblock of 
    the linux partition, NOT the MBR with the command

    grub-install --root-directory=/boot /dev/[linux partition]

    Linux partition would be /dev/hdb1 NOT /dev/hdb, for example.

3) Run this command, probably in your home directory.

        dd if=/dev/[partition with GRUB] of=bootsect.lnx bs=512 count=1

4) Copy the bootsect.lnx file created to the c:\ drive of windows 
(probably with a floppy drive.  Don't use the internet, it will garbage 
the file)
5) Add the following line to the end of boot.ini (a file in the c:\ top 
level, hidden and write protected, you'll have to fix that)
    c:\bootsect.lnx="Grub Bootloader"
You may also have to change some settings in boot.ini, like the timeout, 
so you have a chance to choose linux.

There you go!  now you can boot GRUB from Windows.



More information about the gnhlug-discuss mailing list