Re: libmount and findmnt(8)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/06/10 11:59, Karel Zak wrote:
> The findmnt(8) is a new util linked against libmount. This util is a
> command line interface for all look-up functionality in the library. It's 
> designed to be used in init scripts or from command line (use grep(1) is 
> a bad idea). See below for examples.
> 
> $ findmnt
> TARGET                       SOURCE                FSTYPE   OPTIONS
> /                            /dev/sda4             ext3     rw,noatime,errors=co
> ├─/proc                      /proc                 proc     rw,relatime
> │ ├─/proc/bus/usb            /proc/bus/usb         usbfs    rw,relatime
> │ └─/proc/sys/fs/binfmt_misc none                  binfmt_m rw,relatime
> ├─/sys                       /sys                  sysfs    rw,relatime
> ├─/dev                       udev                  devtmpfs rw,relatime,size=197
> │ ├─/dev/pts                 devpts                devpts   rw,relatime,gid=5,mo
> │ └─/dev/shm                 tmpfs                 tmpfs    rw,relatime
> ├─/boot                      /dev/sda1             ext3     rw,noatime,errors=co
> ├─/home/kzak                 /dev/mapper/kzak-home ext4     rw,noatime,barrier=1
> │ └─/home/kzak/.gvfs         gvfs-fuse-daemon      fuse.gvf rw,nosuid,nodev,rela
> └─/var/lib/nfs/rpc_pipefs    sunrpc                rpc_pipe rw,relatime

I find the output from `mount` very hard to parse and always
output through `column` like:

$ mount -t ext3 | column -t
/dev/sda1  on  /      type  ext3  (rw,errors=remount-ro)
/dev/sda3  on  /home  type  ext3  (rw)

So this new util is a welcome addition.

thanks,
Pádraig.
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux