[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian Sarge Grub Question!



Dear:   Fellow Debian Users;

First a little hardware information:

Tyan 2460 Tiger Motherboard.
actual order of physical devices.
/dev/hdc	----> dedicated windows XP pro harddrive 40 gig.
/dev/hdd	----> dedicated Debian Gnu/Linux harddrive 120 gig.

Grub is installed in the MBR of /dev/hdd. I have /dev/hdd setup in the bios as first 
harddrive to boot, which now acts like this, /dev/hdd/, /dev/hdc.

Grub sees this as (hd0) (hd1) which is reverse as to physical installation.

If I run update-grub it writes the physical location to menu.lst  I then have to change 
all kernel configs to the opposite of physical, in grubs case from (hd1) to (hd0).  This 
works great and I am able to boot into Debian.  But it will not boot into Windows, 
even if I use the proper grub root device.  Windows does not boot, but will stop, and 
I have to physically reset the machine.

Now after reading some docs I tried to use the map command like this:

map (hd0) (hd1)
map (hd1) hd0)

This is done at the command line in grub at first boot, then it will boot into windows 
like normal.  I can also add the lines if I edit the windows stanza and will work within 
the boot sequence.  But if I add it to my grub menu.lst under the Windows title it will 
not boot windows.  Something like this,

Title Windows
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
makeactive
chainloader +1

Now in order to boot into windows, I have to at boot time add the map lines under 
the command line, then boot into windows as normal, or hit esc, then highlight the 
windows stanza and hit return.

How can I set this up in grubs menu.lst so it is done automatically?
I have also tried to use map function outside any title area as a global setting, but it 
does not work either.

Also would this be considered a bug, and should I submit a bug report if their is no 
way to set map function in menu.lst.

Thanks,

Rthoreau



Reply to: