LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-15-2011, 04:06 PM   #1
el barto
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Rep: Reputation: 1
update / reinstall grub


I am running Ubuntu 10.04 LTS and installed it on a partition and grub was installed also in that same partition sdb6.

now I deleted a partition, and resized the partition of Ubuntu so it had more space

it became sdb5

after restarting I got grub rescue

I can boot as follows (after a lot of reading on grub)

set prefix=(hd0,5)/boot/grub (this part is weird as sdb should hd1 .. I think)

insmod normal

normal

I tried to update grub but whatever I do, after rebooting I always end up in grub rescue

I quess I am missing a part

does anyone know the solution to this problem? I am stuck with this

thanks a lot
 
Old 06-15-2011, 04:16 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Here is a link to purge and reinstall grub2:

http://ubuntuforums.org/showthread.p...ighlight=grub2
 
Old 06-15-2011, 04:18 PM   #3
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24
Why not just edit grub.conf and change hd(0,6) to hd(0,5)?

Or, better yet, check to see if you can boot using a UUID for the drive. That way if you move around partitions again it will just boot using a partition-independent unique identifier ...
 
Old 06-15-2011, 06:26 PM   #4
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
If you can boot into ubuntu and from terminal

sudo update-grub


That should change the grub.cfg file for you.

Here is good tutorial on grub2
 
Old 06-15-2011, 06:37 PM   #5
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
If update-grub does not correct the problem, then open up Synaptic and select the grub-pc package and use the menu to choose to reconfigure.

This should correct the root and re-install to the MBR.
 
Old 06-16-2011, 12:29 AM   #6
el barto
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 1
I did the synaptic stuff, the sudo update grub before posting here, and the grub.cfg file seems to be running with the correct info. I know it gets its information from another file but I can not find this file as grub.cfg should not be edited.

I will try the other link, boot from live cd and go into terminal and see where I will get

thanks anyway
 
Old 06-16-2011, 06:07 AM   #7
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
The tutorial I listed gives you the how-to for editing the grub.cfg
List your changes in the /etc/grub.d with a text editor then run update-grub.

Last edited by Larry Webb; 06-16-2011 at 06:12 AM.
 
  


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
[SOLVED] Grub failure and problems with grub or ubuntu reinstall. bboy2448 Linux - General 9 05-12-2011 07:18 AM
[SOLVED] Update or reinstall 11.2 to 11.4 Dizzymman SUSE / openSUSE 6 04-13-2011 10:39 PM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 11:29 AM
Update FC distro without reinstall pimpz0r2000 Linux - Newbie 5 05-22-2006 01:38 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 11:50 AM


All times are GMT -5. The time now is 04:50 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