kitaets wrote:Do you really want to mount the nfs shares? QNAP has an out-of-the-box ability of mounting SAMBA shares to a network folder - I mean folder aggregation - it's very useful.
If we are talking about accessing recordings then we don't need iSCSI anyway.
There are multiple possible ways to connect a Linux machine to the NAS, but using SAMBA shares is by far the most reliable. Gigabit all around on this network. To keep it easy to manage, I simply create empty folders in the "/share" directory on my Ubuntu box, that I can mount to.
I create subfolders within "/share" called "Public", "Download", "Multimedia", etc. I then simply mount my NAS shares onto these directories by modifying my "/etc/fstab" on my Ubuntu box to include the following lines:
My /etc/fstab file on my Ubuntu:- Code: Select all
//nasty2/Multimedia /share/Multimedia cifs defaults,rw,credentials=/etc/nas-credentials
//nasty2/Public /share/Public cifs defaults,rw,credentials=/etc/nas-credentials
//nasty2/Download /share/Download cifs defaults,rw,credentials=/etc/nas-credentials
//nasty2/Web /share/Web cifs defaults,rw,credentials=/etc/nas-credentials
//nasty2/Public /share/Public cifs defaults,rw,credentials=/etc/nas-credentials
I then create my /etc/nas-credentials as follows:
- Code: Select all
username=admin
password=DjD05$@Fwpfd
I leave my
/etc/nas-credentials file with 600 for file permissions, so that other Ubuntu users can't see my username/password used to mount the NAS shares. Ubuntu "automounts" all my share automatically at every boot. This method is easy to setup, and it means I can access my "Multimedia" on all my machines by simply doing a "cd /share/Multimedia". It doesn't matter whether I'm on my NAS or my Ubuntu boxes, my "Multimedia" always lives in "/share/Multimedia" on all of my machines, including my NAS. (This makes it very easy to manage everything).