2013-07-18 10 views
9

C'è un modo per scoprire se un'unità di montaggio, per esempio:/var, è montata su un NFS?Linux: come verificare se un'unità è montata su nfs

+0

Se si esegue il comando shell "mount" è ti dice quale filesystem è l'unità. –

+0

['df -PT/var | awk 'NR == 2 {print $ 2}' '] (http://unix.stackexchange.com/questions/72223/check-if-folder-is-a-mounted-remote-filesystem) – Gilles

+0

Grazie scott_fakename, Gilles. – PLAND

risposta

25

Si può semplicemente utilizzare mount comando per verificare, ad esempio,

mount |grep nfs 

Oppure, se si desidera elencare tutti NFS si sono montati:

mount -l -t nfs4 
Problemi correlati