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