Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Other Distributions > Problems with GRUB

Forgot Password?
 Other Distributions   Post questions about distributions that do not have their own forums in here

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 04-22-2006   #1 (permalink)
Just Joined!
 
Join Date: Apr 2006
Posts: 3
Problems with GRUB

Small problem.

I mainly use XP but like to pop into Ubuntu every now and again, I did so the other night, and a few updates were waiting for me. I didn't really change anything that would affect the booting, but when I shutdown the next morning, horror of horrors, I noticed that the only options in GRUB were the various Ubuntu options, and not any Windows boots (effectively making it impossible for me to boot to XP). I'm wondering if this has to do with a kernel update, but it's irrelevant, how on earth do I change GRUB to have an option to boot windows again?
psychodave is offline  



Reply With Quote
Old 04-22-2006   #2 (permalink)
Linux Engineer
 
spencerf's Avatar
 
Join Date: Jan 2005
Location: Syracuse, NY
Posts: 1,144
when you updated your kernel it is quite probable that your distro automatically updated grub (not so nicely in fact) and deleted your windows entry. Just boot into ubuntu. Point your favorite text editor to: /boot/grub/grub.conf (or menu.lst) and add windows entry:

should look something like this:

Code:
Title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
obviously the (h0,0) part will be determined by where you windows installation is: Grub names things differently so (hd0,0) is actually hda1

here is a short list
hda1 (hd0,0)
hda2 (hd0,1)
hda3 (hd0,2)
hdb1 (hd1,0)
hdb2 (hd1,1)
hdb3 (hd1,2)
__________________
All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL
spencerf is offline   Reply With Quote
Old 04-22-2006   #3 (permalink)
Just Joined!
 
Join Date: Apr 2006
Posts: 3
I figured it would be something like that, I've messed with GRUB before because it auto loads into ubuntu after 10 seconds which is annoying if I want to turn on the computer and leave it to boot, because by default I boot into XP.

Just had no idea what to actually insert into the conf file, I checked after I had posted (stupid!) and as you can guess, it wasn't there - cheers.
psychodave is offline   Reply With Quote
Reply


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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:37 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1