On Saturday 14 March 2009 16:16:41 you wrote:
2009/3/12 lynn
: I'm trying to automate a cifs mount from a NAS. Sometimes the NAS is switched on sometimes it isn't. If the NAS is on, I want to mount it and store stuff on it. If it's not then just ignore it. I've tried putting it in fstab:
//192.168.1.4/part1 /home/lynn/t50 cifs username=lynn,password=xxx 0 0
but if the NAS is not switched on, the boot process stops for ages, presumably when it tries to mount it as without the line in fstab it boots fast. I can write a script to mount it and have the user click on it to run in a terminal as:
sudo mount -t cifs -o username=lynn,password=xxx //192.168.1.4/part1 /home/lynn/t50
I have tried to use it as a samba share from konqueror but I am then unable to write torrent data to it. I know I can ping it to find out if it's on or not but the whole thing is just too difficult for an ordinary user. Could anyone point me in the right direction? I think it's automount but nothing I have seen mentions cifs, only nfs.
Phew, Lynn
The best thing you can do is use autofs instead of listing the share in fstab.
Some examples: http://linux.bononline.nl/linux/automountsmbshares/index.php http://blog.sontek.net/2007/10/30/autofs-automount-network-shares/
I think that's what you're after...
Regards,
OMG that is *utterly amazing. I add one line to /etc/auto.master and start autofs. And it just works. There must be a catch! L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org