LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-19-2009, 01:56 PM   #1
RazorV
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Rep: Reputation: 0
GRUB stuck in Continual REBOOT - Help Please...Newbie..


Okay I am totally NEW and totally LOST in the biggest way. I loaded Ubuntu on my 2nd internal hard dive in my HP Notebook. See my 'fdisk -l' below:

root@ubuntu:~# fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdbb8555d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13297 106808121 42 SFS
/dev/sda2 13298 14594 10411647+ 42 SFS


Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3042211a

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13995 112414806 83 Linux
/dev/sdb2 13996 14593 4803435 5 Extended
/dev/sdb5 13996 14593 4803403+ 82 Linux swap / Solaris

root@ubuntu:~#


Everything was working fine after install of Ubuntu. I rebooted into Ubuntu many times – no problems. Then I reboot and went into Windows Visa (which is on my first harddirve) for the first time since I installed Ubuntu. Vista booted right up – no problem.

I then shutdown Vista and my notebook rebooted. I get the POST then I see 'GRUB loading....' and then, my notebook reboots. It is stuck in a continual reboot.

Obviously Vista rewrote the MBR and now GRUB will not load properly.

Furthermore I have tried to reinstall GRUB but not sure what I'm doing. When I run the command below It says STAGE1 not found.

grub> find /boot/grub/stage1

Error 15: File not found

grub>



I also tried this:

# grub-install --root-directory=/boot /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot/boot: Not found or not a block device.
root@ubuntu:~#


Please help me. I really need to get my notebook running for work and I have tried and read everything and I am totally lost.

Thanks,
Greg
 
Old 11-19-2009, 02:10 PM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
What happens when you try grub-install /dev/sda
 
Old 11-19-2009, 02:18 PM   #3
RazorV
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ronlau9 View Post
What happens when you try grub-install /dev/sda
# grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.
root@ubuntu:~#


I am so screwed if I can't get this working. thanks for trying to help me.
 
Old 11-19-2009, 02:57 PM   #4
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Can you boot UBUNTU from the install media ?
And if remember it well also a option repair a installed version ore something like that
There is a option boot from hard drive

Last edited by ronlau9; 11-19-2009 at 03:00 PM.
 
Old 11-19-2009, 03:03 PM   #5
RazorV
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ronlau9 View Post
Can you boot UBUNTU from the install media ?
And if remember it well also a option repair a installed version ore something like that
There is a option boot from hard drive
No. I select that option and its says,

Booting from First Hard Drive....
GRUB Loading.....


Then it reboots.

I'm so pissed!

thanks again for continuing to try and help me.
 
Old 11-19-2009, 03:22 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,344

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
try this
#grub
grub> root (hd1,0)
grub> setup (hd0)
grub> quit

Last edited by colorpurple21859; 11-19-2009 at 03:26 PM.
 
Old 11-20-2009, 08:46 AM   #7
RazorV
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Okay I couldn't wait any longer. So I reinstalled Ubuntu and now Grub works. I get a menu on bootup to select Ubuntu, Memory Test, or Window's Vista.

I currently am using Ubuntu and plan on switching to it from vista. However, I really need help with figuring out GRUB.

Can some help me get all the details of GRUB now that my system is working?

I ask because as soon as I boot into Vista, I know GRUB will go into a continual REBOOT because Vista will screw it up.

This way I will have all the details I need and with some of your help I will eventually understand how to reinstall GRUB correctly and fix this problem with Vista rewriting the MBR once and for all.

thanks and please let me know what commands I need to type in order to reinstall GRUB correctly.

Oddly, I have searched for a menu.lst and a grub.cfg and cannot find them anywhere except in the "example" directory of GRUB.

Greg
Sarastoa, FL
 
Old 11-20-2009, 01:10 PM   #8
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
In you're original post you mention UBUNTU , which version of UBUNTU are we exactly talking about.
UBUNTU 9.10 uses GRUB2
The older version use GRUB1
The syntax is totally different.
Some people said that GRUB2 is not yet totally stable .
True or not we first neat to know which version you are using
GRUB1 uses menu.lst you can find it /grub/boot/
GRUB2 uses grub.cfg you can find it /boot/grub/
Depending on the GRUB version you use you need one of this files , if you mist it it won't work
 
Old 11-20-2009, 01:42 PM   #9
RazorV
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ronlau9 View Post
In you're original post you mention UBUNTU , which version of UBUNTU are we exactly talking about.
UBUNTU 9.10 uses GRUB2
The older version use GRUB1
The syntax is totally different.
Some people said that GRUB2 is not yet totally stable .
True or not we first neat to know which version you are using
GRUB1 uses menu.lst you can find it /grub/boot/
GRUB2 uses grub.cfg you can find it /boot/grub/
Depending on the GRUB version you use you need one of this files , if you mist it it won't work
Hello Ronlau9,

I can't thank you enough for helping me and for your time. I really need to boot into Vista but I'm very afraid to do so because I don't want to have a computer that is stuck again in a continual reboot.

To answer your Q's I am running Ubuntu 9.10 Karmic Kola.

I must be running GRUB2 because I only have a '/boot/grub' folder and inside the folder is 'grub.cfg'.

