I have Windows and Arch Linux in dual with UEFI. I want to mount my another NTFS partition in Arch. I mounted the partition with mount /dev/sda5 /mnt/Apps
command. Then added the output of genfstab -U /mnt/Apps
in /etc/fstab
file. The output is as follows:
UUID=01D158CC7C2A61A0 /mnt/Apps ntfs rw,nosuid,nodev,user_id=0,group_id=0,allow_other 0 0
But when I unmount and remount that partition all files and folders shows with root uid and gid and 0777 permission. I also tried with changing uid and gid to 1000 but same result. So, my question, what is the correct way to add NTFS partitions in fstab so that I can read & write all file and folder both with normal user (1000:1000) and root (0:0)?
Best Answer
As commented by muru from this answer, I have added the
fmask
anddmask
permissions in/etc/fstab
and now it shows correct permissions. I have change that line as follows:This sets all files
0644
and directories0755
permissions.