I'm running Ubuntu, and want to find out the UUID
of a particular filesystem (not partition). I know I can use e2label /dev/sda1
to find out the filesystem label, but there doesn't seem to be a similar way to find the UUID
.
Linux – How to find the UUID of a filesystem
command-line-interfacelinuxpartition
Best Answer
Another command that might be available and also works quite well for this is 'blkid'. It's part of the e2fsprogs package. Examples of it's usage:
Look up data on /dev/sda1:
Show UUID data for all partitions:
Show UUID data for all partitions in easier to read format: (Note: in newer releases,
blkid -L
has a different meaning, andblkid -o list
should be used instead)Show just the UUID for /dev/sda1 and nothing else: