Wrong UUID at boot

Help with issues regarding installation of Debian

Wrong UUID at boot

Postby zkab » 2012-09-17 21:06

I am running LDME with 2 disks.
The disks are partitioned like:
sda1 swap
sda2 /home
sdb1 system (/)

It has been working OK but recently I had to change disk sdb and install a new system.
When I installed MATE/Cinnamon[64-bit] on sdb and rebooted ... GRUB complained ... no such device: UUID xxx-xxx where xxx-xxx is the UUID for the old sdb that I replaced.
I installed GRUB on sdb1.
How do get rid of this error ?
zkab
 
Posts: 241
Joined: 2009-07-16 14:34

Re: Wrong UUID at boot

Postby kiyop » 2012-09-18 09:31

zkab wrote:I am running LDME with 2 disks.

I do not want to communicate with the persion who made a mistake in writing LMDE. :wink:

zkab wrote:I had to change disk sdb and install a new system.

You replaced the old second HDD (/dev/sdb) with the new HDD, didn't you?
Or ... You just installed LMDE (64bit, MATE/Cinnamon) on the second HDD?
I assume that you replaced the old second HDD with the new HDD and assume that the first boot media in BIOS is set to /dev/sda.
If not, change the below according to your situation.

Grub2 code installed on the MBR of the first boot media tries to find the partition in the old HDD which you have removed just before the installation.

You should have installed grub2 code onto the MBR of the media which BIOS (EFI?) tries to boot first, except removable media.
For example, /dev/sda (or /dev/sdb).

It is very natural that you get the error; "no such device: UUID xxx-xxx".

If /dev/sdb1 can be recognized by Grub2 code installed on the MBR of the first boot media (/dev/sda), the following method may help you.
1) After grub(2) error message appears, press c key to enter into grub2 command line.
2) If you can get into grub2 command line, "grub rescue>" or "grub>" prompt appears. If so, execute the following:
Code: Select all
ls

to display found media and found partitions in the media.
Find one with "hd1". It may be (hd1,msdos1).
If it is (hd1,msdos1), then
Code: Select all
set prefix="(hd1,msdos1)/boot/grub"
set root="(hd1,msdos1)"
insmod normal
normal

3) If grub(2) menu appears, select the first menu.
4) If Linux Mint Debian Edition successfully boot, execute the following at terminal.
Code: Select all
su -
TYPE ROOT PASSWORD
grub-mkdevicemap
grub-install /dev/sda
update-grub

5) If grub(2) menu does not appear after the above 2, execute the following:
Code: Select all
insmod ext2
linux /vmlinuz root=/dev/sdb1 ro
initrd /initrd.img
boot

The above "ext2" may be altered if /dev/sdb1 is not ext2,3 or 4.
6) If the avobe does not boot LMDE, execute:
Code: Select all
set root="(hd1,msdos1)"
chainloader +1
boot


If the above does not solve your problem, write concretely the error messages and what you did.

But if you do not understand, the easier solution may be Super Grub2 disk or rescatux.
http://www.supergrubdisk.org/
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: Wrong UUID at boot

Postby zkab » 2012-09-18 11:09

Yes - you were right ... I changed the disk (/dev/sdb) to a larger one.
Thanks for the excellent ekplanation (sorry ... mistake in writing :wink: ) ... now I understand what was my mistake and how it works.
Before I read your post I gave following commands and then I was able to install grub (I installed it on both /dev/sda and /dev/sdb to be sure) and after that the system booted OK.

cd /
mount -t ext4 /dev/sdb1 /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
chroot /mnt /bin/bash
dpkg-reconfigure grub-pc
zkab
 
Posts: 241
Joined: 2009-07-16 14:34

Re: Wrong UUID at boot

Postby kiyop » 2012-09-18 13:04

Congratulations! :D

zkab wrote:Before I read your post I gave following commands and then I was able to install grub (I installed it on both /dev/sda and /dev/sdb to be sure) and after that the system booted OK.

cd /
mount -t ext4 /dev/sdb1 /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
chroot /mnt /bin/bash
dpkg-reconfigure grub-pc

I think that "cd /" is not necessary. :wink:
And sometimes,
Code: Select all
mount -o bind /dev/pts /mnt/dev/pts

after "mount -o bind /dev /mnt/dev" is useful.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan


Return to Installation

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable