Increase file transfer speed with NAS by creating mounting mounts (link from other post)

These are the instructions I followed from Claude AI, I am adding it here to tutorials.

Permanent Auto-Mount via fstab (Best for always-on access)

  1. Install cifs-utils (for SMB):
   sudo apt install cifs-utils
  1. Create a mount point:
   sudo mkdir /mnt/nas
  1. Store credentials securely:
   sudo nano /etc/nas-credentials

Add:

   username=your_nas_user
   password=your_nas_password

Then lock it: sudo chmod 600 /etc/nas-credentials

  1. Edit fstab:
   sudo nano /etc/fstab

Add a line like:

   //192.168.x.x/sharename  /mnt/nas  cifs  credentials=/etc/nas-credentials,iocharset=utf8,_netdev  0  0
  1. Test it:
   sudo mount -a

Once each mount point is added, for example /mnt/Music, /mnt/Photo, /mnt/video etc, in nemo address bar enter /mnt to see every mounted folder, drag to the bottom left pane to bookmark them.

2 Likes

I formatted this a bit to save you from doing the same post creation twice, as well as to help users not need to jump through two links. :slight_smile: