Can't get mount to work in /etc/init.d/rc.local or fstab
I'm running XBMC media center which is built on Ubuntu and I'm trying to mount a network share, but I can't seem to automate it. If I manually run:
Code:
mount -t cifs -o file_mode=0777,dir_mode=0777 //192.168.1.20/disk7/xbmc_thumbs/Thumbnails /home/kevin/.xbmc/userdata/Thumbnails The other day I upgraded to a new XBMC build (which is built on the newer Lucid Ubuntu) and while the same command creates the mount, putting it in /etc/init.d/rc.local does not create it on boot. Someone suggested the fstab was the better place to create the mount. So I inserted the following in /etc/fstab: Code:
//192.168.1.20/disk7/XBMC_thumbs/Thumbnails /home/kevin/.xbmc/userdata/Thumbnails cifs file_mode=0777,dir_mode=0777 0 0 |
When booting, fstab is read before the network is up. You can't mount a network share until the network is working, so you have to delay the mounting using _netdev
See this post. |
That didn't work either. Here is my fstab after adding _netdev (it's the last line):
Code:
kevin@XBMCLive:~$ cat /etc/fstab |
Nobody has any other ideas on this?
|
um, for my xbmc-live i put this in /etc/rc.local
Code:
sshfs schneidz@192.168.1.25:/media/win/stuff /home/xbmc/hyper & |
All times are GMT -5. The time now is 10:06 AM. |