Discussion:
how can I (really) force a umount?
(too old to reply)
Gary Dale
2004-11-15 15:24:57 UTC
Permalink
I'm connecting to a couple of shares on an XP Pro workstation - not a
good idea, I know, but it's convenient in this case except:

sometimes the XP workstation gets rebooted while the shares are
connected. After that, I can't disconnect them and I can't reconnect
them. This creates a real problem because some programs (esp. under
wine) seem to read the full /mnt folder so they take forever.

I've tried umount //server/share --force as root but it doesn't work. I
get 4 or 5 error messages telling me things like the device is busy, etc..

Any solutions?
Baho Utot
2004-11-15 23:54:50 UTC
Permalink
Post by Gary Dale
I'm connecting to a couple of shares on an XP Pro workstation - not a
sometimes the XP workstation gets rebooted while the shares are
connected. After that, I can't disconnect them and I can't reconnect
them. This creates a real problem because some programs (esp. under
wine) seem to read the full /mnt folder so they take forever.
I've tried umount //server/share --force as root but it doesn't work. I
get 4 or 5 error messages telling me things like the device is busy, etc..
Any solutions?
see man lsof

lsof
kill processes holding drive/mount point
umount
Mihai Osian
2004-11-16 20:14:14 UTC
Permalink
Post by Baho Utot
Post by Gary Dale
I'm connecting to a couple of shares on an XP Pro workstation - not a
sometimes the XP workstation gets rebooted while the shares are
connected. After that, I can't disconnect them and I can't reconnect
them. This creates a real problem because some programs (esp. under
wine) seem to read the full /mnt folder so they take forever.
I've tried umount //server/share --force as root but it doesn't work. I
get 4 or 5 error messages telling me things like the device is busy, etc..
Any solutions?
see man lsof
lsof
kill processes holding drive/mount point
umount
fuser -k path
is even better
Gary Dale
2004-11-19 04:51:54 UTC
Permalink
Post by Mihai Osian
Post by Baho Utot
Post by Gary Dale
I'm connecting to a couple of shares on an XP Pro workstation - not a
sometimes the XP workstation gets rebooted while the shares are
connected. After that, I can't disconnect them and I can't reconnect
them. This creates a real problem because some programs (esp. under
wine) seem to read the full /mnt folder so they take forever.
I've tried umount //server/share --force as root but it doesn't work.
I get 4 or 5 error messages telling me things like the device is
busy, etc..
Any solutions?
see man lsof
lsof
kill processes holding drive/mount point
umount
fuser -k path
is even better
Gives me an Input/Output error.
Gary Dale
2004-11-19 04:53:32 UTC
Permalink
Post by Baho Utot
Post by Gary Dale
I'm connecting to a couple of shares on an XP Pro workstation - not a
sometimes the XP workstation gets rebooted while the shares are
connected. After that, I can't disconnect them and I can't reconnect
them. This creates a real problem because some programs (esp. under
wine) seem to read the full /mnt folder so they take forever.
I've tried umount //server/share --force as root but it doesn't work. I
get 4 or 5 error messages telling me things like the device is busy, etc..
Any solutions?
see man lsof
lsof
kill processes holding drive/mount point
umount
gives me a "Warning: can't stat() smbfs file system" /mnt/mntpoint.
Loading...