1

There are questions similar to this one, but I am not an expert Unix user so I really don't wanna try and break /etc/fstab while doing this. Here's what blkid tells me about my hard drive:

/dev/sda1: LABEL="X" UUID="9C4A70404A7018EA" TYPE="ntfs" PARTUUID="7d4613d7-01"

I always mount my drive at /media/pi/X, it is formatted in NTFS and I need both read and write permissions on it. The drive's UUID is 9C4A70404A7018EA and my useridis 1000. I know this post is very redundant, but I really cannot mess this up.

I've read this post from askubunto.com, so I know that a common setup is of this kind:

UUID=<uuid> <pathtomount> <filesystem> defaults 0 0

However, I do not understand some parts and would rather play it safe. Thanks in advance.

zeval
  • 35
  • 4

2 Answers2

2

This is the line in my /etc/fstab for a Toshiba Canvio 1 TB usb drive. Your UUID and mount points will be different.

UUID=A0027BBF027B994C /media/pi/Toshiba ntfs-3g defaults,auto,umask=000,users,rw,nofail 0 0

Michael Harvey
  • 1,410
  • 8
  • 11
2

I know you are trying to replace an automount.

fstab is confusing, the documentation for mount is somewhat clearer.

If you are happy with the way automount works I suggest you let your system automount, then issue the mount command and copy the settings.

The following is a line from my fstab. I use noauto and manually mount, but if you want to mount on boot you should use nofail

UUID=4AF49046F4903663       /mnt/SeagateNTFS     ntfs   rw,noauto,relatime,umask=22,uid=0,gid=0,nls=utf8    0   0

I would recommend against mounting in /media which is (ab)used by automount.

PS I rarely use NTFS, and you should probably use ntfs-3g if planning to write.

Milliways
  • 62,573
  • 32
  • 113
  • 225