[systemd-devel] Fwd: messing with .mount/.automount units

Andrei Borzenkov arvidjaar at gmail.com
Sat Jan 30 08:28:26 PST 2016


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.

Your USB stick is *not* mounted.




More information about the systemd-devel mailing list