Oikake
Posts: 1
Joined: Thu Dec 20, 2012 6:47 pm

Accessing Files on a NAS

Thu Dec 20, 2012 6:57 pm

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

forumisto
Posts: 386
Joined: Fri Mar 16, 2012 8:41 am

Re: Accessing Files on a NAS

Fri Dec 21, 2012 1:20 am

you need to install sambamand then mount the remote directory

stevech
Posts: 144
Joined: Sun Jul 15, 2012 11:53 pm

Re: Accessing Files on a NAS

Fri Dec 21, 2012 2:44 am

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.

User avatar
Dweeber
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
Contact: Website

Re: Accessing Files on a NAS

Fri Dec 21, 2012 5:30 am

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.
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com

Return to “General discussion”