grub rescue error

Asked by Jack Vultaggio

I get a "no such device" error when i try to start my computer. I had to reinstall Ubuntu after a crash and now I can see but can't get to all my files nor can i restart the computer without the Installation CD. Help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
Jack Vultaggio
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
mycae (mycae) said :
#1

Sounds like the bootloader has been damaged.

You can try to recover your bootloader using this procedure:
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#2

not successful yet

Revision history for this message
delance (olivier-delance) said :
#3

Have a look at:
   https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
but you should get same result.
Could you provide whole error message ?

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#4

error message is:
error: no such device: 5c0c1c4d-c241-45b4-8b7b-37a46e06a6f7"
Grub Rescue>

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#5

I also have a 500gb external drive attached

Revision history for this message
delance (olivier-delance) said :
#6

There is an inconsistency between the UUID:
  in file /boot/grub/grub.cfg
  of partition, provided by "sudo blkid"
Running https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD should have solved this issue.
Could you run following procedure:
---
X-provide data about boot configuration

There is a standard script provided to analyse boot configuration.
Could you download script at:
   http://sourceforge.net/projects/bootinfoscript/
Then in a terminal (Ctrl+Alt+T) run command:
    sudo bash boot_info_script055.sh
This will produce a file named: RESULTS.txt
Paste content of this file in http://paste.ubuntu.com/ and provide in this thread the link to Web page.
Please don't post file directly in thread, else it will make thread difficult to read.

Revision history for this message
Sebastian Powell (telattract) said :
#7

I apologize I did not mean to be a source for answers about Ubuntu ...It is
actually I that needs help for I am brand new to this system and have very
little skill sets when it comes to knowing my way around....I do apologize,
I can assure you though that the level of knowledge and help that I have
received amongst the Open Source / Launch Pad and Overall Ubuntu help
experience has been more than adequate, in fact down right helpful...so I AM
SURE SOMEONE WILL ANSWER YOUR QUESTIONS PROPERLY AND BEST OF LUCK!

Respectfully,

Sebastian Powell

On Sat, Jan 1, 2011 at 3:20 AM, delance <
<email address hidden>> wrote:

> Question #139648 on grub2 in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/grub2/+question/139648
>
> Status: Open => Answered
>
> delance proposed the following answer:
> There is an inconsistency between the UUID:
> in file /boot/grub/grub.cfg
> of partition, provided by "sudo blkid"
> Running
> https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCDshould have solved this issue.
> Could you run following procedure:
> ---
> X-provide data about boot configuration
>
> There is a standard script provided to analyse boot configuration.
> Could you download script at:
> http://sourceforge.net/projects/bootinfoscript/
> Then in a terminal (Ctrl+Alt+T) run command:
> sudo bash boot_info_script055.sh
> This will produce a file named: RESULTS.txt
> Paste content of this file in http://paste.ubuntu.com/ and provide in this
> thread the link to Web page.
> Please don't post file directly in thread, else it will make thread
> difficult to read.
>
> --
> You received this question notification because you are an answer
> contact for Ubuntu.
>

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#8

This is what happened when I type "sudo bash boot_info_script055.sh" in the terminal window:

Bash: boot_info_script-055.sh: Nus such file or directory... I am retrying a reinstall and will keep you posted.

Thank you

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#9

the install is taking forever... It appears to be working but nothing is happening on the Applying Changes: Preparing packages... It said it may take some time but its going on over a half an hour

is that normal? or am I stuck again?

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#10

reinstalled still failed

Revision history for this message
delance (olivier-delance) said :
#11

We need to have a look at partition table.
---
In a terminal (Applications->Accessories->Terminal), type the following command:
   sudo parted -l
where "-l" is lowercase "L". This will display list of partition.

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#12

This is what I got after running that command: (note: I should have 160gb internal HD and 500gb external hd

ubuntu@ubuntu:~$ sudo parted -l
Model: ATA ST3160021A (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 1049kB 157GB 157GB primary ext4 boot
 2 157GB 160GB 3077MB extended
 5 157GB 160GB 3077MB logical linux-swap(v1)

Model: SanDisk U3 Cruzer Micro (scsi)
Disk /dev/sdb: 1020MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 31.2kB 1019MB 1019MB primary fat32 boot, lba

Warning: Unable to open /dev/sr1 read-write (Read-only file system). /dev/sr1
has been opened read-only.
Error: /dev/sr1: unrecognised disk label

Warning: Unable to open /dev/sr2 read-write (Read-only file system). /dev/sr2
has been opened read-only.
Error: /dev/sr2: unrecognised disk label

Revision history for this message
delance (olivier-delance) said :
#13

As external drive is FAT32, I presume you have any OS on it.
If you installed Ubuntu while external drive was connected, perhaps there was a mismatch between internal and external drive.

Could you:
1) unplug external drive
2) run https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
3) boot without external drive
4) boot with external drive

