Categories
Linux

Reload fstab (/etc/fstab) – dynamic loading without restart – Linux

When we make a change in the /etc/fstab file in order to be active (ie taken into account) we need to notify the operating system to refresh the commands in fstab or to restart the system, which is not mandatory!

So, to reload the commands from fstab, in linux we have the mount command, which we use as follows:

mount -a [-t type] [-O optlist]

causes all filesystems mentioned in fstab to be mounted as indicated, except for those whose line contains the noauto keyword!

or with verbose mode (tested in Ubuntu Server):

[email protected]:/home/zen# mount -av
/                        : ignored
/boot                    : already mounted
/boot/efi                : already mounted
//srv/TOSHIBA-3T-V300    : already mounted
//srv/TOSHIBA-3T-ENTERPRISE: already mounted
//srv/SAMSUNG-850-PRO    : already mounted
//srv/HGST-4T            : already mounted
//srv/SAMSUNG-8T         : already mounted
//srv/SEAGATE2-8T        : already mounted
none                     : ignored
[email protected]:/home/zen#

Leave a Reply

Your email address will not be published. Required fields are marked *