sanfx
Posts: 80
Joined: Thu Sep 08, 2016 5:40 pm

external NTFS drives write protected

Sun Feb 05, 2017 8:06 am

Hi,

I have two external HDD, I recently migrated from Old version of Raspbian Jessie on different SD card to latest version of Rasbian Jessie on new SD card.

I had same setup of mounting as I copied the /etc/fstab and pasted the mount command as it is . the HDD gets mounted but are write protected.

Code: Select all

# New NTFS HD: Archives&Backup on Sat Aug 20 - 13:00:00 IST 2016
UUID=120063E80063D171 /home/pi/USBHDD/ ntfs defaults,users,noatime,nofail,x-systemd.device-timeout=10,rw,umask=0000 0 2

# New NTFS HD: SE7EN on Sunday Feb 5 - 12:50AM IST 2017
UUID=EE84D97484D93FAF /home/pi/SE7EN/ ntfs defaults,users,noatime,nofail,x-systemd.device-timeout=10,rw,umask=0000 0 2
Does any one have any idea what extra do I need to instal to be able to read / write on external NTFS file system,

User avatar
rpdom
Posts: 15417
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: external NTFS drives write protected

Sun Feb 05, 2017 8:39 am

The default NTFS driver only supports read access.

In order to be able to write to NTFS you need to install the ntfs-3g driver (which is a bit slower).

Code: Select all

sudo apt-get update
sudo apt-get -y install ntfs-3g
and change your fstab entries to say ntfs-3g instead of ntfs.

sanfx
Posts: 80
Joined: Thu Sep 08, 2016 5:40 pm

Re: external NTFS drives write protected

Sun Feb 05, 2017 3:59 pm

thanks, much appreciated. One more thing I would like the second mount to be www-data user and www-data group.
rather than system user pi. In past I had it done but while moving content from drive to drive I lost it.

When I am trying to change the ownership and group of data folder as described here:

Code: Select all

chown -R www-data:www-data /var/www/pydio/data.
its not working

User avatar
rpdom
Posts: 15417
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: external NTFS drives write protected

Sun Feb 05, 2017 5:42 pm

You can't change the ownership of an NTFS drive like that, it doesn't support Unix attributes. You can put it in the fstab entry

Code: Select all

# New NTFS HD: Archives&Backup on Sat Aug 20 - 13:00:00 IST 2016
UUID=120063E80063D171 /home/pi/USBHDD/ ntfs defaults,users,noatime,nofail,x-systemd.device-timeout=10,rw,umask=0000,uid=www-data,gid=www-data 0 2
(I think it works with the user/group name. You might need to use the uid/gid numbers instead)

Return to “Raspbian”