every times, samba mounting automatically
Long story as short, I found that smbmount doesn't work, but "mount -t cifs //machine/direcotory /mount point" working fine.
Now, I am commanding mount -t cifs //192.168.1.230/fileserver /samba-mount every time. How can I mount this network folder automatically? -------------------------------------------------------------- [My distro is Fedora 11] |
install autofs and smbfs and see if Accessing Windows Or Samba Shares Using AutoFS | HowtoForge - Linux Howtos and Tutorials will help get it going. You might also check autofs on bononline.
What I do is to enable the auto.smb line in auto.master (and change the link directory to /lan but the default may be OK), create a credentials file auto.smb.[servername] works just fine. Then I can ls the link directory to see the available servers and drill down from there. If all you want to do is to connect to an existing directory, then just use a static link in autofs.master - a key is to make sure the owner of the link point on your system is suitable. |
Quote:
To /etc/rc.local This will automatically mount it upon startup. You could also write a small script that would do i.e then run it as a cron to occasionally check and remount if df -h | grep -q "fileserver" then #do nothing else mount -t cifs //192.168.1.230/fileserver /samba-mount every time. fi |
All times are GMT -5. The time now is 10:19 AM. |