Main Menu

Search

Showing posts with label Linker Article Linux MOUNT Commands. Show all posts
Showing posts with label Linker Article Linux MOUNT Commands. Show all posts

LINUX: How To Find Parent Root Directory Or Mount Point Of Particular File or Directory? ("df" Command)

Below "df" command can be executed to find Parent Root Directory or Mount Point of Particular file or directory.

df -P <filename or directory name>

Below are example outputs of above command.


Example 1:

Below df output shows that test-nfs.out file belongs to NFS share.
# df -P test-nfs.out
Filesystem                                1024-blocks      Used Available Capacity Mounted on
10.10.10.20:/export/common/testshare   524288000 146042240 378245760      28% /testing

Example 2:

Below df output shows that the /var/log directory belongs to / root file system (which is a logical volume)
# df -P /var/log
Filesystem                      1024-blocks    Used Available Capacity Mounted on
/dev/mapper/VolGroup00-LogVol00     6248448 3808448   2440000      61% /


Products to which Article Applies


All Linux environments. 

This Article also applies to other UNIX based Operating Systems as well.

Additional References


http://linuxcommand.org/lc3_man_pages/df1.html


LINUX: How To List All Available Shares Of Storage Server Which Can Be Mounted On Linux Clients? ("showmount" command)

"showmount" command can be used to list all available shares of Storage server which can be mounted on Linux clients. Below is "showmount" command which can be used on Linux hosts.
showmount -e <Storage Server IP>

Below is example snippet of above command.

# showmount -e 10.10.10.30
Export list for 10.10.10.30:
/export/Test1                       (everyone)
/export/Test                           (everyone)
/export/share1                         (everyone)
/export/share2                         (everyone)
/export/share3                         (everyone)


Products to which Article Applies


All Linux Operating Systems

Additional References


https://docs.oracle.com/cd/E19253-01/816-4555/rfsrefer-34/index.html