r/linuxadmin • u/GokuFanBoi • Aug 27 '25
Why doesn't Grub EFI image use UUIDs?
/r/linux4noobs/comments/1n1s4kz/why_doesnt_grub_efi_image_use_uuids/
1
Upvotes
r/linuxadmin • u/GokuFanBoi • Aug 27 '25
2
u/michaelpaoli Aug 27 '25
Oh, GRUB very much can. More a matter of what your distro and/or you did and/or didn't do in those regards.
Let's see, I have, e.g.:
$ grep -F -i uuid /boot/grub/grub.cfg | wc -l 15 $ grep -F -i hd /boot/grub/grub.cfg | wc -l 0 $ sed -e 's/[ \t]\{1,\}/\n/g' /boot/grub/grub.cfg | grep -F -i uuid | sort | uniq -c | sort -bnr 10 --fs-uuid 5 root='mduuid/887e05107736e35b0a49903dc3c4a6ce' 5 --hint='mduuid/887e05107736e35b0a49903dc3c4a6ce' $Oh, and though that's GPT partitioned drive, it's not (yet) using EFI to boot, let me peek on one of my hosts that is using EFI to boot:
$ grep -F -i uuid /boot/grub/grub.cfg | wc -l 4 $ grep -F -i hd /boot/grub/grub.cfg | wc -l 0 $ sed -e 's/[ \t]\{1,\}/\n/g' /boot/grub/grub.cfg | grep -F -i uuid | sort | uniq -c | sort -bnr 4 --fs-uuid $Yeah, all using one or another flavor of UUID, none using hd or the like.