Quote:
Originally Posted by rknichols
The help text is attempting to say that the partition table identifier (PTUUID) can be arbitrary text but is usually a UUID, not some UUID displayed in the UUID column.
|
Ah, I get it now. I never considered the possibility that a column described as
“Partition Table UUID” might contain anything but… a UUID. I also didn’t think beyond the common x86 platform and its partition table types (and their UUIDs).
It remains a bit weird that what is called a
“Universally Unique Identifier” could ever be set to, perhaps, a
“Universally Ambiguous Identifier”, doesn’t it?
Anyway, I’m probably just thinking too deeply about some silly, little, inconsequential detail again…
I’m notorious for doing so every now and then…
In any case, I’ll try and overcome my tendency to be pedantic next time around—but I won’t make any promises.
By the way, I’m attaching a little bash script thingie that demonstrates the documented values that the
‘lsblk’ command can report about a disk device. It will display a dialog that lists the available disk devices, and subsequently list the results for the selected one. Just FYI.
Also, in case you ever need to find a disk partition when given its filesystem label, you could run the
‘findfs’ command—albeit as
root:
Code:
# findfs LABEL="${FILESYSTEM_LABEL}"
As a normal (non-
root) user, on the other hand, you could do:
Code:
$ readlink --canonicalize-existing /dev/disk/by-label/"${FILESYSTEM_LABEL}"