I'm sharing an automounted cdrom mount, and smbd keeps the mount point busy by having its working directory in the last accessed directory. Even though the windows client disconnects, lsof tells me that the smbd process is the reason why umounts are failing, and why I can't eject the cdrom. My workaround is to do something like access another share on the samba server. This causes smbd to cwd elsewhere, releasing the mounted filesystem and then eject works.
Actually now I come to look at it, it looks like a child process of smbd had cwd'd to the share. Maybe the windows client hadn't fully disconnected... Anyway, here is extra info On Fedora Core 2's /etc/samba/smb.conf [cdrom] comment = DVD/CDR path = /var/autofs/ejectable/cdrom guest ok = yes auto.master /var/autofs/ejectable /etc/auto.ejectable --timeout=5 auto.ejectable cdrom -fstype=iso9660,ro,sync,nodev,nosuid :/dev/cdrom # ls -la /dev/hdc brw-rw---- 1 root disk 22, 0 Feb 24 2004 /dev/hdc # lsof | grep 22, smbd 31071 root cwd DIR 22,0 308 40960 /var/autofs/ejectable/cdrom # cat /var/run/smbd.pid 28147
This has been fixed for several releases now IIRC. Please reopen if tyhe bug still exists in 3.0.11
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.