Click to See Complete Forum and Search --> : can't boot windows
I had alot of problems during my linux installation, and I thought they were over, but now I can't boot windows. This wouldn't be that much of a problem, but my modem doesn't work and I figured that I would need to go on the internet to get it working in linux. I have Red Hat Linux 8 and I use the grub boot-loader. I have Linux on one hard drive and Windows on another. I have grub in the Master Boot Record of the linux drive. Grub works, but when i try to boot dos, it just says something like "
revertnotify (something along those lines)
chainloader +1
It just hangs there. I can boot linux fine thankfully.
have you tried searching our forums? there are a lot of posts on how to boot Windows with grub.
here are search results for : grub windows (http://www.justlinux.com/forum/search.php?s=&action=showresults&searchid=702774&sortby=lastpost&sortorder=descending)
Icarus
08-07-2003, 11:07 AM
Or correct him and let him know that the Grub entry should look like
rootnoverify
chainloader +1
;)
Is Windows on the first (Primary Master) drive? If not Windows gets very upset that it's not #1 :rolleyes:
Try adding (if this is the case)...
map (hd0, hd1)
map (hd1, hd0)
rootnoverify (hd1,0)
chainloader +1
should work if Windows is the first primary partition on the primary/slave HD.
According to grub, windows is (hd1, 0).
I believe that is the primary master. My setup is like this
Primary Master-Windows Hard Drive
Primary Slave-nothing
Secondary Master-CD-Rom drive
Secondary Slave-Linux Hard Drive
There is a small chance the primary and secondary may be switched.
and a correction, it does say rootnoverify (hd1, 0).
I have my BIOS setup to check the linux drive first, so grub is installed on that hard drive.
Icarus
08-07-2003, 11:22 AM
hd1,0 is the master on the seconday IDE...0,0 is the Primary master
Either this is correct or the entry is wrong, what does it say where Linux is?
If you know Windows is Primary Master change the entry so it reads 0,0
Try adding the map switching I posted into the Grub for Windows (you can do this during boot by pressing 'e' on the line and 'b' to boot)
Wow, this is wierd
I remebered that I coud check in my BIOS, and it says that the Windows drive is the primary master and linux is secondary slave. Wierder yet, it says that Linux is on (hd0, 0). Could this have anything to do with boot order, because I did change the boot order so the linux drive is checked first.
could i maybe change the drive order so bios will boot off the windows drive first, and then install grub on that MBR?
I just added the map commands to the boot, like so
map (hd0, hd1)
map (hd1, hd0)
rootnoverify (hd1, 0)
chainloader +1
I also just remembered that in the beginning, i was having trouble getting grub to work, I had to boot of a disk. The Red Hat installer was installing grub on my windows MBR, and that was not the disk it checked first. Could that have messed up the windows disk?
Icarus
08-07-2003, 12:15 PM
The disk should be fine, it's getting the pathing right so it will boot is the trick :)
Does linux work OK? If so check all the drive mappings and try mounting the Windows drive to verify where it's at
mount -t vfat /dev/hda1 /mnt/windows
What version of Windows? this command will work with a fat32 drive that is Primary Master. For Secondary Master it's hdc1, for Primary slave it's hdb1...
...and then learn GRUB :D
You can see how grub has mapped your drives by looking in your device.map file, which will be in the same directory as your grub config file.
hd1 will be the second drive installed in your system, regardless of its physical position on your IDE chain. That is, if your drives are installed as Primary Master and Primary Slave, hd0 will be the Master and hd1 will be the Slave; if the drives are configured as Primary Master and Secondary Master instead, hd0 will be the Primary Master and hd1 will be the Secondary Master.
If Windows truly is on the second drive, the drive mappings mahdi gave are correct.