Automounting NTFS drive using the guide in this section

I’m trying to follow this guide in the section: [Tutorial] How to Permanently Mount External/Internal Drives in Linux on automounting, which says this:

UUID=<UUID of your external device> /mnt/<your mount point> <file system Ex: ext4> noatime,x-systemd.automount,x-systemd.device-timeout=10,x-systemd.idle-timeout=1min 0 2

needs to be added at the bottom of the fstab file. I have three questions:

  1. I don’t know what I should type in the

your mount point

part for the entry for the drive I’m trying to automount. How do I find out?

  1. The drive I’m trying to enable automount on is an NTFS one. Does that mean I need to replace ‘ext4’ in

file system Ex: ext4

with ‘ntfs’?

  1. I want to disable idle unmounting, so modified the relevant part:

x-systemd.device-timeout=10,x-systemd.idle-timeout=1min 0 2

To be like this:

x-systemd.device-timeout=0,x-systemd.idle-timeout=0

Is this the correct change to make?

Yes replace ntfs

A mount point could basically be any directory on the file system:

For example for a directory named Data:

/home/UserName/Data
/home/UserName/Downloads/Data
/mnt/Data
/Data

etc.

I would think: ntfs-3g

The timeout is disabled by default, so you could leave out this one.

2 Likes

I entered this resulting line:

UUID=<BD86414F8C25C266> /mnt/</home/svalbardsleeperdistrict> <file system Ex: ntfs-3g> noatime,x-systemd.automount,x-systemd.device-timeout=10

then saved the file, ran

sudo mount -a

to test, and got the

mount: /etc/fstab: parse error at line 12 -- ignored

message in terminal. Is something wrong in the syntax in my line?

A few minor corrections needed.

Is this your username/home directory: svalbardsleeperdistrict ?

Make a new directory under your home directory first.

For a directory called Data:

UUID=BD86414F8C25C266 /home/svalbardsleeperdistrict/Data ntfs-3g noatime,x-systemd.automount,x-systemd.device-timeout=10

2 Likes

Thank you. I did all that, restarted the system, and the automount worked just fine.

2 Likes

You are welcome!
Great you got it working!

:enos_flag:

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.