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

Re: Modern automounters and umount



On 2/21/20 9:23 AM, Jonathan Dowland wrote:
On Fri, Feb 21, 2020 at 08:53:50AM -0500, Stefan Monnier wrote:
Indeed.  And FWIW, you should/might be able to avoid the `sudo` by
asking udisks2 to do the unmount

Yep. It requires you to specify the device, rather than the filesystem
mount point:

    $ udisksctl unmount -b /dev/sdb1

But does not require superuser, if udisks2 mounted it on your user's
behalf in the first place.


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


Reply to: