LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
LinkBack Search this Thread
Old 12-06-2004, 06:32 AM   #1
kpg
LQ Newbie
 
Registered: Feb 2004
Location: Pune, India
Distribution: Slackware 9.1
Posts: 15

Rep: Reputation: 0
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?

Thanks,
Kaustubh
 
Old 12-06-2004, 10:17 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 48
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

Last edited by TigerOC; 12-06-2004 at 10:19 AM.
 
Old 12-06-2004, 07:12 PM   #3
kpg
LQ Newbie
 
Registered: Feb 2004
Location: Pune, India
Distribution: Slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
The corresponding entries are already present.

title Windows NT/2000/XP
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1

Still doesn't work.
 
Old 12-07-2004, 01:18 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 48
You say you have '98 and XP on that drive but on which partitions are they?
 
Old 12-07-2004, 02:57 AM   #5
kpg
LQ Newbie
 
Registered: Feb 2004
Location: Pune, India
Distribution: Slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
Win 98 is on /dev/hda1 ( C: ) and Win XP is on /dev/hda5 ( D: ).
 
Old 12-07-2004, 03:34 AM   #6
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 48
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.
 
Old 12-07-2004, 09:43 AM   #7
kpg
LQ Newbie
 
Registered: Feb 2004
Location: Pune, India
Distribution: Slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 12-07-2004, 10:00 AM   #8
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 48
In addition to your Linux kernels you should have the following separate entries;

title Windows '98
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +

title Windows XP
rootnoverify (hd0,4)
savedefault
makeactive
chainloader +

Note; you cannot have lilo and grub. When grub is installed it will remove lilo

Last edited by TigerOC; 12-07-2004 at 10:03 AM.
 
Old 12-07-2004, 10:05 AM   #9
kpg
LQ Newbie
 
Registered: Feb 2004
Location: Pune, India
Distribution: Slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 12-07-2004, 09:48 PM   #10
kpg
LQ Newbie
 
Registered: Feb 2004
Location: Pune, India
Distribution: Slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
I tried

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.

Kaustubh
 
Old 12-08-2004, 01:20 AM   #11
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 48
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
 
Old 12-08-2004, 01:39 AM   #12
kpg
LQ Newbie
 
Registered: Feb 2004
Location: Pune, India
Distribution: Slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
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.

Kaustubh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing opennms on Debian Sarge odd-geir Linux - Networking 1 10-16-2005 06:48 PM
Help installing Debian Sarge ctkroeker Debian 22 07-27-2005 10:42 AM
Installing gdesklets on Debian Sarge COKE CAN Linux - Software 20 07-25-2005 07:25 AM
Need help installing Debian Sarge please 1702fp Debian 13 03-04-2005 08:01 PM
Installing Qmail on Debian/Sarge lussumo Debian 10 03-29-2004 09:56 AM


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

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration