lsblk -nPo mountpoint,uuid,label
provides…
MOUNTPOINT="" UUID="" LABEL="" #for each non-mount point)
MOUNTPOINT="/boot/efi" UUID="" LABEL="" #where is the UUID= value, where is the LABEL value
MOUNTPOINT="/boot" UUID="" LABEL=""
MOUNTPOINT="/" UUID="" LABEL=""
MOUNTPOINT="/home" UUID="" LABEL=""
MOUNTPOINT="[SWAP]" UUID="" LABEL=""
MOUNTPOINT="/share" UUID="" LABEL=""
MOUNTPOINT="" UUID="" LABEL=""
MOUNTPOINT="" UUID="" LABEL=""
I should have values for UUID, LABEL, and even other fields (PARTLABEL, PARTUUID’, type,name)
lsblk works with Fedora 31
Please submit a bug report on my behalf, I was unable to get past “test case.id” on that form.
Here is what my objective is: To create a xreferenced and crosschecked /etc/fstab…
system installed 14 December at 21:45
#<file system> <mount> <type> <options> <dmp pass> <xref> <label/uuid>
UUID=c54f3905-476f-4950-a93c-aeecbc10b6a9 none swap pri=10 0 0 #/dev/sda5 sda6swap
UUID=342b8397-5918-4a38-8003-bbce102d6152 / xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 2 #/dev/sda3 kdeslash
UUID=eb99fd6d-62db-4d0b-b7fa-7a8257e0dd79 /boot ext4 relatime,data=ordered 0 1 #/dev/sda2 kdeboot
UUID=6a93809e-6fe6-4434-a915-7f35583441ec /home ext4 data=ordered 0 0 #/dev/sda4 kdehome
UUID=AA36-40A5 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0 #/dev/sda1 KDEEFI
UUID=acefc30a-d7fc-40fb-82c5-e0cae7c85ff0 /share ext4 defaults,relatime 0 2 #/dev/nvme0n1p5 nvme0n1p5Share
UUID=2821d3c2-0c1a-452f-ae49-bff5201302aa /scratch2 ext4 defaults,relatime,noauto,user 0 0 #/dev/sdc5 scratch2
UUID=93d0771c-f7fc-4c41-af99-795098d9281a /scratch1 ext4 defaults,relatime,noauto,user 0 0 #/dev/sdc4 scratch1
UUID=f887e10f-e68b-4434-892b-6e27c923af6c /backup ext4 defaults,relatime,noauto,user 0 0 #/dev/sdc3 backup
UUID=378e9bda-3488-4378-9066-afbd0e80c73c /junk ext4 defaults,relatime,data=ordered 0 0 #/dev/sdc9 junk
tmpfs /tmp tmpfs size=10% 0 0 #/dev/rdsk ramdisk
I need lsblk to match mountpoint to label or partlabel.