HowTo: Raspberry Pi mount SMB Share
If you want to mount a SMB Share in your Network this short Tutorial might be helpful for you.
Lets say the SMB Folder, “myFolder”, is on a pc with the ip 192.168.2.100.
It is ptrotected with username “Peter” and password “miller123”.
On you Raspberry, type:
smbclient -U Peter -L 192.168.2.100
… it will ask you for the password (miller123).
to see all shares. It should also show the share “myFolder”. Now we will Create a Folder on the Pi to mount the share to it.
sudo mkdir /mnt/theFolder
To actually mount “myFolder” type:
sudo mount -t cifs //192.168.2.100/myFolder /mnt/theFolder -o username=Peter
add -r for READ ONLY
That’s it. You can now go to /mnt/theFolder and check your remote files.