Can't boot into windows after installing Debian Sarge
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Can't boot into windows after installing Debian Sarge
Hi!
Here's the situation. I have a 40GB harddrive with Win98,WinXP and Slackware
10 running. I had about 3GB of free space on which I installed Debian Sarge.
Debian Sarge installed grub as its boot loader in the MBR. Now, Sarge and
Slack worked, but Windows now would not boot. So I made the entry in the
lilo.conf file from Slack ( from which Windows was booting ) for Sarge. Still
no luck and I'm stumped. Can anyone suggest a way out of this?
You need an entry like this in /boot/grub/menu.lst;
title Windows 95/98/NT/2000
root (hd0,0)
makeactive
chainloader +1
if you have a look at the file /boot/grub/device.map it will list the drives you have in the format hdX,Y and you just need to specify Y which is the partition number -1 because grub starts from 0. so if the partition is say hda5 then it will be hd0,4. You then need to then do update-grub
so the parameters for '98 are (hd0,0) and xp (hd0,4). Make sure you are writing the grub file to the mbr after editing. You can also do a manual entry when you get to grub boot splash by using the edit option.
Can you tell me what the menu.lst should look like? Should I have seperate entries for win 98 and xp? I tried that from lilo, but it didn't work. Here's what I put in lilo.conf.
other = /dev/hda5
label = Windows
table = /dev/hda
Isn't the last entry similar to what I put in lilo? It didn't work from lilo. I'll try in grub. My sarge kernel won't boot now. It gives an error while mounting. So planning to re-installing sarge tomorrow. Will keep you guys posted on what happens. Thanks for the replies.
title Windows XP
rootnoverify (hd0,4)
savedefault
makeactive
chainloader +1
in menu.lst. It says something about requesting an invalid device. However, when I remove makeactive, it says NTLDR not found. Guess I'm going to have to reinstall windows.
You don't have to re-install Windblows. Just use the install cd to re-install the boot loader on the mbr. To clear the mbr you can also boot with with a M$ boot disk and at the prompt do fdisk /mbr
Hey yeah. Thanx a lot man. You just saved me a lot of time! I'll create a boot disk for linux, reinstall windblows's boot loader and reinstall grub correctly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.