Re: parted is ALMOST suitable
On Tue 08 Nov 2016 at 06:40:26 -0600, David Wright wrote:
> On Tue 08 Nov 2016 at 04:58:05 (-0600), Richard Owlett wrote:
> > On 11/7/2016 8:36 PM, Michael Lange wrote:
> [...]
> > >I think that the command Brian suggested:
> > >
> > > udevadm info --query=property --name=/dev/sda1 | grep ID_FS_TYPE
> > >
> > >used with every partition that is returned by
> > >
> > > cat /proc/partitions
> > >
> > >might be a good option for the OP.
> >
> > Actually I now have two options, "udevadm info" and "/sbin/blkid".
> > >From Brian's comment on bug #776905, in future releases "blkid"
> > may be an option.
>
> You may find useful information in /run/udev/data/b8:0 etc
> without having to run any commands yourself. These files stay
> up to date as devices are plugged/unplugged.
I thought so too, but went off the idea when trying to figure out which
device was which and script it. udevadm (and lsblk) gets it information
from /run/udev/data/ anyway.
--
Brian.
Reply to: