From the course: Linux: File Sharing Services

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Automount an NFS share at boot

Automount an NFS share at boot - Linux Tutorial

From the course: Linux: File Sharing Services

Start my 1-month free trial

Automount an NFS share at boot

- [Narrator] Because NFS exports are often used between servers it's important that those shares be available all the time. If a server restarts and it can't find a mounted export that it expects things can go wrong. Let's take a look at adding an entry to our file system table to let the system automatically mount an export. I'll open up the etc fstab file here. And we've got an entry from a previous video here, I'll remove that, and then to automatically mount my NFS export I'll follow my template for what pieces of information go where. The share is 10.0.0.4:/srv/nfs-share. And the mount point is mnt nfs-mount. The file system is nfs. And for options we do need to specify something so I'll put rw here. And then I'll put 0 and 0 for dump and pass. Alright, I'll save that, and I'll make sure that the export is unmounted from where we mounted it earlier with sudu umount mnt nfs mount. And then I could restart the system or use sudu mount -a to automatically mount the file systems. And…

Contents