Updating Manjaro screwed up my Linux Mint…Again!

At least that’s the 1st impression, technically it didn’t because Mint was untouched. This time I dug into it, and found Manjaro’s /boot/grub/grub.cfg file contained the incorrect UUID for my Linux Mint distro which is on /dev/sda. The incorrect UUID was pointing to /dev/sdb however the menuentry…whatever that is…said /dev/sda.

Below are snippits from the Good (the one that worked) and Bad segments of /boot/grub/grub.cfg. Note the % below are # in the file. The UUID is after osprober-gnulinux-simple-


Good
%%% BEGIN /etc/grub.d/30_os-prober %%%
menuentry ‘Linux Mint 18.3 Sylvia (18.3) (on /dev/sda1)’ –class linuxmint –class gnu-linux –class gnu –class os $menuentry_id_option ‘osprober-gnulinux-simple-522288d6-71d7-40f5-93e8-d821b0a9d915’ {

Bad [INCORRECT! Wrong UUID for /dev/sda1…This is the UUID for /dev/sdb1]
%%% BEGIN /etc/grub.d/30_os-prober %%%
menuentry ‘Linux Mint 18.3 Sylvia (18.3) (on /dev/sda1)’ –class linuxmint –class gnu-linux –class gnu –class os $menuentry_id_option ‘osprober-gnulinux-simple-32c12eab-b90a-4b58-bf49-9384a489571f’ {

In reality the correct Mint was in the Grub menu…but mislabeled. I always install my primary distro on /dev/sda and my backup distro on /dev/sdb. But Manjaro’s grub update process…apparently sometimes switches the /dev/sda…sdb designation in the menu. The UUID, not readily visable on the menu, is correct and can be seen by pressing “E”, for edit and scrolling down. No user is going to remember a long cryptic UUID, but in my case since I knew of this problem, I just remembered that the incorrect Mint’s UUID ended in “F” which I associated with fail.

Below you can see that sometimes situation. Notice the the output from two “lsblk -f” commands ran at different times.

$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 ext4 1.0 32c12eab-b90a-4b58-bf49-9384a489571f
├─sda2
├─sda5 ext4 1.0 d451d87a-4039-4b24-a9c0-697afbd31253
├─sda6 swap 1 0d50b442-05eb-4de6-a1e6-962a33bcb430 [SWAP]
├─sda7 ext4 1.0 e2484b91-04e6-4884-919b-6d6345980767
├─sda8 ext4 1.0 f0bd510d-5154-45fc-9b5b-df76f575be6d 93.7G 62% /home
└─sda9 ext4 1.0 711273d4-0515-4930-9183-a06d2515354d
sdb
├─sdb1 ext4 1.0 522288d6-71d7-40f5-93e8-d821b0a9d915
└─sdb2 ext4 1.0 6c87de40-c81a-44c4-b3ea-1b55ce978640 13.2G 49% /
sdc
├─sdc1 ext4 1.0 9db6c5fc-59aa-4ef8-ab96-0077a92e326d
├─sdc2
└─sdc5 ntfs 1450FC356E30C66C
sdd
└─sdd1 ext4 1.0 9f737960-a8b3-49c7-994f-cf8d86820cbb
sr0 iso9660 Joliet Extension 2.6.4-10-amd64 2019-10-24-11-58-31-00
pktcdvd0

$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 ext4 1.0 522288d6-71d7-40f5-93e8-d821b0a9d915
└─sda2 ext4 1.0 6c87de40-c81a-44c4-b3ea-1b55ce978640 13.1G 49% /
sdb
├─sdb1 ext4 1.0 32c12eab-b90a-4b58-bf49-9384a489571f
├─sdb2
├─sdb5 ext4 1.0 d451d87a-4039-4b24-a9c0-697afbd31253
├─sdb6 swap 1 0d50b442-05eb-4de6-a1e6-962a33bcb430 [SWAP]
├─sdb7 ext4 1.0 e2484b91-04e6-4884-919b-6d6345980767
├─sdb8 ext4 1.0 f0bd510d-5154-45fc-9b5b-df76f575be6d 93.7G 62% /home
└─sdb9 ext4 1.0 711273d4-0515-4930-9183-a06d2515354d
sdc
├─sdc1 ext4 1.0 9db6c5fc-59aa-4ef8-ab96-0077a92e326d
├─sdc2
└─sdc5 ntfs 1450FC356E30C66C
sdd
└─sdd1 ext4 1.0 9f737960-a8b3-49c7-994f-cf8d86820cbb
sr0 iso9660 Joliet Extension 2.6.4-10-amd64 2019-10-24-11-58-31-00
pktcdvd0

[bill@bill-pc Documents]

$