k now that we have that, do you want me to email you or post the contents of the grub.cfg file?

thanks again so much,

Greg
 
Old 11-20-2009, 02:41 PM   #10
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
My grub is already customize to my needs beside that it is booting 6 different Os so it a hell of list
It might a good idea to visit http://gnu.org/software/grub/
 
Old 11-29-2009, 09:58 PM   #11
pepe_le_piu
LQ Newbie
 
Registered: Nov 2009
Distribution: Karmic Koala
Posts: 4

Rep: Reputation: 0
Hey RazorV. I've been having the same problem, and apparently Vista rewrites the MBR every time it boots. I still haven't found a way to keep Vista from screwing things up, but I already have the process down to fix the mbr every time this happens.

Try using this process: https://wiki.ubuntu.com/Grub2#Recover Grub 2 via LiveCD

It works for me...

Last edited by pepe_le_piu; 11-29-2009 at 10:05 PM.
 
1 members found this post helpful.
Old 11-30-2009, 08:46 AM   #12
RazorV
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pepe_le_piu View Post
Hey RazorV. I've been having the same problem, and apparently Vista rewrites the MBR every time it boots. I still haven't found a way to keep Vista from screwing things up, but I already have the process down to fix the mbr every time this happens.

Try using this process: https://wiki.ubuntu.com/Grub2#Recover Grub 2 via LiveCD

It works for me...
OMG finially someone that can help me. What a Godsend! I am so darn scared to boot into my Vista Partition using GRUB because I know Vista will render my computer useless due to Vista RW'ing the MRB.

When I have some time, i will probaby try this.

Let me ask, do you have 1 or 2 drives in your computer? My notebook (an HP dv9500 series) has 2 HD in it. so I'm wondering if this procedure will work. I'm sure it will if I can map out the details correctly.

I'm so new to Ubuntu that sometimes I get confused as to the hardware device names.

I'm glad it worked for you.

Cheers and hope to hear back.

Greg
 
Old 11-30-2009, 09:11 AM   #13
RazorV
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Wow, i just read those instructions in the link that pepe_le_piu sent and have some questions becuase I have no clue the exact commands to run re: my fdisk output.

Below is my Fdisk output:

gheidt@ghUbuntu:~$ sudo fdisk -l
[sudo] password for gheidt:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdbb8555d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13297 106808121 42 SFS
/dev/sda2 13298 14594 10411647+ 42 SFS

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3042211a

Device Boot Start End Blocks Id System
/dev/sdb1 1 13995 112414806 83 Linux
/dev/sdb2 13996 14593 4803435 5 Extended
/dev/sdb5 13996 14593 4803403+ 82 Linux swap / Solaris
gheidt@ghUbuntu:~$



Vista is on /dev/sda1 and obviously linux is on /dev/sdb1. Two seperate harddrives.


So in response to this statement in the instructions:

* Now, you need to remember which device listed is your linux distribution, for reference, /dev/sda1 will be used. Now we need to mount the filesystem to /mnt

$ sudo mount /dev/sda1 /mnt"



What would I type?



Then, the instructions say:
* Now mount the rest of your devices

$ sudo mount --bind /dev /mnt/dev



What other devices would I mount according to my fdisk output above?



And lastly, the instructions say:

* Now you need to edit the /etc/default/grub file to fit your system

$ nano /etc/default/grub


I have no idea what to edit in the /etc/default/grub file?!? Below is my file:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY="true"



Not sure what to put in there.



Can anyone help out a truly novice newbie? I do apologize for the questions, but really appreciate any help. I am forced to use Ubuntu and I don't dare boot in to vista due to it rewriting the MBR. I really haven't needed to truly boot Vista, but i do have things in Adobe Indesign that i need to get to. And in Sarasota, I need to get to the MLS site to look up properties and it only works with the newest version of IE.

Other than that I find Ubuntu so much nicer and quicker than windows. I really love it and I do like all the folks that are trying to help me out. Thanks so much again!

thanks to all,
Greg
 
Old 12-01-2009, 01:28 AM   #14
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
What you posted is that really you're GRUB.CFG ?
 
Old 12-01-2009, 05:02 AM   #15
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Here is another way to reinstall grub2 from the Ubuntu 9.10 live CD without having to chroot into your installed system:
http://members.iinet.net/~herman546/...B_from_Live_CD
That site has lots of good info on grub2:
http://members.iinet.net/~herman546/p20.html
I have not heard of Vista rewriting the MBR every time it boots before. Do you have some antivirus program or security app installed in Vista that protects the MBR or something like that?

Last edited by tommcd; 12-01-2009 at 05:07 AM.
 
  


Reply

Tags
grub2, mbr


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
Ultra Noob-stuck on Login screen after first reboot-Fedora9 isaliveart Linux - Newbie 26 09-03-2008 04:21 PM
correct grub.conf, reboot and cannot get grub prompt... sportivo888 Linux - Newbie 1 12-10-2007 11:47 PM
FC3 - Computer stuck in continual reboot loop brandor Fedora 1 11-15-2004 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:58 AM.

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
Open Source Consulting | Domain Registration