On 2/20/19 3:20 AM, Alexander V. Makartsev wrote:
On 20.02.2019 11:16, Mark Allums wrote:There you have it. "lsof" command should not output anything if examined object is not in use. I assume that "/dev/sdb1" gets auto-mounted by gvfsd [1] for user with UID 1001. AFAIK GIO and company implements different mounting scheme without involving traditional kernel mounting and allow to restrict mounted devices only for user who mounted them.On 2/17/19 10:59 PM, Alexander V. Makartsev wrote:On 17.02.2019 1:21, Mark Allums wrote:Maybe something simple like "lsof" command can shed some light on this problem?On 2/16/19 2:41 AM, Curt wrote:On 2019-02-15, Mark Allums <mark@allums.email> wrote:I just bought a new backup disk, and I want to check it. It's mounted ina USB dock. Running the following gives an error: root@martha:~# umount /dev/sdb1 root@martha:~# e2fsck -c -c -C 0 -f -F -k -p /dev/sdb1 /dev/sdb1 is in use. e2fsck: Cannot continue, aborting. What's causing this and how do I fix it? It's not MATE; I tried rebooting to rescue mode, but that didn't help. MarkPeople sometimes recommend 'fuser' in cases like these in order to identify processes that might be accessing the drive. I mean, the message says '/dev/sdb1 is in use.' Perhaps it is indeed. fuser -v -m /dev/sdb1 Worth a try, maybe, as no one else seems to have suggested it.root@martha:~# fuser -v -m /dev/sdb1 root@martha:~# No results. Thanks. Mark$ sudo lsof /dev/sdb $ sudo lsof /dev/sdb1root@martha:~# lsof /dev/sdblsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfsOutput information may be incomplete. root@martha:~# lsof /dev/sdb1lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfsOutput information may be incomplete. root@martha:~#So even root user can't access them if they are mounted by other user. Try to use gio [2] utility to check status and unmount "/dev/sdb1" device. [1] man gvfsd [2] man gio
The disk is not mounted.