Linux:如何检查驱动器是否挂载到nfs

时间:2021-11-27 10:46:48

Is there a way to find out if a mount drive, for ex: /var, is mount to an NFS?

有没有办法找出一个挂载驱动器,例如ex:/ var,是否挂载到NFS?

1 个解决方案

#1


28  

You can just use mount command to check, e.g

您可以使用mount命令进行检查,例如

mount |grep nfs

Or if you want to list all nfs you've mounted:

或者,如果要列出已挂载的所有nfs:

mount -l -t nfs4

#1


28  

You can just use mount command to check, e.g

您可以使用mount命令进行检查,例如

mount |grep nfs

Or if you want to list all nfs you've mounted:

或者,如果要列出已挂载的所有nfs:

mount -l -t nfs4