Difference between revisions of "PiSetup"

From OpenCircuits
Jump to navigation Jump to search
(Created page with "=Access Network Drive = .... 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 th...")
 
Line 19: Line 19:
  
  
 +
>>>  # works from command line but get read only access
  
 
+
<pre>
>>>  # works from command line but get read only access
 
 
sudo mount -t  cifs -o guest  //192.168.0.170/share /mnt/share1
 
sudo mount -t  cifs -o guest  //192.168.0.170/share /mnt/share1
<pre>
 
code
 
 
</pre>
 
</pre>
  
 
>>>  seems also to work can I write?  no read only
 
>>>  seems also to work can I write?  no read only
 +
 +
<pre>
 
sudo mount -t cifs -o username=russ,password=squeak13 //192.168.0.170/share /mnt/share1
 
sudo mount -t cifs -o username=russ,password=squeak13 //192.168.0.170/share /mnt/share1
<pre>
 
code
 
 
</pre>
 
</pre>
  
Line 41: Line 39:
  
 
>>>  another thing to try this worked for read write, see http://www.lukemannering.co.uk/mount-cifs-error-13-permission-denied/
 
>>>  another thing to try this worked for read write, see http://www.lukemannering.co.uk/mount-cifs-error-13-permission-denied/
 +
<pre>
 
sudo mount -t cifs -o username="russ",password="squeak13",workgroup="MSHOME",file_mode=0777,dir_mode=0777,nobrl //192.168.0.170/share/_Source/rPi  /mnt/share1
 
sudo mount -t cifs -o username="russ",password="squeak13",workgroup="MSHOME",file_mode=0777,dir_mode=0777,nobrl //192.168.0.170/share/_Source/rPi  /mnt/share1
 +
</pre>
 +
 +
  
 
But there is a graphical tool available which can browse shares and even mount them: smb4k  apt get cannot find
 
But there is a graphical tool available which can browse shares and even mount them: smb4k  apt get cannot find
Line 60: Line 62:
 
more recently above fails but using
 
more recently above fails but using
  
sudo rpi-update
+
<pre>
    sudo reboot
+
sudo rpi-update
 +
sudo reboot
 +
</pre>
  
 
makes it work see:
 
makes it work see:
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=20301
+
[https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=20301 forum topic]
  
 
//10.1.10.50/share /mountpoint cifs sec=ntlm,noauto,x-systemd.automount 0 0
 
//10.1.10.50/share /mountpoint cifs sec=ntlm,noauto,x-systemd.automount 0 0

Revision as of 04:20, 27 October 2016

Access Network Drive

.... 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  //192.168.0.170/share /mnt/share1

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

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

>>> share less


sudo mount -t cifs -o username=russ,password=squeak13 //192.168.0.170/share/_Source/rPi /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 //192.168.0.170/share/_Source/rPi  /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

//192.168.0.170/share/_Source/rPi /mnt/share1 cifs user=russ,pass=squeak13,_netdev 0,0

//192.168.0.170/share/ /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

//10.1.10.50/share /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


http://www.raspberrypi.org/forums/viewtopic.php?t=60699


https://unix.stackexchange.com/questions/124342/mount-error-13-permission-denied

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? )