Is there a way to find out if a mount drive, for ex: /var, is mount to an NFS?
Asked
Active
Viewed 9.0k times
19
-
If you run the shell command "mount" it tells you what filesystem the drive is. – scott_fakename Jul 18 '13 at 02:43
-
[`df -PT /var | awk 'NR==2 {print $2}'`](http://unix.stackexchange.com/questions/72223/check-if-folder-is-a-mounted-remote-filesystem) – Gilles 'SO- stop being evil' Jul 18 '13 at 09:49
1 Answers
41
You can just use mount
command to check, e.g
mount |grep nfs
Or if you want to list all nfs you've mounted:
mount -l -t nfs4

number5
- 15,913
- 3
- 54
- 51