If three first steps are OK, we have won.
If (4) fails, we will have to make external disk not bootable.
but if (3) fails, we have still a real issue!

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#14

Ok... my reboot failed and gave me the following message: "Installation defaults for the Gnome Power Manager have been installed properly."

This message come up in the right hand corner right after I put in my password.

The external drive was installed when I installed Ubuntu the first time... remember, I installed it again when this all started a couple of weeks ago because I could not access my system. I think it had something to do with my internal drive running out of space.

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#15

I was just checking through my "Media" file on the internal HD and found that two partition are unreadable /media/a686e4c5-1ac6-43ac-a195-b38f8fac5e8f/media/4650194550193CDD and /media/a686e4c5-1ac6-43ac-a195-b38f8fac5e8f/media/f51c0220-b597-4ca8-8f62-894d74c842a8. Is there a way to access them. That is where my information is located.

Revision history for this message
delance (olivier-delance) said :
#16

Partitions of internal drive should not be in /media folder. This one is for partitions of removable mass memory storage (hard disk, USB stick, ...).
Could you unplug external disk (and all external USB stick also), and run:
   sudo du -sm /media
You will get the number of MBytes on /media.
The result should be zero or one. If yes, continue.
Then run:
   sudo ls /media
If you get some folders, then run:
   sudo rm -rf /media/*
It will remove empty folders.

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#17

ok... that was completed successfully, now what?

Revision history for this message
delance (olivier-delance) said :
#18

Now connect external hard drive, and it should appear in /media.
Check you can add new files into it.

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#19

ok... i'll re connect. But what about the Gnome Power Manager error on reboot? I can only boot with the LiveCD

Revision history for this message
delance (olivier-delance) said :
#20

Gnome is launched after login, so very late in boot process from hard disk.
When you boot from disk, did you reach login screen and did you enter username/password ?
Else at which step are you stopped ?

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#21

yes, i get to the log in screen but I am unable to login... I put in my password but it eventually comes back to the login screen

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#22

I also noticed that on my Grub screen where I can choose the OS, there are at least 4 Ubuntu to choose from... can this be causing the problem? Is there a way to uninstall them?

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#23

Also, when I try and access my documents on the internal drive it says I am not the owner and do not have permission... I think I've made a mess

Revision history for this message
delance (olivier-delance) said :
#24

Your problem is unrelated to Grub. So please don't touch anything on Grub.
Your graphic server woks probably well also.
When you log in, some scripts are run at start, and one of them fails. So you return to login screen.
I will have a look tomorrow, on how to investigate.
You can try 2nd and 3rd lines of Grub menu, but I think you will get same issue.
If you want to search, you can have a look at end of files in /var/log.

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#25

I did... thank you; Should I try and reinstall the Gnome power manager, or just hold up until tomorrow?

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#26

I did a little more research after reinstalling gnome power manager failed and I believe the cause of my problem is that my internal hard drive where my original linux is installed has no free space. When I try to access my documents, to move them to my 500gb external drive, I am unable to access them. Is there a way I can move these files from a terminal window?

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#27

Grub problem resolved, thank you. But I still can't boot because of the Gnome Power Management problem which I think is due to my internal drive running out of disk space. I have a new question running, but have not been able to resolve the issue.

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#28

Thanks delance, that solved my question.

Revision history for this message
Tom (tom6) said :
#29

Hi

Are you still having troubles accessing the data? When you try to boot up the hard-drive installed version of Ubuntu do you get to a boot-menu that has various options for booting into Ubuntu? The 2nd Ubuntu option should have "recovery mode" at the end of it's line. This "recovery mode" should get you to another menu that has an option to "Clear some space"

Please let us know how this is going!
Good luck and regards from
Tom :)

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#30

not exactly... i have new problems after moving documents from my home file. but i started a new questions as it doesn't pertain to Grub2. It sounds like your way would have been easier... thanks for the input.

Revision history for this message
Tom (tom6) said :
#31

Hi :)

My method of clearing space is only the first step. It sounds as though you already did the next bit of getting some of the data safely off elsewhere. Now hopefully you might be able to boot into that older install of Ubuntu? Err i am going to copy this comment to your thread at
https://answers.launchpad.net/ubuntu/+source/grub2/+question/140291

Ok, many thanks and regards from
Tom :)

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#32

Thank you... I do not have an install that is working on the external. Should I install one?

Revision history for this message
Jack Vultaggio (jvultaggio) said :
#33

my grub2 problem is solved... but there other problems in other posted questions.

Thank you all for your help