LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   grub - fedora - windows server 2003 (https://www.linuxquestions.org/questions/linux-software-2/grub-fedora-windows-server-2003-a-125789/)

amatin 12-14-2003 03:22 PM

grub - fedora - windows server 2003
 
Greetings,

I have a question regarding grub, linux (fedora) and windows server 2003. I have a 2 drive system. I installed fedora on hda. After that, I installed windows server 2003 on hdd (slave on ide2). I had to scarf the page partition from linux to complete the install, but, I have linux back to normal, and now have windows server 2003 solely on the secondary slave.

I'm trying to get grub to boot server2003. I have the following entry in my grub.conf file:

title Windows Server 2003
map (hd3) (hd0)
map (hd0) (hd3)
rootnoverify (hd0,0)
makeactive
chainloader +1

I get a series of errors based on what I use in rootnoverify. (tried hd0, and hd3)

Question 1: When you use map, i.e. make hd3 look like hd0, does rootnoverify need the *original*, or the *mapped* hd?

Question 2: Due to the way windows likes to do things, it installed it's boot loader on hd0. I coppied the boot.ini, ntdetect, etc from the swap partition to the root directory of hd3, remade the swap partition and linux is happy. Do I need to in essence, make hd3 hd0, and install windows server, then re-cable, then deal with grub?

TIA
Brian

BrianNJ 12-14-2003 07:34 PM

.... i do the same thing for winxp. xp's partition is the first partition on my ide primary slave. my grub section is as follows...
Code:

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

good luck!

amatin 12-14-2003 08:06 PM

thanks for the info
however, I have a windoze (server 2003) on hda3 (3rd drive)
please..how does grub view the mappings...?

if you map a drive...then..does that become the primary drive?

BrianNJ 12-15-2003 09:42 AM

i would be tempted to try...
Code:

title WindowsServer2003
map (hd0) (hd3)
map (hd3) (hd0)
root (hd3,0)
chainloader +1


amatin 12-16-2003 11:21 AM

finally figured it out! The drive is the secondary slave, but only the *second* hard drive. Therefore, map (hd0,hd1) map (hd1,h0) worked!.

Now, for the next question:

Does this mapping actually affect the drive information? I.E. do I modiy boot.ini as if it's booting from the first drive? Or modify it for the actual scenario?

TIA
Brian

amatin 12-18-2003 03:05 PM

Final solution:

Apparently, map(hd1,hd0) does an actual hardware map. So the final grub configuration is as follows:

title Windows Server 2003
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1

Then, the last remaining problem is that since windoze is required to be installed on primary controller, server 2003 still thought my linux swap file (the one I cannablized to do the install) was still there. After remaking the swap file a few times, I finally disable disk0 in the hardware profile. Now, Windows server 2003 boots cleanly from grub, and does not do a chdsk on what is my linux swap partition!

Only took a week:)

Hope this experience helps others.....

Regards,
Brian


All times are GMT -5. The time now is 03:24 AM.