I have a 500GB SATA drive connected via a USB to my Pi 2. I can read data off it fine, but I can't write to it. It is formatted as NTFS. On my desktop, it is write-able, but not on Raspbian.
Set ownership when you mount the drive. For example if your drive that you want to mount is /dev/sda1:
sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 /media/USBDRIVE/
or if later you want to change permissions of files on the drive after mount, try to add a line to
/etc/fstab something like this:
/dev/sda1 /media/USBDRIVE ntfs-3g auto,users,permissions 0 0
ntfs-3g is a built-in package in Raspbian Jessie (but Not Jessie Lite), if you are using older distribution you need to install it before mount (
sudo apt-get install ntfs-3g).
You can check easily that this package has already installed:
dpkg -l | grep ntfs-3g
I just wanted to share my experience on using the current version of
ntfs-3g installed with
apt-get install ntfs-3g (version
1:2014.2.15AR.2-1+deb8u2). I was getting "Input/output error" using that version. It seems to be a known error: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774330.
You can downgrade the
ntfs-3g version from the 2014 release to the 2012 release but I decided to run the latest release. So, I did
apt-get remove ntfs-3g and then I built the 2016 release from source using the oficial docs: http://www.tuxera.com/community/open-source-ntfs-3g/
- Download the stable source release (in my cases 2016.2.22)
sudo make install
- Done. You can use it like
mount -t ntfs-3g /dev/sda1 /mnt/windows