You are not logged in.
Pages: 1
Topic closed
I wanted to retrieve UUIDs from a couple partitions, so I ran:
blkid
No returns. I ran:
echo $?
0
Hmm. Any ideas?
Additionally, "blkid -o list" returns device files and mount points, but not filesystems, labels (well, it might, there are none assigned) or UUIDs.
Thanks!
Last edited by conn-fused (2012-11-11 04:16:07)
Offline
What happens when you run:
man blkid
Offline
Did you run it as root first?
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
You need to run it as root.
$ sudo blkid
Just like "fdisk -l" won't return anything either. You have to run:
$ sudo fdisk -l
Whenever you see someone posting:
# blkid
That "#" means you need to run it as root.
If it has a "$", it means you can run it as a regular user.
Last edited by DSpider (2012-06-27 10:29:49)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Extremely belated reply, but that's it: I need to be root.
Thanks for the help. I'll mark this solved.
Offline
Alternatively, you can use:
$ lsblk -f
You don't need root privileges for that.
The fstab wiki page was updated to use it (instead of fdisk -l, which doesn't work with GPT drives; you need gdisk -l for that).
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
$ lsblk -f
Does not show UUID column on my machine, nor does
$ sudo lsblk -f
I tried
$ sudo lsblk -o UUID
The UUID was then shown, but with no added columns to match it to a known kernel name descriptor, label, mountpoint, etc... I read the man pages for 'lsblk', as well as checking the Archwikis on 'fstab' and 'persistent block device naming' ... Nowhere did it mention when using the lsblk option "-o", that in order for multiple fields to be printed, commas(without spacing) must be used in between each column name, thus:
$ sudo lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,UUID
Using this command got me the UUID matched to known device properties.
Last edited by sudo_grub (2014-08-14 22:42:22)
Offline
Apart from necrobumping (https://wiki.archlinux.org/index.php/Fo … Bumping.27), did you bother to read the man page?
Closing
Offline
Pages: 1
Topic closed