How To Delay Auto Mount Removable Media at Boot?

I have setup /etc/fstab of my openSUSE 11.4 to automount network storages at boot. However, maybe because my machine is connected to the network via WiFi, the automount fails at boot. I assume that because WiFi connections are not established at boot, automount does not work.

How can I delay automount options in /etc/fstab at boot?

I never mount network storages in /etc/fstab. Do it in after.local. Have a lookt at this post: http://forums.opensuse.org/english/other-forums/development/programming-scripting/469832-running-commands-depend-process-being-started-after-local.html#post2418865

The command I run here in my example:

runafter  /sbin/rpcbind "some command needing rpcbind"

is actually a script that mounts nfs shares from a fileserver.

IMHO this does not help the OP because after.local is still part of the boot sequence and he is using networkmanager and thus the wifi only starts at login. Far later then after,local.

That’s right. I didn’t pay attention that he was using the networkmanager. That’s not much you can do against the networkmanager … except waiting that it behaves more like Unix and inititates network connection earlier. However I don’t use the networkmanager under openSUSE (because it’s not the default) for wired connections, but I do under Ubuntu and Fedora (because it is the default) and I mount exactly the same NFS shares and never boot in something else but console. Fedora uses systemd too. I should investisgate more about the networkmanager some day. Maybe I should setup one openSUSE machine with networkmanager … or maybe I should buy a Mac Book, put openSUSE on it, sit in a corner without network cable if I can find any, and mount my fileserver before login. Yes, I guess I should do that.:slight_smile:

@tokyojoe,
Why not mounting nfs “after login” if it doesn’t work “after local” with a mount command in you user autostart? Or do you still have to wait for a network connection at this point?

I may be wrong, but I find it a strange combination. When you need NFS mounted file systems on the system, then I guess it is allways in the same environment ) with that I maen, it is not a take away and walk around system). And thus I do not see the need for Networkmanager.

OTOH, when it is a walk around system, I guess one does not use NFS mounted file systems, being in a hotel, airport, the street, etc. (places where need for end-user network managing and thus Networkmanager arises).