Unable to write on NTFS mounted file systems in Fedora 28
I installed Fedora in dual boot with Windows 10. The NTFS drives weren't mounted. I had to enter the password everytime I wanted to access some file. This is the default behavior. But I wanted to auto-mount the drives on every boot. So, I opened the /etc/fstab
file and added the following line for each of the NTFS partition.
/dev/disk/by-uuid/<mount-uuid> /mnt/MyDrive auto rw,users,exec,uid=my_user_name,gid=my_group_name,permissions,x-gvfs-show 0 0
The drive automounts on each boot but I cannot write in the partitions.
What do I do to get write permissions in the partition?
Some other details
ls -Zdl
returns the following
drwxrwxrwx. 1 my_user_name my_group_name system_u:object_r:fusefs_t:s0 4096 Jul 24 12:11 /mnt/MyDrive/
I have tried sudo chown -R my_user_name:my_group_name /mnt/MyDrive/
but it doesn't work.
chcon -R -t svirt_sandbox_file_t /mnt/MyDrive/
returns statements similar to this chcon: failed to change context of 'mathjax.html' to ‘system_u:object_r:svirt_sandbox_file_t:s0’: Read-only file system
I have my reservation and don't want to use sudo chmod 777 /mnt/MyDrive/
but will use it as a last resort.
Thanks for help.
running
chmod
on an NTFS filesystem does not have any persistent effect. You may want to look at the mount options instead. It looks like you got that right already.What does
ls -al
give on a file within the filesystem?Have you looked at the system log? If mounting a filesystem fails, it sometimes is being remounted
ro
, i.e. readonly. You may search forntfs
,fuse
,mount
andreadonly
in syslog as presented byjournalctl -b
. Usingdmesg
may not be enough since NTFS is a userspace filesystem.You may want to try using
ntfsls
andntfsmount
to get more details.@genodeftest I am reading about those commands