Unix/Linux Go Back    


BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

Find Partition/Slice UUID

BSD


Tags
blkid, solved, uuid

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 04-16-2015
AntumDeluge's Unix or Linux Image
AntumDeluge AntumDeluge is offline
Registered User
 
Join Date: Aug 2014
Last Activity: 2 April 2017, 5:21 PM EDT
Location: Oregon
Posts: 14
Thanks: 5
Thanked 4 Times in 3 Posts
Unix or Linux Question 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.
Sponsored Links
    #2  
Old Unix and Linux 04-16-2015
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 28 July 2017, 2:09 PM EDT
Location: Saskatchewan
Posts: 22,300
Thanks: 1,112
Thanked 4,205 Times in 3,889 Posts
blkid is part of busybox, if you have that you can try busybox blkid.
The Following User Says Thank You to Corona688 For This Useful Post:
AntumDeluge (04-21-2015)
Sponsored Links
    #3  
Old Unix and Linux 04-20-2015
AntumDeluge's Unix or Linux Image
AntumDeluge AntumDeluge is offline
Registered User
 
Join Date: Aug 2014
Last Activity: 2 April 2017, 5:21 PM EDT
Location: Oregon
Posts: 14
Thanks: 5
Thanked 4 Times in 3 Posts
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:

Code:
$ 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"


Last edited by AntumDeluge; 04-21-2015 at 12:17 AM.. Reason: Found answer
The Following 2 Users Say Thank You to AntumDeluge For This Useful Post:
Corona688 (04-21-2015), Don Cragun (04-21-2015)
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Trouble creating a disk partition slice (EFI) selectstar Solaris 2 03-26-2015 07:00 AM
How to find unallocated partition. Prabhu.Are Ubuntu 3 10-24-2012 03:24 PM
How to give UUID to a swap partition? Santi Linux 3 01-09-2008 05:59 AM
slice & partition??? XNOR UNIX for Dummies Questions & Answers 4 04-21-2007 04:30 PM
mirroring the boot slice (slice 8) on x86 hcclnoodles Solaris 0 11-14-2006 06:30 AM



All times are GMT -4. The time now is 02:44 PM.