From OpenCircuits
Jump to navigation Jump to search

Access Network Drive[edit]

.... command line share

use your router info to get tcpip address of the share device -- might work with name but not for me do we need samba for this?

which samba

did not whow samba but apt-get install samba showed it was there >>> create mount point

mkdir /mnt/share1

>>> # works from command line but get read only access

sudo mount -t  cifs -o guest  // /mnt/share1

>>> seems also to work can I write? no read only

sudo mount -t cifs -o username=russ,password=squeak13 // /mnt/share1

>>> share less

sudo mount -t cifs -o username=russ,password=squeak13 // /mnt/share1

>>> another thing to try this worked for read write, see http://www.lukemannering.co.uk/mount-cifs-error-13-permission-denied/

sudo mount -t cifs -o username="russ",password="squeak13",workgroup="MSHOME",file_mode=0777,dir_mode=0777,nobrl //  /mnt/share1

But there is a graphical tool available which can browse shares and even mount them: smb4k apt get cannot find

I:\_Source\rPi and this for fstab

// /mnt/share1 cifs user=russ,pass=squeak13,_netdev 0,0

// /mnt/share1 cifs user=russ,pass=squeak13,_netdev 0,0

    sec=ntlmm instead of guest seemed to work

more recently above fails but using

sudo rpi-update
sudo reboot

makes it work see: forum topic

// /mountpoint cifs sec=ntlm,noauto,x-systemd.automount 0 0

except that file manager cannot see the directories or files there but can be coaxed to see them if you put in the sub dir like /mnt/share1/_Global this is real odd http://www.raspberrypi.org/forums/viewtopic.php?t=60699



then look in dir /rPi copy over this win_to_pi_info.txt so have reference there

when share works copy over to /pi so you can refer to it without a share ( or put on web? ) http://www.raspberrypi.org/forums/viewtopic.php?t=60699

command line for this would be ( need sudo? )