Mythbuntu: Mounting Media

I was going to write up a long nice detailed thing here, but then I found this, https://help.ubuntu.com/community/MountWindowsSharesPermanently and now I don't need to as it explains it way better.

My quick notes:
sudo apt-get install smbfs

Find my UID
id

Create my /etc/samba/cifspw file
username=MyUsername
password=MyPassword

My fstab lines
//syndrome/movies /home/mediacenter/Movies cifs uid=1000,gid=1000,credentials=/etc/samba/cifspwd,domain=incredibles 0 0
//syndrome/music /home/mediacenter/Music cifs uid=1000,gid=1000,credentials=/etc/samba/cifspwd,domain=incredibles 0 0
//syndrome/pictures/iPhoto\040Library/data /home/mediacenter/Pictures cifs uid=1000,gid=1000,credentials=/etc/samba/cifspwd,domain=incredibles 0 0

Create mount directory
mkdir /home/mediacenter/Movies

Test mount
cd /home/mediacenter/
sudo mount -a Movies

Set permissions on folder
sudo chown mediacenter:mediacenter Movies
sudo chmod 755 Movies/

No comments:

Post a Comment