I know that this question is asked before, but nothing seems to work. I have a double boot windows 10 - ubuntu 18.10 on the NVME and a 2nd 1 TB HDD drive (ntfs). Windows of course have permission on the HDD, but ubuntu doesn't (read-only).
I want to have read-write-execute permission as user (id=1000) on the HDD!
tried:
remount
sudo mount -o remount,rw Sometimes works after 1st reboot, but after 2nd reboot, I had read-only permissions again
edit fstab
default entry:
/dev/disk/by-uuid/[disk-id] /path/to/mount auto nosuid,nodev,nofail,x-gvfs-show 0 0
changed to:
/dev/disk/by-uuid/[disk-id] /path/to/mount auto nosuid,rw,nodev,nofail,x-gvfs-show 0 0
,
/dev/disk/by-uuid/[disk-id] /path/to/mount auto nosuid,uid=1000,nodev,rw,nofail,x-gvfs-show
,
/dev/disk/by-uuid/[disk-id] /path/to/mount ntfs defaults
,
/dev/disk/by-uuid/[disk-id] /path/to/mount ntfs-3g defaults
,
dev/disk/by-uuid/[disk-id] /path/to/mount ntfs nosuid,uid=1000,nodev,rw,nofail,x-gvfs-show 0 0
chown
sudo chown -R -v user:user /path/to/mount
error: failed to change ownership of '/path/to/mount' from user:root to user:user,
chown -R user /path/to/mount
didn't work
As far as I understand, permissions are granted upon mount on boot time. So, the solution has to lie at fstab. But, the mount point is at /media/ (or by default at /mnt/) which are directories with only-root permissions, thus I tried to mount under /home/user/testDir, but got the error:
mount: /home/user/testDir: mount point not mounted or bad option
Any suggestions? Maybe, in how to properly edit fstab?Any help will be deeply appreciated.