Mount Windows and Samba Shares - Raspberry Pi

From ETCwiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This guide lets you mount your Windows shares as a folder on your Raspberry Pi. You can then play music from it, watch videos, and use backups like they are a local folder.

create a mount folder (do all of this as root)

mkdir /myserver
chown -R pi:pi /myserver
chmod 777 /myserver

add share to auto-mount

vi /etc/fstab

add this line

//192.168.1.69/sharename /myserver auto,owner,rw,username=user1,password=hackme 0 0

test to make sure it works

mount -a

or

init 6

now check the folder after mount

cd /myserver
ls