umount --force fails
Why can't I use "umount /mnt/disk --force"?
[root]# umount /mnt/disk --force
umount2: Device or resource busy
umount: /dev/Server/Root: not mounted
umount: /mnt/disk: Illegal seek
No kernel errors are logged.
The reason why I want to use "--force" is that I have Samba running sharing this folder (plus many others). I do not want to stop Samba just to unmount just one of the filesystems.
Is there a way that I can get around this? I thought that "--force" would force an umount of the filesystem even if some program were using it?
//Anders
Hello!
Quoted 1 line · Anders Widman
Why can't I use "umount
/mnt/disk--force"?
It is only implemented for NFS. At least that's what my man page says.
Quoted 3 lines
Is there a way that I can get around this? I thought that "--force" would force an umount of the filesystem even if some program were using it?
I think it is possible to do that for any fs, but some decisions should be made like what to do with processes having open filehandles/cwd to the mounted filesystem and so on. Please consult lkml archives for more info on that topic.
Bye,
Oleg