Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

External NTFS drive mounted but unavailable after logout while it is in fstab

$
0
0

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:broken symlink to external USB-HDD
  • 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.
  • When I do fuser /dev/sda2/ I get empty output.
  • Then I do sudo umount ... ; sudo mount ... and everything goes back to normal.
  • I've checked UUID using blkid:UUIDI guess I have to write UUID no PARTUUID in etc/fstab

Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>