I have a notebook with Scientific Linux 6.1. I have a wireless router with OpenWrt 10.03 - Wrt160NL. I have a HDD on the router that I share via samba:
cat /etc/samba/smb.conf.template [global] workgroup = workgroup guest account = nobody security = share browseable = yes guest ok = yes guest only = no log level = 2 log file = /tmp/log/smbd.log max log size = 100 encrypt passwords = yes dns proxy = no host allow = 192.168.1.0/24 netbios name = Router server string = Linksys WRT160NL Router socket options = TCP_NODELAY client code page = 852 dos charset = 852 unix charset = UTF-8 display charset = UTF-8 character set = ISO8859-2 [SHARE] comment = SHARE path = /mnt/hdd/PUB browseable = yes public = yes guest ok = yes writable = no
and on client side:
cat /etc/fstab //192.168.1.1/SHARE /home/USERNAME/Desktop/SHARE cifs ro,noexec,nosuid,nodev,noatime,password=,nolock 0 0
This WORKS GREAT!
- When someone is connecting to the router via ethernet cable then it could see the share on the router.
- When someone is connecting to the router via wireless then it could see the share on the router.
BUT -> the problem -> when someone is using the ethernet cable, and plugs it out, and switches to wireless the share dissapears, and it can't mount it:
mount -vvv //192.168.1.1/SHARE /home/USERNAME/Desktop/SHARE -o ro,noexec,nosuid,nodev,noatime,password=,nolock -t cifs
because the command times out. But if we plug back the ethernet cable and go in to the "SHARE" directory under GNOME2 it automatically mounts.
QUESTION: how can I mount the SHARE after switching to wireless? (are there some kind of cache that stores that the SHARE is only available via the ethernet? - I tried to umount/mount the SHARE but it didn't worked. )