Hello Artix forum.
I am having an issue with lsblk.
Running the command without sudo:
$ lsblk -rpo "uuid,name,type,size,label,mountpoint,fstype"
UUID NAME TYPE SIZE LABEL MOUNTPOINT FSTYPE
/dev/sda disk 1.8T
/dev/sda1 part 1G /boot
/dev/sda2 part 1.8T
/dev/mapper/vault crypt 1.8T /
/dev/sdb disk 465.8G
/dev/sdb1 part 37.3G
/dev/sdb2 part 1K
/dev/sdb3 part 300G
/dev/sdb5 part 18.6G
/dev/sdc disk 931.5G
/dev/sdc1 part 931.5G
Running the command with sudo:
$ sudo lsblk -rpo "uuid,name,type,size,label,mountpoint,fstype"
UUID NAME TYPE SIZE LABEL MOUNTPOINT FSTYPE
/dev/sda disk 1.8T
76FB-96A6 /dev/sda1 part 1G /boot vfat
d36bcd03-473c-4494-9e44-f4a46db088c1 /dev/sda2 part 1.8T crypto_LUKS
7265f515-9893-4671-9602-74d34e141968 /dev/mapper/vault crypt 1.8T / ext4
/dev/sdb disk 465.8G
2cbc05bc-8eb4-4711-90e1-ef671b10257d /dev/sdb1 part 37.3G ext4
/dev/sdb2 part 1K
2dadd550-ddfd-434d-95af-6b1ecb47334c /dev/sdb3 part 300G ext4
aa1bbbd7-d2f8-4e49-b0e1-c5a01e6534d6 /dev/sdb5 part 18.6G ext4
/dev/sdc disk 931.5G
20acf8e0-b911-41fa-8458-90ff523ec3d8 /dev/sdc1 part 931.5G crypto_LUKS
As you can see, some of the requested fields (FSTYPE, LABEL, and UUID) only populate when I run the command with sudo.
I cannot replicate this on Arch Linux. Running lsblk will populate all requested fields, regardless of whether the command was run with sudo.
I use lsblk in some of my scripts, so this is bugging me quite a bit.
Does anybody know why these fields need sudo to populate? Is there a way I can have all requested fields populate without having to run as sudo?