Wednesday, May 23, 2012

Get a handle for your NAS

As my kids are growing they need to have easy access to a PC, so they got my old equipment. To be honest, it is crap and I would have dumped it, if I'd had the money. They are glad they have their own Personal Computer in their room, I'm glad I have my own to myself :)

But then you start getting a vast amount of scattered data, all over different systems, and it all gets really messy. "Hmm, where did I put that? I know I have it somewhere, Damn! now I have to look through every PC.."
No!, now I got myself a NAS(Network Attached Storage) and it will, over time, contain all the important stuff: pictures, music, videos.. etc.
And all my, different OS, machines will have access to this central unit. I mean, WinXP, Win7, Ubuntu "whatever version", Android telephones aso.

For myself I will now store the information of getting a handle on the NAS, and I leave this here on my blog, so to always get at it in an easy way :)

Mount your network storage.

CIFS(Common Internet File System):
Temporary mount
sudo mount -t cifs -o user=joke //ip.address/somefolder /media/somefolder

Mount permanently, add this line in the /etc/fstab file:

//ip.address/somefolder /mnt/somefolder cifs credentials=/folder/.creds,_netdev,uid=client_user,gid=users 0 0
And the .creds file should contain your credentials of course :)

username=server_user
password=passw