On Thu 11 Feb 2016 at 23:45:45 (+0100), jdd wrote:
> Le 11/02/2016 22:47, Martin Read a écrit :
> 
> >mount -t ext4,fat,btrfs

Notwithstanding the Subject line, I'd have thought vfat might be more
useful than fat. fat might work with grep, but I haven't mounted a
real fat for a decade or more.

> >(no spaces in the list, and no paths or anything) works nicely.
> >
> but list all the btrfs subvolumes :-(

I've no idea what a btrfs subvolume looks like, but can't you
grep -v   to eliminate them?

OTOH you could write something like:

( mount -t ext4,vfat ; mount | grep foo ) | sort -u

where foo matches a btrfs but not a btrfs subvolume.
The   sort -u   eliminates any duplicate lines caused by
overenthusiastic matching.

Personally,   mount | grep ^/   gets everything I'm interested in.

Cheers,
David.

Reply via email to