the 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.

http://www.dsm.fordham.edu/cgi-bin/man-cgi.pl?topic=systemd.mount&ampsect=5 - 'systemd 229' https://www.freedesktop.org/software/systemd/man/systemd.mount.html - 'systemd 231'

and when i do mount to view all mounts, i do see timeout mentioned:

  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

closed as off-topic by Kusalananda, dhag, Jeff Schaller, Anthon, don_crissti May 1 '17 at 18:33

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Kusalananda, dhag, Jeff Schaller, Anthon, don_crissti
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.