In the console I am trying to identify unmounted and unformatted devices along with mounted ones.
> Date: Sun, 8 Mar 2015 18:16:43 -0500 > From: m...@jvonau.ca > To: xsce-de...@googlegroups.com; server-devel@lists.laptop.org; > t...@timmoody.com > Subject: Re: [XSCE] rpi storage devices > > > > > On March 8, 2015 at 5:39 PM Tim Moody <t...@timmoody.com> wrote: > > > > > > on the xo-4 and intel I use the following to get storage devices > > ls -lav /dev |grep brw| grep disk| gawk 'NR==1' |gawk > > --field-separator=' ' '{ print $10 }' > > but on rpi2 this yields > > > > > is there a reliable algorithm to identify sd cards, usb thumb drives or > > hdd drives? > > Would ansible_devices and maybe ansible_mounts meet your needs?
_______________________________________________ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel