30.01.2016 19:40, arnaud gaboury пишет: > On Sat, Jan 30, 2016, 5:28 PM Andrei Borzenkov <arvidj...@gmail.com> wrote: > >> 30.01.2016 13:44, arnaud gaboury пишет: >>>>> My first attempt was to add this line in my /etc/fstab: >>>>> ------------------------------------------------------- >>>>> UUID=868560c1-ab69-423f-b76d-b8ea5af1b066 /mnt/backup >>>>> ext2 >> noauto,x-systemd.automount,x-systemd.device-timeout=5,x-systemd.idle-timeout=60 >>>>> 0 2 >>>>> ----------------------------------------------------------- >>>>> >>>>> $ ls /run/systemd/generator >>>>> ..... >>>>> mnt-backup.automount >>>>> mnt-backup.mount >>>>> ---------------------------------------- >>>>> >>>>> For unknown reasons, the partition did mount at boot and never umount. >>>> >>>> Do you mean - you boot with USB stick inserted (before system power on) >>>> and after boot USB stick is mounted (not automounted)? >>> >>> Yes, I boot with the external USB drive plugged. The drive is LVM >>> partitioned, and yes, the /mnt/backup is mounted with the above fstab >>> Could you show >>>> /proc/mounts output? >>> .................... >>> systemd-1 /mnt/backup autofs >>> rw,relatime,fd=26,pgrp=1,timeout=60,minproto=5,maxproto=5,direct 0 0 >>> ............................................. >>>> >> >> So you configured directory for automount and systemd did automount. I >> do not understand what you complain about here. >> > > I was just looking for a solution using only fstab, no additional > .mount/.automount files in /etc/systemd/system, as it is was is > recommended. Nothing else.
Solution for *what*? Your system behaves absolutely normal. If you prefer to mount this device manually, remove x-systemd.automount then. I assumed you knew what this option does when you added it. > >> >> Your USB stick is *not* mounted. >> >> _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel