[Solved] UUID?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
jbh911
Level 4
Level 4
Posts: 371
Joined: Mon Dec 05, 2011 4:23 am
Location: Gippsland, VIC AUS

[Solved] UUID?

Post by jbh911 »

How can I determine the UUid for a disk and / or partition? :oops:
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
sdibaja
Level 5
Level 5
Posts: 899
Joined: Sun May 08, 2011 12:57 pm
Location: Baja California, Mexico

Re: UUID?

Post by sdibaja »

Code: Select all

sudo blkid
Last edited by sdibaja on Thu Oct 25, 2018 9:22 pm, edited 1 time in total.
Peter
Mate desktop https://wiki.debian.org/MATE
Debian GNU/Linux operating system: https://www.debian.org/download
WharfRat

Re: UUID?

Post by WharfRat »

sudo blkid will list UUIDs
jbh911
Level 4
Level 4
Posts: 371
Joined: Mon Dec 05, 2011 4:23 am
Location: Gippsland, VIC AUS

Re: [Solved] UUID?

Post by jbh911 »

Thanks sdibaja & WhalfRat, much appreciated. Couldn't see the wood for the trees :D
gm10

Re: [Solved] UUID?

Post by gm10 »

For future reference:

Code: Select all

lsblk -f
Easier to read and saves you the sudo.

If you prefer GUI, then Mint menu > Disks also shows the UUID for any partition you click on.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: [Solved] UUID?

Post by catweazel »

gm10 wrote: Fri Oct 26, 2018 2:24 am Easier to read and saves you the sudo.

Code: Select all

lsblk -J
Just to confuse things :)
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
gm10

Re: [Solved] UUID?

Post by gm10 »

catweazel wrote: Fri Oct 26, 2018 2:30 am

Code: Select all

lsblk -J
Just to confuse things :)
Considering the question was about UUID and default lsblk output, JSON or not, doesn't show that, you confused me indeed.
User avatar
sdibaja
Level 5
Level 5
Posts: 899
Joined: Sun May 08, 2011 12:57 pm
Location: Baja California, Mexico

Re: [Solved] UUID?

Post by sdibaja »

gm10 wrote: Fri Oct 26, 2018 2:24 am For future reference:

Code: Select all

lsblk -f
Easier to read and saves you the sudo.

If you prefer GUI, then Mint menu > Disks also shows the UUID for any partition you click on.
NICE! thanks, I will start using

Code: Select all

lsblk -f
=== however

Code: Select all

lsblk -J

what is that used for?
Peter
Mate desktop https://wiki.debian.org/MATE
Debian GNU/Linux operating system: https://www.debian.org/download
gm10

Re: [Solved] UUID?

Post by gm10 »

sdibaja wrote: Fri Oct 26, 2018 7:54 am what is that used for?
It gives you JSON formatted output for further processing in another program but I don't know why he brought it up.
Locked

Return to “Storage”