public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* "umount: device is busy" when device is not in use?
@ 2006-01-13  3:28 Rashkae
  0 siblings, 0 replies; 2+ messages in thread
From: Rashkae @ 2006-01-13  3:28 UTC (permalink / raw)
  To: adam.nielsen; +Cc: linux-kernel

fuser -m /mnt/data will list the process ID of any process using the mount.

If your feeling brave, fuser -mk will just kill them.

^ permalink raw reply	[flat|nested] 2+ messages in thread
* "umount: device is busy" when device is not in use?
@ 2006-01-13  1:20 Adam Nielsen
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Nielsen @ 2006-01-13  1:20 UTC (permalink / raw)
  To: linux-kernel

Hi all,

Is it possible to ask the kernel what processes are using a particular
filesystem?

The reason being I have a stubborn NFS mount that refuses to unmount
saying it's in use, but I can't find what's using it:

$ umount /mnt/data
umount: /mnt/data: device is busy
umount: /mnt/data: device is busy

$ umount -f /mnt/data
umount2: Device or resource busy
umount: /mnt/data: device is busy
umount2: Device or resource busy
umount: /mnt/data: device is busy

$ lsof | grep data
<nothing>

So the kernel obviously thinks the filesystem is in use, but I'm
not sure how to find out what's using it.  No processes have their
current working directory on this filesystem, and I'm sure there
aren't any open files on it.

Even forcefully unmounting the filesystem (-f) doesn't work, although
I've never gotten that to work before.  Is it even possible to force an
unmount of a filesystem that's in use?

This is under kernel 2.6.14.

Thanks,
Adam.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-13  3:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-13  3:28 "umount: device is busy" when device is not in use? Rashkae
  -- strict thread matches above, loose matches on Subject: below --
2006-01-13  1:20 Adam Nielsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox