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:
- 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?
- 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’?
- 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?
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.
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
Thank you. I did all that, restarted the system, and the automount worked just fine.
You are welcome!
Great you got it working!
