LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-02-2012, 01:13 PM   #1
m223464
LQ Newbie
 
Registered: Jul 2007
Posts: 10

Rep: Reputation: 1
How do you recover when grub boots to 'grub>'?


How do you recover when grub boots to 'grub>'?

Hi,

I actually know most of the answer to my question, but I am stuck on one point.

If grub.conf is corrupt a server will boot to 'grub>'. To boot the server you need to build the root, kernal and initrd lines which would normally appear in grub.conf. I know how to figure out everything excpet the dev device for the boot partition which is needed for the 'root=' parameter on the kernel directive.

I can find and cat /etc/fstab but I'm on Centos6 and it only lists the UUIDs of the partitions.

I could try each dev device one by one until I eventually select the right one but I was hoping there is a more sensible approach. Sadly I've search online but not found a solution to this yet.

Grateful for any advice on this.

Gareth
 
Old 05-02-2012, 01:39 PM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,342

Rep: Reputation: 184Reputation: 184
root=UUID=<UUID number>
 
Old 05-02-2012, 02:03 PM   #3
m223464
LQ Newbie
 
Registered: Jul 2007
Posts: 10

Original Poster
Rep: Reputation: 1
Thanks. I forgot you could do that. Is there no way of translating it though as I seem to mistype the UUID frequently when performing these recovery tests.
 
Old 05-02-2012, 02:09 PM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,342

Rep: Reputation: 184Reputation: 184
I don't think so, but not for sure, someone on here with more brains(of course it don't take a whole lot to pass me up in brain power LOL) then me might know that answer.
 
Old 05-02-2012, 07:33 PM   #5
jefro
Guru
 
Registered: Mar 2008
Posts: 11,098

Rep: Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362
Live cd's help find out stuff.
 
Old 05-06-2012, 11:14 AM   #6
thewird
LQ Newbie
 
Registered: Feb 2011
Posts: 22

Rep: Reputation: 0
Any chance you figured this out? I have a similiar problem if you could help me out. Thanks.

http://www.linuxquestions.org/questi...issues-943498/

thewird
 
Old 05-07-2012, 06:57 AM   #7
m223464
LQ Newbie
 
Registered: Jul 2007
Posts: 10

Original Poster
Rep: Reputation: 1
Hi,

I concluded there's no way to translate a UUID to device in grub. Whilst tune2fs and blkid offer this, it's obviously not available whilst you're in grub. Therefore the realistic options are:

1. Use the UUID for / in 'cat (hd0,X)/etc/fstab'
2. Trial and error until you hit the correct disk
3. Keep a record of important configuration info of your servers off the system which incudes the UUID maping, which can be used in such emergencies.

From a support perspective I think option 3 would be good practice but may rarely get done.

Thanks again
Gareth
 
Old 05-07-2012, 07:11 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,103

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
grub2 might be your saviour.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to boot into GRUB loader: GRUB command shell boots up: urgent issue wombat53 Linux - Software 9 09-04-2009 06:20 AM
Fedora 9 boots (long delay) as single core if I go to GRUB menu, otherwise boots fine saravkrish Fedora 1 05-27-2008 07:59 AM
/grub/menu.lst file disappeared but computer still boots (grub) rrrssssss Linux - General 5 04-08-2007 09:02 AM
Boots to grub; can't FIND grub.conf, start1 pushtostart Fedora 10 10-09-2006 05:01 PM
boot stops at GRUB GRUB linux never boots coffeedemon Slackware 4 11-09-2004 02:20 PM


All times are GMT -5. The time now is 06:27 AM.

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