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?
pebcak
May 21, 2022, 6:37pm
#3
SvalbardDistrict:
I don’t know what I should type in the
your mount point
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.
SvalbardDistrict:
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 would think: ntfs-3g
SvalbardDistrict:
x-systemd.idle-timeout=0
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?
pebcak
May 21, 2022, 6:50pm
#5
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
pebcak
May 21, 2022, 6:55pm
#7
You are welcome!
Great you got it working!
3 Likes
system
closed
May 23, 2022, 6:55pm
#8
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.