Find Partition/Slice UUID

I thought I had figured this out at one point, but I can't remember. Is there a way/command to get the UUIDs of a disk's partitions/slices in FreeBSD? Linux has the blkid command, which doesn't seem to be available.

blkid is part of busybox, if you have that you can try busybox blkid.

1 Like

Thanks, I'll try that out.

--- Edit ---

Apparently, busybox does not have blkid on FreeBSD. I did find it though, in the Port/Package sysutils/e2fsprogs.

It's a bit different though. Executing the command blkid without any arguments doesn't print anything. I have to point it to a device or devices:

$ blkid /dev/ad*
/dev/ad4s1: LABEL="GRUB" UUID="a01cbff7-216d-49ab-87ac-5f3e2fa91859" TYPE="ext2" 
/dev/ad4s3: UUID="5BBEAFDF7079F5E8" LABEL="Windows" TYPE="ntfs" 
/dev/ad4s5: LABEL="Debian" UUID="f56b8de1-3937-d001-e063-88e13937d001" TYPE="ext4" 
/dev/ad4s6: LABEL="Shared" UUID="3a5ae84b-66c1-4c0b-a2d5-9546a20d7111" TYPE="ext2" 
/dev/ad4s7: UUID="9a4906bd-aae0-4226-a604-001db362121c" TYPE="swap" 
/dev/ad8s1: UUID="01CDAAC34C08EB50" LABEL="Data" TYPE="ntfs" 
/dev/ada0s1: LABEL="GRUB" UUID="a01cbff7-216d-49ab-87ac-5f3e2fa91859" TYPE="ext2" 
/dev/ada0s3: UUID="5BBEAFDF7079F5E8" LABEL="Windows" TYPE="ntfs" 
/dev/ada0s5: LABEL="Debian" UUID="f56b8de1-3937-d001-e063-88e13937d001" TYPE="ext4" 
/dev/ada0s6: LABEL="Shared" UUID="3a5ae84b-66c1-4c0b-a2d5-9546a20d7111" TYPE="ext2" 
/dev/ada0s7: UUID="9a4906bd-aae0-4226-a604-001db362121c" TYPE="swap" 
/dev/ada1s1: UUID="01CDAAC34C08EB50" LABEL="Data" TYPE="ntfs"
2 Likes