fstab line in use:
LABEL=kingston /media auto defaults,noauto,x-systemd.automount,x-systemd.idle-timeout=1min 0 0
which should work, according to the arch linux wiki
but it doesn't unmount automatically. and my
man systemd.mount doesn't actually mention
x-systemd.idle-timeout= whereas other
systemd.mount manuals i've seen online do have that option. why ??? i've noticed my
man page says 'systemd 219' in the corner, whereas the two i posted below have higher numbers.
and when i do
mount to view all mounts, i do see
systemd-1 on /media type autofs (rw,relatime,fd=28,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
but it doesn't timeout after 300 seconds either !
i want to automount using
fstab because i find it much simpler and neater than the
.mount files and the like. note that this is a learning exercise, not something in production.
i am on centOS 7.2.1511
EDIT: seems to be solved on newer systemd versions