LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-30-2010, 01:30 AM   #1
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Rep: Reputation: 16
Question Another Problem with GRUB bootloader in Ububtu/XP


Hello Everybody,

I have Ubuntu 9.10 and Windows XP installed on my laptop.
Every thing was OK, until yesterday, when I turn on my
laptop I got a black screen with the word "GRUB" on it and
nothing else happens.

I used the instruction below:

http://www.dedoimedo.com/computers/g...mozTocId842078

But it COULD bring back the GRUB menu, BUT in that menu there
is only options for Ubuntu and NO option for Windows XP to select.

By the way I encountered the same problem 2 weeks ago and the
above instruction could bring back the GRUB menu together
with Win XP and Ubuntu.

I do not know why it does not work now!!!

I would be so grateful if anyone could help me in this matter.


With best regards,
Hassan

Last edited by msbstar; 01-30-2010 at 01:32 AM.
 
Old 01-30-2010, 01:45 AM   #2
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
did you reinstall the GRUB?

to remove the fault.
 
Old 01-30-2010, 02:00 AM   #3
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
Dear Sohail,

I followed that instruction I mentioned above
for several times but all of them gives back
ONLY the Ubuntu NOT the Windows XP.

Still need Help!!!!

Thanks.
Hassan
 
Old 01-30-2010, 02:33 AM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 216Reputation: 216Reputation: 216
Hi,

You need to edit either /boot/grub/menu.lst or /boot/grub/grub.conf and add the following

title Windows
rootnoverify(hd0,0)
chainloader +1

Rootnoverify may need to be redirected to another hard-drive/partition depending on your set-up (hd<disc>, <partition>)
 
Old 01-30-2010, 03:47 AM   #5
ZenDJiNN
LQ Newbie
 
Registered: Jun 2007
Distribution: antiX
Posts: 4

Rep: Reputation: 2
Grub 2 Re-install from LiveCD

Quote:
Originally Posted by msbstar View Post
Hello Everybody,

I have Ubuntu 9.10 and Windows XP installed on my laptop.
Every thing was OK, until yesterday, when I turn on my
laptop I got a black screen with the word "GRUB" on it and
nothing else happens.
I've had the same problem several times, especially when adding new distros etc..... This page always gets me out of trouble, so much so that i don't even worry when it happens anymore. It's a very simple process, and doesn't take long, hopefully it'll get you back up & running as well.

Btw, the first time this happened to me, i tried many other things first (Repairing MBR etc) none of which worked.... but this worked first time i tried it, and has worked everytime since.

Have fun.... Grub2 is way better than Grub Legacy.... it just takes some getting used to.

Cheers.....
 
Old 01-30-2010, 03:48 AM   #6
ZenDJiNN
LQ Newbie
 
Registered: Jun 2007
Distribution: antiX
Posts: 4

Rep: Reputation: 2
Quote:
Originally Posted by r3sistance View Post
Hi,

You need to edit either /boot/grub/menu.lst or /boot/grub/grub.conf and add the following

title Windows
rootnoverify(hd0,0)
chainloader +1

Rootnoverify may need to be redirected to another hard-drive/partition depending on your set-up (hd<disc>, <partition>)
He's using Grub 2, so the above doesn't apply anymore. That's only for the old Grub.
 
Old 01-30-2010, 04:06 AM   #7
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
Dear ZenDJiNN,

Thanks for your reply.

I do not have internet connection on my Ubuntu.
Is it possible to do what you said above whitout
having internet connection?

Best regards. Hassan
 
Old 01-30-2010, 08:03 AM   #8
ZenDJiNN
LQ Newbie
 
Registered: Jun 2007
Distribution: antiX
Posts: 4

Rep: Reputation: 2
Quote:
Originally Posted by msbstar View Post
Dear ZenDJiNN,

Thanks for your reply.

I do not have internet connection on my Ubuntu.
Is it possible to do what you said above whitout
having internet connection?

Best regards. Hassan
Hi Hassan,

It will be if you print out the following first....

Code:
Reinstalling from LiveCD

If you cannot boot from GRUB 2 review the section Boot Problems & Rescue Mode. If a reinstall becomes necessary follow these instructions. Two methods are presented; both require booting from a LiveCD (Ubuntu 9.10, Karmic Koala or later version). If the first method does not work, follow the second method, which is more complex and contains more options and instructions.

SIMPLEST - Copy GRUB 2 Files from the LiveCD

This is a quick and simple method of restoring a broken system's GRUB 2 files. The terminal is used for entering commands and the user must know the device name/partition of the installed system (sda1, sdb5, etc). The problem partition is located and mounted from the LiveCD. The files are then copied from the LiveCD libraries to the proper locations and MBR. It requires the least steps and fewer command line entries than the following methods.

   1. Boot to the LiveCD Desktop (Ubuntu 9.10 or later).
   2. Open a terminal by selecting Applications, Accessories, Terminal from the menu bar.
   3.  Determine the partition with the Ubuntu installation. The fdisk option "-l" is a lowercase "L".
         1. sudo fdisk -l

            If the user isn't sure of the partition, look for one of the appropriate size or formatting.

            Running sudo blkid may provide more information to help locate the proper partition, especially if the partitions are labeled. The device/drive is designated by sdX, with X being the device designation. sda is the first device, sdb is the second, etc. For most users the MBR will be installed to sda, the first drive on their system. The partition is designated by the Y. The first partition is 1, the second is 2. Note the devices and partitions are counted differently. 

   4. Mount the partition containing the Ubuntu installation.

      sudo mount /dev/sdXY /mnt

      Example: sudo mount /dev/sda1 Note: If the user has a separate /boot partition, this must be mounted to /mnt/boot
   
   5. Run the grub-install command as described below. This will reinstall the GRUB 2 files on the mounted partition to the proper location and to the MBR of the designated device.

      sudo grub-install --root-directory=/mnt/ /dev/sdX

      Example: sudo grub-install --root-directory=/mnt/ /dev/sda
   
   6. Reboot
   7. Refresh the GRUB 2 menu with sudo update-grub
Of course you could just go to the 1st link i provided & print out the whole page, but in this instance it's only the above that you need and will save you paper & ink in the process! LOL!

Let me know how it goes if you get a chance? Oh, and no, once you've printed the above out, you won't need Net access to go through the steps above. You will need your Ubuntu 9.10 Live CD though, so make sure you have that to hand.

Have fun.

ZenDJiNN
 
Old 01-30-2010, 08:34 AM   #9
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
Dear ZenDJiNN,

Thanks for your help.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bootloader problem, how to boot using grub... hocheetiong Linux - Newbie 2 08-13-2007 11:58 AM
problem with bootloader grub crashdoyle Fedora 3 09-05-2005 09:21 AM
Grub bootloader problem linmith Slackware 2 02-13-2005 02:15 PM
grub, bootloader problem DrGnome Linux - Software 6 04-13-2004 03:20 PM
grub bootloader problem markshifman Linux - General 2 11-04-2003 10:06 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration