Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 25th, 2006, 7:14 AM   #1
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
How to add Windows entry into GRUB menu?

I didn't know where to post this, so I posted it here.
I am new to Linux so I decided to try it. I installed Debian at my first partition, and I have WinXP on the second one. I chosed GRUB as my bootloader.

My problem is that I can't boot into Windows anymore. Is there a way to configure GRUB so I can see Windows on the list?
__________________
ivankorhner.co.sr
ivan is offline   Reply With Quote
Old Aug 25th, 2006, 7:56 AM   #2
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 422
Rep Power: 4 Wizard1988 is on a distinguished road
Make sure you have the bootable flag set on the Windows Partition.
__________________

Wizard1988 is offline   Reply With Quote
Old Aug 25th, 2006, 11:32 AM   #3
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
As I said, I am completely new to unix, could you please explain how to do that?
__________________
ivankorhner.co.sr
ivan is offline   Reply With Quote
Old Aug 25th, 2006, 11:54 AM   #4
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
Thanks, I will try that when I go home...
__________________
ivankorhner.co.sr
ivan is offline   Reply With Quote
Old Aug 25th, 2006, 12:41 PM   #5
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
edit your grub config file (I'm not sure where it is on Debian, but it seems to be /boot/grub/menu.lst~ on Ubuntu) and add the following:
title=Windows XP
rootnoverify (hd0,1) # you might have to change this, but it's set for /dev/hda2
makeactive
chainloader +1
Jimbo is offline   Reply With Quote
Old Aug 25th, 2006, 1:10 PM   #6
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
if you read the docs for grub it tells you.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Aug 27th, 2006, 6:49 AM   #7
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
I tried editing my conf file and when I try to boot, it freezes.

XP installation is on hd0,4 and I tried everything...
__________________
ivankorhner.co.sr
ivan is offline   Reply With Quote
Old Aug 27th, 2006, 3:00 PM   #8
a thing
Unverified User
 
a thing's Avatar
 
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0 a thing is on a distinguished road
What freezes? Windows or GRUB? Are there any errors printed?
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted.
Got 'Nux?—GNU/Linux and other free software support.
It's GNU/Linux, not just Linux.
a thing is offline   Reply With Quote
Old Aug 27th, 2006, 3:13 PM   #9
glimmy
Programmer
 
glimmy's Avatar
 
Join Date: May 2005
Location: Minnesota
Posts: 42
Rep Power: 0 glimmy is on a distinguished road
Send a message via AIM to glimmy
Quote:
Originally Posted by ivan
I tried editing my conf file and when I try to boot, it freezes.

XP installation is on hd0,4 and I tried everything...

did you re-run the grub install?

# grub-install /dev/hda

assuming that /dev/hda is your main harddrive
glimmy is offline   Reply With Quote
Old Aug 27th, 2006, 3:29 PM   #10
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
Did Windows ever work after you installed Debian? And did you install Windows on an extended partition? (I couldn't get it to...)
Jimbo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual booting rh9 AND Windows XP GRUB PROBLRM bigguy Coder's Corner Lounge 13 Jun 29th, 2006 5:54 PM
Command Prompt SkyPioneer Coder's Corner Lounge 5 May 3rd, 2006 11:07 PM
dropdown menu with persistence? kerriganm HTML / XHTML / CSS 11 Dec 17th, 2005 3:33 PM
major class project Dark Flare Knight Java 9 Apr 29th, 2005 3:45 PM
Help! I have a problem thomas55 C++ 1 Apr 24th, 2005 2:16 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:36 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC