I'm trying to share WD 2TB USB drive connected to a new Raspberry PI.

Running on Raspbian Jessie version 4.1, USB drive mounts automatically. This isn't a problem, but it's not accessible from my Windows 7 computer.

ntfs-3 is already installed and up to date.

I'm not able to change permissions for files on my USB drive:

pi@raspberrypi:/media/pi/WD_2TB/temp $ sudo chmod -v 777 tst2
mode of ‘tst2’ changed from 0600 (rw-------) to 0777 (rwxrwxrwx)
pi@raspberrypi:/media/pi/WD_2TB/temp $ ls -l
total 0
-rw------- 1 pi pi 0 Mar  2 01:34 tst2
pi@raspberrypi:/media/pi/WD_2TB/temp $ 

Just in case, here is part from my smb.conf:

comment = Backup Folder
path = /media/pi/WD_2TB
writeable = Yes
readonly = No
public = Yes
create mask = 0777
directory mask = 0777
browseable = Yes
public = yes
guest = OK
  • What file system is being used? I doubt a Windows formatted disk would recognise Linux permissions. – joan Mar 2 '16 at 22:26
  • this is NTFS disk. Apparently ntfs-3g should be able to handle it. – Tomek Mar 3 '16 at 2:03

NTFS is file system designed by Microsoft that is primarily used by Windows systems. chmod changes the linux permissions on a file. The two are not compatible.

Your cmb.conf file looks correct. My assumption is that you aren't specifying a user/group in the mounting step.

  • Thank you Jacobm001 for quick answer. There is no "mounting/step" on my part. It's automatic. – user42400 Mar 2 '16 at 23:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.