[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Modern automounters and umount



On Fri, Feb 21, 2020 at 11:47:22PM -0500, Gene Heskett wrote:
> On Friday 21 February 2020 22:58:10 Mark Allums wrote:

[...]

> > Explain this, then:
> >
> > george@martha:~$ udisksctl unmount -b /dev/sdb1
> > Unmounted /dev/sdb1.
> > george@martha:~$ sudo e2fsck -c -c -k -p -f -C 0 /dev/sdb1
> > /dev/sdb1 is in use.
> > e2fsck: Cannot continue, aborting.
> >
> > Thnx,
> >
> > Mark
> Is there a user cd'd into it?  That locks it up.

You are confusing device file with (mounted) file system.
You can't "cd" into a device file (/dev/sb1), only into
a directory, which is part of a mounted file system. Then,
this directory is "in use". But then you can't umount the
corresponding file system.

So either "udisksctl" is lying or something else is happening
behind the scenes (e.g. an over-eager automounter remounting
the file system again).

I'd watch the logs for more info.

Cheers
-- t

Attachment: signature.asc
Description: Digital signature


Reply to: