Recently I tried to install Ubuntu Studio 18 and upon restart was given GRUB prompt, not Linux graphic login. Surprised, I started to investigate and found that grub.cfg file in ESP partition contains the below:

search.fs_uuid ae6b90f7-0624-437a-9526-79f86df44354 root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

I expected to maybe see uuid refer to not the partition with Linux files but other one on the disk, but the uuid from GRUB file was not in list of ones that I see when I run blkid starting Linux from live USB Ubuntu Studio. From Wikipedia I understood Linux uses random UUID, however I could not find info on where UUID's are stored. If in partition table of hard disk, then why UUID in GRUB could be different from ones given by blkid?


Thanks to Katu comment, I now know UUIDs are stored in superblocks for Linux file systems (ext2/3/4). And I installed Linux on ext fs, btw. So I understand UUID is not something each system entity makes for it's own use, but same for same partition.

Why installer put that UUID in grub.cfg remained a mystery to me, however, after I edited the file and replaced UUID there with UUID given by blkid for my root fs, Linux started normally.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.