automatic mount of partitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





-------- Message transféré --------
Sujet : Re: automatic mount of partitions
Date : Wed, 20 May 2020 11:08:08 +0200
De : François Patte <francois.patte@xxxxxxxxxxxxxxxxxxxx>
Organisation : Université Paris Descartes
Pour : Greg Woods <greg@xxxxxxxxxxxxxx>

Le 19/05/2020 à 18:59, Greg Woods a écrit :
> 
> 
> On Tue, May 19, 2020 at 10:41 AM François Patte
> <francois.patte@xxxxxxxxxxxxxxxxxxxx
> <mailto:francois.patte@xxxxxxxxxxxxxxxxxxxx>> 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 use systemd automounts for this. In /etc/fstab on B, something like this:
> 
> A:/path/to/mount /path/on/B nfs
> noauto,rw,x-systemd.automount,x-systemd.idle-timeout=1min,x-systemd.mount-timeout=30
>     0 0
> 
> Generally, just accessing anything under /path/on/B will cause the mount
> to happen. It will then unmount after 1 minute of nothing accessing
> /path/on/B. An attempt to access /path/on/B if A is not available will
> hang for 30 seconds, then report a failure to the accessing application.

Thank you. I try this and up to now I failed to mount the remote
directory...

I added user in the options.

1- selinux came with some suggestions to add with semanage,
setsebool.... Without any effect (ie. when I try to mount the directory,
setroubleshoot always suggest the same operations to do if I want to
mount my directory and, if I retry to execute the suggested commands, it
replies that the stuff is already set... and, as usual with selinux, for
some commands you have a list of options to try without any explanations
about the meaning of these options! So you have to try the first, the
the second.... boring!)

2- I disabled selinux. And still it is impossible to mount the remote
directory: no messages in /var/log, I tried journalctl without any
success:journalctl -f returns nothing when I try to mount the directory,
and journalctl | grep automount returns " Got automount request for
/home/.../...", then: "Failed with result 'mount-start-limit-hit'".... A
very helpfull message indeed!

Who can light my candle?

Thank you.
> 
> This works well for me.

Lucky man!

-- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte
FSF
https://www.fsf.org/blogs/community/presenting-shoetool-happy-holidays-from-the-fsf



-- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte
FSF
https://www.fsf.org/blogs/community/presenting-shoetool-happy-holidays-from-the-fsf

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux