2011-04-21, 18:49
I'be been trying to automount SMB Shares with autofs with the following steps :
First installed the packages.
Then I've created the server automount root /mnt/server where all the network shares will be mounted.
Then edited /etc/auto.master to add the following line at the end of the file :
Then created /etc/auto.server to list all the shares that should be automatically mounted under the /mnt/server root :
Then I've created the file /etc/auto.auth and wrote in the following :
Once configuration was over, I've restarted autofs daemon for the changes to take effect:
Now if I want to add the directories in XBMC my problem is that they are all empty.
Any ideas how to solve this ?
First installed the packages.
Code:
sudo aptitude install smbfs autofs
Then I've created the server automount root /mnt/server where all the network shares will be mounted.
Code:
sudo mkdir /mnt/server
sudo chmod 0666 /mnt/server
Then edited /etc/auto.master to add the following line at the end of the file :
Code:
/mnt/server /etc/auto.server --timeout=6000 --ghost
Then created /etc/auto.server to list all the shares that should be automatically mounted under the /mnt/server root :
Code:
movies -fstype=smbfs,credentials=/etc/auto.auth ://AddressOfServer/movies
music -fstype=smbfs,credentials=/etc/auto.auth ://AddressOfServer/music
pictures -fstype=smbfs,credentials=/etc/auto.auth ://AddressOfServer/pictures
Then I've created the file /etc/auto.auth and wrote in the following :
Code:
username=myusername
password=mypassword
Once configuration was over, I've restarted autofs daemon for the changes to take effect:
Code:
sudo /etc/init.d/autofs restart
Now if I want to add the directories in XBMC my problem is that they are all empty.
Any ideas how to solve this ?