[systemd-devel] Fwd: messing with .mount/.automount units
arnaud gaboury
arnaud.gaboury at gmail.com
Sat Jan 30 08:40:40 PST 2016
On Sat, Jan 30, 2016, 5:28 PM Andrei Borzenkov <arvidjaar at 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.
>
> Your USB stick is *not* mounted.
>
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20160130/87e11c49/attachment.html>
More information about the systemd-devel
mailing list