nakshatra
Posts: 8
Joined: Mon Feb 03, 2014 8:04 am

sharing a folder through raspberry pi

Wed Mar 12, 2014 6:19 am

hi,
am currently working on Raspberry Pi as low-cost HD surveillance camera.Now am trying to store the videos on a windows shared folder by adding an extra line of //YOURSERVERNAME/YOURSHAREDFOLDERNAME /mnt/camshare cifs username=YOURSHAREDFOLDERUSERNAME,password=YOURSHAREDFOLDERPASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 in the /etc/fstab file.
but even after doing so am unable to see a new folder created on my windows machine(foldername/mnt/camshare).so can anyone tell me what could be the problem??

User avatar
DougieLawson
Posts: 39297
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: sharing a folder through raspberry pi

Wed Mar 12, 2014 6:25 am

I think you've got it round the wrong way.

Which system hosts the data? Which is the consumer?

If you want windows to share data stored on your RPi you'll need to run samba on your RPi and 'NET USE' the shared folder on windows.

The way you're trying it windows hosts the data the RPi is the consumer.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

nakshatra
Posts: 8
Joined: Mon Feb 03, 2014 8:04 am

Re: sharing a folder through raspberry pi

Thu Mar 13, 2014 11:31 am

thanks for the reply.

what i want is rpi is the host an windows is the consumer.
what actually am following is the tutorial:http://www.instructables.com/id/Raspber ... /?ALLSTEPS
The tutorial says that it has to create a folder after editing the etc/fstab file.But even after doing so,it has not been created.
what could be the problem? and please tell me how to solve it.
thanks in advance!!

wesserchen
Posts: 3
Joined: Thu Aug 07, 2014 11:56 am

Re: sharing a folder through raspberry pi

Thu Aug 07, 2014 12:08 pm

Hallo, I'm also tested this projekt.Thirst it does'nt work. Then I read a page from ubuntuusers http://wiki.ubuntuusers.de/Samba_Client ... -Einbinden and exchange the servername with the IP Adress from my windows PC.
Now it's working!

bodzinga
Posts: 1
Joined: Sat Aug 16, 2014 2:37 pm

Re: sharing a folder through raspberry pi

Sat Aug 16, 2014 2:49 pm

I have the same problem. I alsready used the IP address of my PC as YOURSERVERNAME.
The directory is not created. If I create it myself then still it seems not to be linked to my windows folder.
One issue I face is that windows seems not to allow a username/password on a shared folder. So why is it needed anyway in the fstab file?

wesserchen
Posts: 3
Joined: Thu Aug 07, 2014 11:56 am

Re: sharing a folder through raspberry pi

Mon Aug 18, 2014 8:40 pm

Hallo,
so look my entry in the fstab:

//192.168.2.107/Raspi /mnt/camshare cifs username=Windowsuser,password=Windowspassword,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Dont forget a space line to the end in the fstab!

I had create a User for my Paspberry in WIN7 with Password and then I shared the Folder (Raspi) for this user with all rights. You can test the Shared Folder with an other Computer.
The Folder "mnt/camshare" I had also even created.

Return to “General discussion”