Wrong UUID at boot

Archived topics about LMDE 1 and LMDE 2
Locked
zkab

Wrong UUID at boot

Post by zkab »

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 ?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
HughT

Re: Wrong UUID at boot

Post by HughT »

hi zkab, it looks like you are using the old grub, hence it still has the old UUID. You should have installed the new grub to sdb rather than sdb1. Try from a live CD or USB

Code: Select all

sudo mount /dev/sdb1 /mnt

Code: Select all

sudo grub-install --root-directory=/mnt /dev/sdb
note - there's a gap between =/mnt and /dev, and no partition number after sdb. Re-boot into Mint then

Code: Select all

sudo update-grub
regards
zkab

Re: Wrong UUID at boot

Post by zkab »

Thanks ... what I did (before reading your post) was following:

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

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.
Locked

Return to “LMDE Archive”