Skip to contentSkip to conversation

umount --force fails

DISCUSSION Anders Widman 2 participants 2 messages Apr 9, 2003 – Apr 10, 2003

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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