Curious as to why you need GUIDs vs. UUIDs - for what purpose?
Announcement
Collapse
No announcement yet.
GUIDs for ALL partitions?
Collapse
This topic is closed.
X
X
-
It is only incidental. In messing with UEFI booting, you find yourself having to identify where things are coming from, like where GRUB files are pointing at, where they are stored. For example,GRUB configuration files show UUIDs, but efibootmgr shows GUIDs. Tracking this stuff doing complex boot experiments can get confusing.That's why I would find it convenient to simply have a table of GUIDs to compare to UUIDs in the output of, for example, efibootmgr.An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
-
I seem to get both with blkid
Code:mr_raider@lxde:~$ sudo blkid /dev/sda2: UUID="5deab206-9f00-484e-841f-85916c69a1f4" TYPE="swap" PARTUUID="e5ac1315-0ee6-4750-a062-77a744cfd82d" /dev/sda3: LABEL="boot" UUID="dc35491a-059b-4096-a01d-c977de615078" TYPE="ext2" PARTUUID="3134bfde-fbac-44bf-b706-dc591a3c06fc" /dev/sda4: LABEL="system" UUID="1c236f0f-9c67-4629-a083-d4f80be41bd7" UUID_SUB="7d6c8658-6ab0-4e87-b0f2-d1ec4dad0be6" TYPE="btrfs" PARTUUID="7e1103d7-a83c-42da-a54b-c0521d47f881" /dev/sda1: PARTUUID="3bb46f23-cd7f-496c-a3aa-3a29ddb2ce22"
- Top
- Bottom
Comment
-
-
My results from blkid are different depending on partition type. For example, I get only GUID (aka PARTUUID) from blkid on a BIOS boot partition (type EF02). To see the UUID I have to use gdisk. Just to make things more obfuscated, I also get UUID_SUB for btrfs partitionsOriginally posted by mr_raider View PostI seem to get both with blkid
Code:mr_raider@lxde:~$ sudo blkid /dev/sda2: UUID="5deab206-9f00-484e-841f-85916c69a1f4" TYPE="swap" PARTUUID="e5ac1315-0ee6-4750-a062-77a744cfd82d" /dev/sda3: LABEL="boot" UUID="dc35491a-059b-4096-a01d-c977de615078" TYPE="ext2" PARTUUID="3134bfde-fbac-44bf-b706-dc591a3c06fc" /dev/sda4: LABEL="system" UUID="1c236f0f-9c67-4629-a083-d4f80be41bd7" UUID_SUB="7d6c8658-6ab0-4e87-b0f2-d1ec4dad0be6" TYPE="btrfs" PARTUUID="7e1103d7-a83c-42da-a54b-c0521d47f881" /dev/sda1: PARTUUID="3bb46f23-cd7f-496c-a3aa-3a29ddb2ce22"
- Top
- Bottom
Comment
-
Originally posted by oshunluvr View PostMy results from blkid are different depending on partition type. For example, I get only GUID (aka PARTUUID) from blkid on a BIOS boot partition (type EF02). To see the UUID I have to use gdisk. Just to make things more obfuscated, I also get UUID_SUB for btrfs partitions
Seems to be a distro issue. 14.04 and 3.13 kernel gives me UUID only. 15.04 and 3.19 kernel gives me both. Looks they changed the blkid command somewhat in the interim.
- Top
- Bottom
Comment
-
Seems to be right. I'm using 14.04.Seems to be a distro issue. 14.04 and 3.13 kernel gives me UUID only. 15.04 and 3.19 kernel gives me both. Looks they changed the blkid command somewhat in the interim.An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
mr_raiderYep, I just booted into 15.04 and I get the same output you are getting.Seems to be a distro issue. 14.04 and 3.13 kernel gives me UUID only. 15.04 and 3.19 kernel gives me both. Looks they changed the blkid command somewhat in the interim.An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish



- Jul 2011
- 9625
- Seattle, WA, USA
- Send PM
For all practical purposes, the terms UUID and GUID are synonyms and interchangeable.
http://en.wikipedia.org/wiki/Univers...que_identifier
http://en.wikipedia.org/wiki/Globally_unique_identifier
/dev/disk/by-partuuid shows the UUID assigned to the partition when it was created by a partitioning tool.
/dev/disk/by-uuid shows the UUID assigned to the file system when it was formatted.
GPT uses UUIDs to indicate the type of partition; there is a one-to-one mapping between GPT UUIDs and type codes. See http://en.wikipedia.org/wiki/GUID_Pa...ion_type_GUIDs for the list. (See, here I'm intentionally interchanging UUID for GUID just, well, because. Hah.)
- Top
- Bottom
Comment
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.




Comment