Hi.

On Tue, 19 May 2020 18:40:43 +0200 François Patte wrote:

> I have computer A (a desktop) and a computer B (a laptop) and I want to
> automatically mount a partition of A on B when B starts.

> I know that this can be done via autofs,

Not quite: only when you attempt to access the automount mountpoint.

If you only need to mount one partition (directory) of A, autofs is
overkill (but so usefull for many things. See for example the -host
option): you can simply use systemd automounts as Greg just said.

I personnaly prefer to not use /etc/fstab for that and write instead a
dedicated .automount file in order to control more precisely the
dependencies. Ex: After=network-online.target

> but I read somewhere that there is another way to perform this
> action, I can't remember where!

You probably think of using udev, but this is not appropriate in this
case.

-- 
francis
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to