You are not logged in.

#1 2012-06-27 07:55:41

conn-fused
Member
Registered: 2011-06-19
Posts: 28

[SOLVED] Blkid returns nothing, but has no error

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

#2 2012-06-27 07:57:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 23,646
Website

Re: [SOLVED] Blkid returns nothing, but has no error

What happens when you run:

man blkid

Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2012-06-27 09:05:03

R00KIE
Forum Moderator
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,361

Re: [SOLVED] Blkid returns nothing, but has no error

Did you run it as root first?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2012-06-27 10:26:15

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Blkid returns nothing, but has no error

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)


"How to Succeed with Linux"

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

#5 2012-11-11 04:13:06

conn-fused
Member
Registered: 2011-06-19
Posts: 28

Re: [SOLVED] Blkid returns nothing, but has no error

Extremely belated reply, but that's it: I need to be root.

Thanks for the help. I'll mark this solved.

Offline

#6 2012-11-11 11:42:08

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Blkid returns nothing, but has no error

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).

See: https://wiki.archlinux.org/index.php/Fs … ilesystems


"How to Succeed with Linux"

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

#7 2014-08-14 22:18:38

sudo_grub
Member
Registered: 2014-08-14
Posts: 1

Re: [SOLVED] Blkid returns nothing, but has no error

$ 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

#8 2014-08-14 22:43:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 23,646
Website

Re: [SOLVED] Blkid returns nothing, but has no error

Apart from necrobumping (https://wiki.archlinux.org/index.php/Fo … Bumping.27), did you bother to read the man page?



Closing


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB