I have an external USB-drive with NTFS filesystem on Ubuntu 20.04.2 I have a mounting point at /media/myname/data
. I ran sudo blkid
and know this device UUID. I have an /etc/fstab
with this record:
UUID=02A47952A4794965 /media/myname/data ntfs defaults 0 0
However each time I logout and then login after a while this device is unavailable. To mount it back I have to manually do two commands:
sudo umount /media/myname/datasudo mount -t ntfs /dev/sda2/ media/myname/data
Also if I logout and login immediately the device stays mounted and available. But usually I logout for the night and in the morning my device is always unavailable, but "mounted". What could be the problem?
Update:
- I have changed mounting point from
/media/myname/data
to/media/data
. Logged out, waited the night, logged in, the problem persists. I have a symlink to my external USB-HDD in/home/myname
directory and it is broken: - When I try
ls /media/data
I get:ls: cannot access '/media/data': Transport endpoint is not connected
. There is this question, where the problem was solved only by manually unmounting the drive. I do the same every login. - When I try to
sudo mount -t ntfs /dev/sda2 /media/data/
I get:
Mount is denied because the NTFS volume is already exclusively opened.The volume may be already mounted, or another software may use it whichcould be identified for example by the help of the 'fuser' command.