Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-24-2011, 02:18 AM   #1
LQ Newbie
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
windows xp not booting (ubuntu 10.04 and windows xp)

I am using ubuntu 10.04 and windows xp sp3 in my laptop. Everything was ok till yesterday. When I choose windows xp the system reboots and come back to selection panel. Ubuntu works ok. Can any body help me?
Old 01-24-2011, 02:40 AM   #2
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Right, assuming that you have windows installed on disk one on the first partition, add the following code to the file /boot/grub/grub.conf You may require root privileges. Grub sees the first disk as number 0 and first partition on that disk as 0. So let's say for example windows is on disk 2 partition 5 the where you see (hd0,0) in the code below; you would change it to (hd1,4)

This should under normal cases get you to work with windows again:

title Microsoft Windows XP
rootnoverify (hd0,0)
chainloader +1
Old 01-24-2011, 07:17 AM   #3
Larry Webb
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You are not supposed to change the grub2 /boot/grub/grub.cfg files. If you make changes read this tutorial, it will explain using the os-prober and update-grub commands.

grub2 tutorial

If you do decide to change the grub.cfg file it would be

menu entry "Windows"{
set root=(0,1)

Last edited by Larry Webb; 01-24-2011 at 07:22 AM.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu only gets IP address by booting windows first. Daravon Linux - Networking 3 12-31-2008 04:34 PM
Problem with dual booting Ubuntu and windows xp ceon2002 Linux - General 8 06-12-2008 10:43 PM
Windows Vista Dual-Booting with Ubuntu 6.10 Koueen Linux - Newbie 6 06-02-2008 07:12 PM
Duel Booting Windows XP and Ubuntu 7.04 harley51 Ubuntu 2 05-09-2007 05:34 PM
Windows only booting after installing ubuntu Hitty Linux - Software 8 01-15-2007 09:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 PM.

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