Posts: 39
Joined: Dec 2009
Reputation:
0
2010-02-06, 05:56
(This post was last modified: 2010-02-06, 16:18 by jwoolen.)
Here's what I did. For example I'll use the following configuration:
XBMC Username: xbmc1
SMB Share: 192.168.0.126/share
Username: user1
Password: pass1
Instead of having to add sudo to each command, I switched to root:
sudo su root
first make a directory for the mount:
mkdir /home/xbmc1/share
install smbfs:
apt-get install smbfs (may be necessary to run apt-get update first)
edit fstab to mount share on startup:
nano /etc/fstab
add this on the last line of the fstab:
//192.168.0.126/share /home/xbmc1/share smbfs username="user1%pass1"
Exit, save and restart. If it mounted successfully, the share should appear under the home folder.
To restart from the console:
shutdown -r now
If you want to test the mount before adding it to the fstab, type this command after executing the mkdir command:
smbmount //192.168.0.126/share /home/xbmc1/share -o username="user1%pass1"
This will only mount the share once. I used Ctrl+Alt+F2 to get to the console, and Ctrl+Alt+F7 to switch back to xbmc to test the mount
If any of the above is incorrect, I apologize, because I am a linux noob.
Posts: 69
Joined: Jun 2008
Reputation:
0
Hey jwoolen, thanks - your solution is partly working for me.
I can mount the drives using smbmount and your instructions and this seems to solve the problem.
I can also see that I've properly written it into fstab also.
However it doesn't mount on startup or reload - I still have to run the manual command to make it mount.
Any ideas?
Posts: 69
Joined: Jun 2008
Reputation:
0
Any ideas where I'm going wrong?
Posts: 3
Joined: Apr 2010
Reputation:
0
Hello.
I'm pretty sure I have the exact same problem. I'm running XBMCfreak's v13 live cd and I cant seem to find /var/db/samba/smb.shares anywhere when I ftp into the install. Apparently there is no /db folder in my /var folder.
Any help will be much preciated.
Posts: 12
Joined: Nov 2009
Reputation:
0
rican
Junior Member
Posts: 12
The /var/db/samba/smb.shares was edited on my OSX box not the XBMC