[SOLVED]Problem editing fstab, while attempting to mount NAS folder to Mint filesystem
Posted: Mon Mar 20, 2017 10:42 pm
I am new to Linux Mint, and have only networked Windows PCs before. I am trying to mount a folder on a Synology NAS (located on the same network) to Linux Mint. I can mount it manually, but would like to edit fstab so that it auto mounts on startup.
I can't figure out how to correctly type the fstab line of code. I think it has to do with me not understanding how to include login credentials for the Synology NAS.
I have read as much as I can find online about this type of issue, and have not been able to make it work. Here are a few versions I tried, and the error message I received each time.
If I add this line to fstab:
#automount Synology Music
I get this result:
Unable to mount MusicTarget
mount.nfs: access denied by server while mounting 192.168.0.103:/volume1/Music
Which makes sense, as credentials are requested by the Synology when I mount manually.
So if I use this one:
#automount Synology Music w viewable credentials
I get this result:
Unable to mount MusicTarget
mount: only root can mount 192.168.0.103:/volume1/Music on /home/water/MusicTarget
So, if I add this line to fstab including the "user" option:
#automount Synology Music w viewable credentials and user cmd
I get this result:
Unable to mount MusicTarget
mount.nfs: an incorrect mount option was specified
I'm obviously not understanding this correctly, and any help would be much appreciated.
info on both devices:
Linux Mint System
Kernel: 4.4.0-66-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.2.7 (Gtk 3.18.9-1ubuntu3.2)
Distro: Linux Mint 18.1 Serena
NAS
Synology DS1812+
I can't figure out how to correctly type the fstab line of code. I think it has to do with me not understanding how to include login credentials for the Synology NAS.
I have read as much as I can find online about this type of issue, and have not been able to make it work. Here are a few versions I tried, and the error message I received each time.
If I add this line to fstab:
#automount Synology Music
Code: Select all
192.168.0.103:/volume1/Music /home/water/MusicTarget nfs user,rw,hard 0 0
Unable to mount MusicTarget
mount.nfs: access denied by server while mounting 192.168.0.103:/volume1/Music
Which makes sense, as credentials are requested by the Synology when I mount manually.
So if I use this one:
#automount Synology Music w viewable credentials
Code: Select all
192.168.0.103:/volume1/Music /home/water/MusicTarget nfs username=[i]username[/i],password=[i]password[/i],rw,hard 0 0
Unable to mount MusicTarget
mount: only root can mount 192.168.0.103:/volume1/Music on /home/water/MusicTarget
So, if I add this line to fstab including the "user" option:
#automount Synology Music w viewable credentials and user cmd
Code: Select all
192.168.0.103:/volume1/Music /home/water/MusicTarget nfs [i]username[/i]=[i]username[/i],[i]password[/i]=[i]password[/i],rw,hard,user 0 0
Unable to mount MusicTarget
mount.nfs: an incorrect mount option was specified
I'm obviously not understanding this correctly, and any help would be much appreciated.
info on both devices:
Linux Mint System
Kernel: 4.4.0-66-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.2.7 (Gtk 3.18.9-1ubuntu3.2)
Distro: Linux Mint 18.1 Serena
NAS
Synology DS1812+