# /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # # / was on /dev/sda2 during installation UUID=0509756b-86ab-429b-8710-097e01d9e49d / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=219556a7-befb-4e36-852a-12c0cd7fc6a0 none swap sw 0 0 # First install ntfs-3g in terminal # sudo apt-get install ntfs-3g # Mount Windows7 partition after installation of ElementaryOS Freya UUID=CE54CEF854CEE1F7 /media/WindowsData ntfs-3g defaults,windows_names,locale=en_US.utf8 0 0 UUID=1FDB5AEB23347632 /home/ntfsData ntfs-3g defaults,windows_names,locale=en_US.utf8 0 0 UUID=1FDB5AEB23347632 /home/ntfsData ntfs auto,defaults,windows_names,locale=en_US.utf8,gid=1000,umask=0000 0 0 #someWeirdId /media/name ntfs auto,stuff,stuff,stuff,uid=1000,gid=1000,umask=0000 0 0 /dev/sda3 /home/user/shared ntfs defauls,uid=1000,noatime 0 0 UUID=0A046CF41C7164C6 /media/Data ntfs defauls,uid=1000,gid=1000,noatime 0 0 #sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000 /dev/whatever /mnt/whatever # UUID=... /data ntfs defaults,umask=077,utf8 0 0 Example 1 (without execute permissions for files, no access for 'others'), # sudo mount -o rw,user,uid=1000,dmask=007,fmask=117 /dev/sdxn /mnt/sd1 # general syntax Example 2 (with execute permissions for files, no access for 'others'), # sudo mount -o rw,user,uid=1000,umask=007,exec /dev/sdb1 /mnt/sd1 # modify to match your case sudo mount /dev/sda3 /media/mypart1 -o permissions # - - # # - - # # - - # :A # - - # # - Mount HDD with standard Linux protections - # # - provided a UserMapping file is present - # mount -t ntfs-3g /dev/sda3 /mnt/shared :B # - - # # - Mount USB key, defining fallback protection parameters to - # # - use if no UserMapping file is present on the key - # mount -t ntfs-3g -o gid=1000,uid=1000,dmask=022 /dev/sdf1 /media/key :C # - - # # - Mount HDD with new files getting their protections - # # - the Windows way (a UserMapping file is required) - # mount -t ntfs-3g -o inherit /dev/sda3 /mnt/shared Changing File/Folder Owner and Permissions After mounting the NTFS partition with permissions option, now we are ready to change file/folder owner and file permissions. To manage the ownership of a directory we can use the command chown sudo chown user:group -R /media/mypart1/afolder To change permissions of a directory/file we can use the command chmod sudo chmod -R ug+rw,o=r /media/mypart1/afolder By this command the user and the group has read and write permissions, and the others set to read only. Here is some options meaning: u: user g: group o: other r: read w: write x: execute -R: recursively for sub files/folders For examle if we want to grant read, write, execute for owner user, and read only for group, and no access for other, we can use a command like: sudo chmod -R u=rwx,g=r,o= /media/mypart1/afolder By the way, we can also use a file manager (like Thunar, PcManFM) to change permissions or owner by GUI. So, try wrapping your head around this!! 7 = 4+2+1 (read/write/execute) 6 = 4+2 (read/write) 5 = 4+1 (read/execute) 4 = 4 (read) 3 = 2+1 (write/execute) 2 = 2 (write) 1 = 1 (execute) # - eof - #