I followed this guide to automount a USB stick to my Raspberry Pi 2. I'm using Raspbian Lite. https://www.raspberrypi.org/documentation/configuration/external-storage.md
The USB stick is a Sandisk Cruzer Fit 16GB
.
I created a folder /media/mydisk
.
I formated the USB stick on my desktop (Windows 10).
I plugged in the stick to the Raspberry Pi, I got the UUID and added this line into /etc/fstab
.
UUID=5C24-1453 /media/mydisk FSTYPE defaults,auto,users,rw,nofail 0 0
I changed the FSTYPE to ntfs and the UUID with the UUID I saw on the terminal. I want NTFS so I can read the USB stick from Windows.
The problem is when I try to access the folder (after mounted the USB stick) /media/mydisk
I get Permission denied error.
sudo apt install ntfs-3g
thensudo mount -t ntfs-3g /dev/sda1 /media/mydisk -o uid=pi,gid=pi