2

I want to automount an hard drive when my raspberry pi zero starts. The commands works but I can't write in the folder because I don't have permission even if I use sudo. I can only read. I already tried to change folder's permission with chmod but the problem persists. According to the man, I think it's the good command. This is the line I added to fstab file :

UUID=My-UUID /mnt/myFolder ntfs,auto,umask=000,users,rw 0 0

Edit :

If I add the line UUID=MY-UUID /mnt/MY-FOLDER ntfs rw,noauto,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0 on my fstab file and I exectute the command sudo mount -a or I reboot the raspberry, the hard drive is not mounted but I have not an error message. So I don't have the permission problem because the disk is not mounted...

Anonymous
  • 121
  • 4

1 Answers1

2

Your fstab entry is incorrect. It should be something like:-

UUID=       /mnt/SeagateBackupPlus     ntfs    rw,noauto,relatime,umask=22,uid=0,gid=0,nls=utf8 0   0
UUID=       /mnt/PiData     ext4    defaults,noatime,noauto  0     0

Under Stretch you may need to install ntfs-3g to enable writing to NTFS

I have added a typical ext4 drive entry. NOTE I invariably manually mount, rather than automount.

Milliways
  • 62,573
  • 32
  • 113
  • 225