Bonjour,
I added in /etc/fstab this line:
192.168.1.16:/data /home/myself/bertuccio nfs noauto,rw,user,nofail,soft,x-systemd.automount,x-systemd.mount-timeout=30 0 0
I expected that the folder /data from 192.168.1.16 would be mounted automatically but it is not the case... it is mounted only if I use some command on the folder /home/myself/bertuccio for instance: ls bertuccio or cd bertuccio...
Why it is not automaticlly mounted when I loggin?
Thank you.
F.P.
On 30 May 2025, at 14:05, François Patte francois.patte@fdn.fr wrote:
Why it is not automaticlly mounted when I loggin?
The options include noauto
Barry
Le 30/05/2025 à 17:20, Barry a écrit :
On 30 May 2025, at 14:05, François Pattefrancois.patte@fdn.fr wrote:
Why it is not automaticlly mounted when I loggin?
The options include noauto
Thank you for this remark! I changed to auto and and it doesn't go up either....
F.P.
On 30 May 2025, at 16:37, François Patte francois.patte@fdn.fr wrote:
Thank you for this remark! I changed to auto and and it doesn't go up either....
Did you reboot to test?
I have a less complex line in my /etc/fstab to mount a NFS share. Maybe one of the other options is the problem?
server.internal:/shared/Media /shared/Media nfs v3 0 0
Barry
On Fri, 2025-05-30 at 16:20 +0100, Barry wrote:
On 30 May 2025, at 14:05, François Patte francois.patte@fdn.fr wrote:
Why it is not automaticlly mounted when I loggin?
The options include noauto
I was about to say that, but 'noauto' (according to the fstab man page) means "don't include in 'mount -a, e.g. at boot". I suspect the OP wants to automount the directory when it's accessed, which is what the old automount system used to do.
poc
Le 30/05/2025 à 17:46, Patrick O'Callaghan a écrit :
On Fri, 2025-05-30 at 16:20 +0100, Barry wrote:
On 30 May 2025, at 14:05, François Pattefrancois.patte@fdn.fr wrote:
Why it is not automaticlly mounted when I loggin?
The options include noauto
I was about to say that, but 'noauto' (according to the fstab man page) means "don't include in 'mount -a, e.g. at boot". I suspect the OP wants to automount the directory when it's accessed, which is what the old automount system used to do.
I would like that the directory should be automounted when I log-in as it was the case with f40...
F.P.
On Fri, 30 May 2025 17:52:06 +0200 François Patte francois.patte@fdn.fr wrote:
Le 30/05/2025 à 17:46, Patrick O'Callaghan a écrit : On Fri, 2025-05-30 at 16:20 +0100, Barry wrote:
On 30 May 2025, at 14:05, François Patte francois.patte@fdn.fr wrote:
Why it is not automaticlly mounted when I loggin?
The options include noauto
I was about to say that, but 'noauto' (according to the fstab man page) means "don't include in 'mount -a, e.g. at boot". I suspect the OP wants to automount the directory when it's accessed, which is what the old automount system used to do.
I would like that the directory should be automounted when I log-in as it was the case with f40...
F.P.
Use autofs and ignore systemd-junk. Can you argue in what systemd outperforms autofs? Reinventig the wheel?
On Fri, 30 May 2025 17:52:06 +0200 François Patte wrote:
I would like that the directory should be automounted when I log-in
The goal of automount, with autofs as well as with systemd.automount, is to do the mount only when you access the mountpoint.
Why do you want that to be done when you log-in ?
as it was the case with f40...
I suspect that some autostart / some script attempted to browse your homedir at log-in time, accessing thus /home/myself/bertuccio and making thus the automount, and that thing does not happen any more in F42.
Barry:
The options include noauto
François Patte:
Thank you for this remark! I changed to auto and and it doesn't go up either....
I wonder if your network is up and ready for use by this stage.
Le 31/05/2025 à 04:35, Tim via users a écrit :
Barry:
The options include noauto
François Patte:
Thank you for this remark! I changed to auto and and it doesn't go up either....
I wonder if your network is up and ready for use by this stage.
Do you mean network 192.168.... ? Yes it is.
F.P.
Le 30/05/2025 à 21:46, Francis.Montagnac@inria.fr a écrit :
On Fri, 30 May 2025 17:52:06 +0200 François Patte wrote:
I would like that the directory should be automounted when I log-in
The goal of automount, with autofs as well as with systemd.automount, is to do the mount only when you access the mountpoint.
Why do you want that to be done when you log-in ?
as it was the case with f40...
I suspect that some autostart / some script attempted to browse your homedir at log-in time, accessing thus /home/myself/bertuccio and making thus the automount, and that thing does not happen any more in F42.
As my /home is on a separate disk and mounted once the new install is properly working, my homedir is exactly the same as in the prvious install, so I don't know what could be the autostart script which has disappear.
F.P.
On Sat, 31 May 2025 09:34:12 +0200 François Patte wrote:
Le 30/05/2025 à 21:46, Francis.Montagnac@inria.fr a écrit :
On Fri, 30 May 2025 17:52:06 +0200 François Patte wrote:
I would like that the directory should be automounted when I log-in
The goal of automount, with autofs as well as with systemd.automount, is to do the mount only when you access the mountpoint.
Why do you want that to be done when you log-in ?
No answer to this question :-(
as it was the case with f40...
I suspect that some autostart / some script attempted to browse your homedir at log-in time, accessing thus /home/myself/bertuccio and making thus the automount, and that thing does not happen any more in F42.
As my /home is on a separate disk and mounted once the new install is properly working, my homedir is exactly the same as in the prvious install, so I don't know what could be the autostart script which has disappear.
This could also be due to a global change in:
/etc/xdg/autostart/ /etc/systemd/user/
Le 31/05/2025 à 09:52, Francis.Montagnac@inria.fr a écrit :
On Sat, 31 May 2025 09:34:12 +0200 François Patte wrote:
Le 30/05/2025 à 21:46,Francis.Montagnac@inria.fr a écrit :
On Fri, 30 May 2025 17:52:06 +0200 François Patte wrote:
I would like that the directory should be automounted when I log-in
The goal of automount, with autofs as well as with systemd.automount, is to do the mount only when you access the mountpoint. Why do you want that to be done when you log-in ?
No answer to this question :-(
Just to be sure that everything is working as in the previous install... so as not to be caught off guard in an emergency
as it was the case with f40...
I suspect that some autostart / some script attempted to browse your homedir at log-in time, accessing thus /home/myself/bertuccio and making thus the automount, and that thing does not happen any more in F42.
As my /home is on a separate disk and mounted once the new install is properly working, my homedir is exactly the same as in the prvious install, so I don't know what could be the autostart script which has disappear.
This could also be due to a global change in:
/etc/xdg/autostart/
org.xfce.xfdashboard-autostart.desktop only with f40
/etc/systemd/user/
graphical-session-pre.target.wants only with f42
F.P.
On Sat, 31 May 2025 10:12:17 +0200 François Patte wrote:
Le 31/05/2025 à 09:52, Francis.Montagnac@inria.fr a écrit:
Why do you want that to be done when you log-in ?
No answer to this question :-(
Just to be sure that everything is working as in the previous install... so as not to be caught off guard in an emergency
Ok, but since the automount works when you access /home/myself/bertuccio this is IMO not a problem.
That said, doing such a remote mount under a homedir is not recommended:
- user processes may block if the NFS server do not respond - browsing the homedir will browse the mountpoint by default
For example, gvfs (the Gnome Virtual Filesystem) used to do its mount on ~/.gvfs (as I recall). It does now it on /run/user/$UID/gvfs
In your case, using as mountpoint /auto/data will be fine.
You can put a bertuccio symlink to it in your homedir if you prefer.