Hello i am trying to get my slave media center to mount a network drive at startup automatic.
I have written this to my /etc/fstab/
\\192.168.1.2\root /media/data cifs username=doomstone,password=XXXX,auto,user 0 0
\\192.168.1.2\xbmc /media/xbmc cifs username=doomstone,password=XXXX,auto,user 0 0
Now when i do a "mount /media/data" it all works just fine, but it dose not mount it on statup. witch is a pain as the computer dose not have a keyboard, only a remote. So i need to ssh the computer and mount the drives each time i boot.
As far as i can figure is that the computer dose not have a network connection at the mount time, and thus fails the mount of the network drives.
How can i do this so it can be mounted at startup?
Best Answer
Try replacing
auto
with_netdev
in the options in/etc/fstab
- this should make the mount wait until the network is up.