schumaku wrote:TonyPh12345 wrote:ABSOLUTELY NOT. Doing that would immediately break your RAID.
Not a good idea - and probaly not required at all. But the user wanted ...
Jagermikester wrote:connect to a sata – usb converter and plug it into usb on the NAS
...what does not inherit a risk.
Mounting the NAS shares is the way to go. Makes perfect sense when you have a Gigabit Ethernet network - fast enough, and it's less likely to create issues.
What is the problem when trying to mount the SAMBA shares on the NAS from the Ubuntu based HTPC?
Schumaku is absolutely correct. 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). [In case you hadn't guessed my NAS is known as "nasty2" on my network; "nasty1" my original PPC-based QNAP TS-101 NAS has been "retired", as I sold it off a couple of years ago].
I still use QNAP tools like
Web File Manager, etc when I'm away from my network, but when I'm at home, I can literally use "cp" and "mv" commands to copy/move files between my NAS (nasty2) and my local machine. No fancy tools required. I don't use NFS at all on my Linux machines,
everything is connected by SAMBA. (Even my XBMC-HTPC's, XBMC-xboxes, and Boxee Boxes access the NAS via SAMBA). I can even "drag & drop" like a Windows user, using "nautilus" or "dolphin" if I feel so inclined.
I do use NFS on my NAS, but only as part of my PXE server, so that I can load Linux Live-CD's via PXE (with nfsboot/nfsroot options) on new machines when I introduce them to my network. I am able to access all my internal Websites on my NAS from Firefox on my Ubuntu boxes. Only challenge is Surveillance Station, as it requires "IE" which Ubuntu doesn't have. Everything else works properly. In fact I am so happy with this setup, that I no longer own a Windows machine. All my Linux boxes are running under either Ubuntu or BackTrack5. (I use the same "/etc/fstab" entries (and "/etc/nas-credentials" file) on all of my Linux boxes).
Very easy to use, and very easy to manage. My girlfriend, and my children are still using Windows machines, but I personally do not. All our PC's and Smartphones can access the NAS, even remotely. It is a beautiful thing....
Patrick