Am Dienstag, 10. März 2009 schrieb Pol Hallen: > HI all :-) > > Using debian stable (samba version 2:3.2.5-4 ) often I mount ntfs partition > (using mount.ntfs-3g) of a usb external disk. So I can access from my lan to > this usb disk. > > [usb0] > path=/media/usb0 > writable = yes > browseable = no > valid users = nick > [...] > > when I finish to use this disk and I try to umount it samba doesn't release > this the disk: > > umount /media/usb0 (or umount /dev/sdXX) > umount: /media/usb0: device is busy > > because --> lsof|grep usb0 > > smbd 29491 root cwd DIR 180,1 102400 > 5 /media/usb0 > > if anybody uses this remote share how I should umount the disk? > > Thanks! > Pol
as root, you can use 'smbstatus' to list all connections. Also as root use 'smbcontrol smbd close-share share_name' to close the given share "share_name". Close the share(s) you've used for your usb disk. On very recent samba versions you might need to use: smbcontrol all close-share share_name Cheers, Günter -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
