To include a mount point in fstab:
- sudo blkid
- Get the UUID related to your partition.
- Change the /etc/fstab file adding this line:
UUID="deviceUUID" /mnt/devName ntfs users,defaults 0 0
- Create a directory owned by the user who will mount it:
sudo mkdir /mnt/devName sudo chown user /mnt/devName sudo chmod +rw /mnt/devName
Example:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=574d9999-a5ee-4ee6-a7f0-dc7a71342655 / ext4 relatime,errors=remount-ro 0 1
/dev/mapper/trisquel--vg-home /home xfs relatime 0 2
/dev/mapper/trisquel--vg-swap_1 none swap sw 0 0
UUID=84B66EADB66EA002 /media/tosh ntfs defaults,noauto,nofail,user 0 2
UUID=5e042100-2bb6-4c47-8ee3-d124719355d3 /media/integral ext4 defaults,noauto,nofail,user 0 2
NTFS
Permissions for ntfs and vfat file systems must be set with the dmask, fmask and umask options. dmask controls permissions for directories, fmask controls permissions for files, and umask controls both. Since these options set masks, they should be the complement of the permissions you want. For example, rwx for the owner and rx for others is 022 rather than 755.
To set the owner, use the uid and gid options for user and group, respectively. You can find your UID with the command id -u. To find your GID, use id -g. These values are both usually 1000.
A common set of mount options for ntfs is uid=1000,gid=1000,dmask=027,fmask=137. This sets you as the owner of the drive, and sets the permissions to drwxr-x—.