0

I've read this: How do I correctly mount a NTFS partition in /etc/fstab? plus lots of other related web pages

My fstab entry:

#Entry for /dev/sdb2: 
UUID=1C77E5134D44D900   /home/me/Libraries  ntfs-3g fs-name=Library,x-gvfs-symbolic-icon=Library,permissions,nosuid,nodev,noexec,uid=1001,gid=1001,rw,umask=22,dmask=27,fmask=137    0   0

This mounts as me correctly in the correct place but there are three issues:

  1. Nautilus, when clicking on "Other Locations", shows the name as 290GB Volume" even though the name in gparted is shown as "Libraries"

    Fixed with ntfslabel command

  2. Even though "permissions" is set, I still can't change file permissions in any files as myself or even using sudo.

  3. mount command shows:

    /dev/sdb2 on /home/me/Libraries type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
    

I would expect it to show my uid although the mount directory /home/me/Libraries shows my ownership. What am I doing wrong? The only difference I see is I don't use LABEL="Libraries" but use ntfs-3g fs-name=Library,x-gvfs-symbolic-icon=Library instead.

Update:

I changed the fstab line to

LABEL=Library /home/john/Libraries ntfs-3g fs-name=Library,x-gvfs-symbolic-icon=Library,permissions,nosuid,nodev,uid=1001,gid=1001,rw,dmask=27,fmask=137 0 0

Tried these commands:

$ ll temp.QIF 
-rw-r----- 1 john john 167 Jul 24  2016 temp.QIF

$ chmod 666 temp.QIF ; echo $?
0

$ ll temp.QIF 
-rw-r----- 1 john john 167 Jul 24  2016 temp.QIF

Note that permissions do not change. chmod returns a 0 indicating no error.

jpezz
  • 1,140

1 Answers1

0
  1. I think Nautilus is using the label (not the fs-name). You can try to set the label.

  2. The permissions and ownership of Microsoft file systems in linux are set when mounting and cannot be modified (except if you unmount and mount with new settings). These settings are inherited to directories and files.

  3. I'm not sure (yet?) what is the problem with this item. But it works for me according to this link, How do I use 'chmod' on an NTFS (or FAT32) partition?

sudodus
  • 47,684