User Tools

Site Tools


devices-and-file-system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devices-and-file-system [2019/10/07 13:23]
Miroslav Bernát
devices-and-file-system [2019/10/08 17:10] (current)
Miroslav Bernát
Line 56: Line 56:
 | **umount** <device / partition / directory>​ | unmounts a file system (must not be used by any process), **-a** all mounted FS\\ ''​$ umount /​mnt/​flash''​\\ ''​$ umount /​dev/​sdc1''​ | | **umount** <device / partition / directory>​ | unmounts a file system (must not be used by any process), **-a** all mounted FS\\ ''​$ umount /​mnt/​flash''​\\ ''​$ umount /​dev/​sdc1''​ |
 | **showmount** (<​host>​) | prints a list of all hosts (clients) which are allowed to mount a local directory via NFS from the local or specified server (data from ///​etc/​exports(.d/​)//​),​ **-a** prints hostnames or IP addresses of the clients and the directories that are currently exported to them, **-e** prints a list of all exported directories and clients which are allowed to mount them | | **showmount** (<​host>​) | prints a list of all hosts (clients) which are allowed to mount a local directory via NFS from the local or specified server (data from ///​etc/​exports(.d/​)//​),​ **-a** prints hostnames or IP addresses of the clients and the directories that are currently exported to them, **-e** prints a list of all exported directories and clients which are allowed to mount them |
-| **exportfs** (<​options>​) (<​client>​**:​**<​directory>​) | defines remote hosts (clients) and local directories that are supposed to be exported to them via NFS (permanent setup in ///​etc/​exports(.d/​)//​),​ **-a** exports all that is written in ///​etc/​exports(.d/​)//,​ **-r** repeats exporting of all items from ///​etc/​exports(.d/​)//​ (synchronizes ///​var/​lib/​nfs/​etab//​ with ///​etc/​exports(.d/​)//​),​ **-i** ignores information in ///​etc/​exports(.d/​)//​ and uses options specified on the command line only, **-u** <​client>​**:​**<​directory>​ cancels a specified export, with „-a“ option it cancels exports of all the items in ///​etc/​exports(.d/​)//,​ **-o** specifies other options for exporting a local directory (the default options are **sync,​ro,​root_squash,​wdelay**), **-s** prints a list of all exported directories, **-v** detailed output\\ ''#​ exportfs -s''​\\ ''#​ exportfs -o rw client1:/​usr/​tmp''​\\ ''#​ exportfs -au''​ |+| **exportfs** (<​options>​) (<​client>​**:​**<​directory>​) | defines remote hosts (clients) and local directories that are supposed to be exported to them via NFS (permanent setup in ///​etc/​exports(.d/​)//​); without an argument or with **-s** option a list of all exported directories is displayed, **-a** exports all that is written in ///​etc/​exports(.d/​)//,​ **-r** repeats exporting of all items from ///​etc/​exports(.d/​)//​ (synchronizes ///​var/​lib/​nfs/​etab//​ with ///​etc/​exports(.d/​)//​),​ **-i** ignores information in ///​etc/​exports(.d/​)//​ and uses options specified on the command line only, **-u** <​client>​**:​**<​directory>​ cancels a specified export, with „-a“ option it cancels exports of all the items in ///​etc/​exports(.d/​)//,​ **-o** specifies other options for exporting a local directory (the default options are **sync,​ro,​root_squash,​wdelay**),​ **-v** detailed output\\ ''#​ exportfs -av''​\\ ''#​ exportfs -o rw client1:/​usr/​tmp''​\\ ''#​ exportfs -au''​ |
 | **quota** | displays current user's disk usage and limits (quotas) on all mounted FS, **-u** <​user>​ for a specified user, **-g** <​group>​ for a specified group, **-v** detailed output | | **quota** | displays current user's disk usage and limits (quotas) on all mounted FS, **-u** <​user>​ for a specified user, **-g** <​group>​ for a specified group, **-v** detailed output |
 | **repquota** <FS> | prints a summary of the disk usage and quotas for the specified FS, **-a** on all mounted FS, **-u** reports quotas for users (by default), **-g** reports quotas for groups, **-v** detailed output | | **repquota** <FS> | prints a summary of the disk usage and quotas for the specified FS, **-a** on all mounted FS, **-u** reports quotas for users (by default), **-g** reports quotas for groups, **-v** detailed output |
Last modified: 2019/10/08 17:10 by Miroslav Bernát

visits: