Skip to content

Mount NFS Storage

Important Notes

I make Docker wait until NFS is mounted so I don’t have to start Jellyfin and the ARR stack manually.

How to Mount NFS on Ubuntu/Debian

  1. Edit the /etc/fstab file.

    Edit /etc/fstab
    sudo nano /etc/fstab
    
  2. Add the following line to the /etc/fstab file.

    Important Notes

    Make sure the folder you wish to mount to is created prior, using the following command: mkdir /opt/projects/shared.

    Copy Command
    10.1.10.25:/mnt/storage/Shared /opt/projects/shared nfs auto,defaults,nofail,x-systemd.required-by=docker.service,x-systemd.before=docker.service 0 0
    
  3. Mount the folder manually.

    Mount Folder Manually
    sudo mount -a
    
  4. Reboot the server and verify that the mount works after reboot.

    Reboot Server
    sudo reboot -f