LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 03:06 PM   #1
el barto
LQ Newbie
 
Registered: Aug 2009
Posts: 9

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, 03:16 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

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

http://ubuntuforums.org/showthread.p...ighlight=grub2
 
Old 06-15-2011, 03: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, 05: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, 05:37 PM   #5
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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-15-2011, 11:29 PM   #6
el barto
LQ Newbie
 
Registered: Aug 2009
Posts: 9

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, 05: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 05:12 AM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:25 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
Open Source Consulting | Domain Registration