“` $ mount /dev/sda1 on / type ext4 (rw,errors=remount-ro) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) /dev/sda2 on /data type ext4 (rw) “`
上面的输出表明,系统中有三个文件系统被挂载:/dev/sda1、/run和/dev/sda2。
如果想要更详细地查看挂载信息,可以使用”-l”或”–list”参数,示例如下:
“` $ mount -l /dev/sda1 on / type ext4 (rw,errors=remount-ro) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) /dev/sda2 on /data type ext4 (rw) “`
“` $ mount -t ext4 /dev/sda1 on / type ext4 (rw,errors=remount-ro) /dev/sda2 on /data type ext4 (rw) “`
还可以使用”-h”或”–help”参数来获取更多的帮助信息:
“` $ mount -h Usage: mount [-lhV] mount -a [options] mount [options] [–source]| [–target]
Options: -a, –all mount all filesystems mentioned in fstab -F, –fork fork off for each device (useful with -a) -H, –fb-options read options from /etc/fstab backwards -i, –interactive ask for confirmation before mounting -L, –label
Help options: -?, –help Show this help message –usage Display brief usage message