Re: parted is ALMOST suitable
On Mon 07 Nov 2016 at 09:27:47 -0600, Richard Owlett wrote:
> On 11/7/2016 8:19 AM, Felipe Salvador wrote:
> >
> >I don't see this behaviour
> >
> >~$ lsblk -fr
> >NAME FSTYPE LABEL UUID MOUNTPOINT
> >sda
> >sda1 ext2 ... /boot
> >sda2 ext4 ... /
> >sda3 ext2 ... /tmp
> >etc etc etc
> >
> >or
> >
> >file -s /dev/sda{1..5} | awk '{print $5}'
>
> richard@full-jessier:~$ lsblk -fr
> NAME FSTYPE LABEL UUID MOUNTPOINT
> sda
> sda1
> sda2
> sda5
> sda6
> sda7
> sda8 [SWAP]
> sda9 /
> sda10
> sda11
> sda12
> sdb
> sdb1
> sr0
I get the same as you on Debian 8.6. On unstable the command 'lsblk -f'
shows all the fields populated. I wonder what Felipe Salvador is using?
At the least there is a little mystery. At the most it could be you have
run across buggy behaviour.
It appears to me that permissions, security, root privileges etc, etc
have nothing to do with it. None of the information is security
sensitive or requires root access and is available from elsewhere. For
example:
udevadm info --query=property --name=/dev/sda1 | grep ID_FS_TYPE
This command is probably more useful than lsblk for use in scripts.
--
Brian.
Reply to: