Page 1 of 1

Accessing Files on a NAS

Posted: Thu Dec 20, 2012 6:57 pm
by Oikake
Hi, this has probably been asked 100 times before but I cannot find an answer.

I have a hard-drive directly connected to my router and I can access the files on it via my windows laptop by typing its host name followed by the name of the shared folder (e.g. \\fnd\movies). How do I achieve the same type of access to the network hard drive using my RasberryPi?

Thanks

Re: Accessing Files on a NAS

Posted: Fri Dec 21, 2012 1:20 am
by forumisto
you need to install sambamand then mount the remote directory

Re: Accessing Files on a NAS

Posted: Fri Dec 21, 2012 2:44 am
by stevech
My RPi is working through SMB/Samba (easy install) - to access shares on the LAN from my Synology NAS and from some Windows XP/7 PCs on the LAN.

Re: Accessing Files on a NAS

Posted: Fri Dec 21, 2012 5:30 am
by Dweeber
Pretty sure that CIF-UTILS comes installed with Wheezy.... I don't recall every loading it ...

I just mount my NAS shares with that. I don't always want them loaded, so I just use a script I call when I need them... something like:

Code: Select all

sudo mount -t cifs //192.168.1.35/network /media/network -o user=USERNAME -o password=PASSWD
with the correct values for USERNAME and PASSWD...

I do the same thing with a share off one of my Win7 workstations which has a lot of ISO's on it which is the same mount command command.

Code: Select all

sudo mount -t cifs //192.168.1.12/movie-iso /media/iso -o user=USERNAME -o password=PASSWD

Code: Select all

Filesystem                Size  Used Avail Use% Mounted on
rootfs                     15G  2.5G   12G  19% /
/dev/root                  15G  2.5G   12G  19% /
devtmpfs                  125M     0  125M   0% /dev
tmpfs                      25M  232K   25M   1% /run
tmpfs                     5.0M     0  5.0M   0% /run/lock
tmpfs                      50M     0   50M   0% /run/shm
/dev/mmcblk0p1             56M   17M   40M  31% /boot
//192.168.1.35/network    452G  202G  214G  49% /media/network
//192.168.1.12/movie-iso  299G  262G   37G  88% /media/iso
you can have it mount automatically too via fstab.