[CIFS] Montage réseau CIFS au boot (Résolu)

Applications, problèmes de configuration réseau
Avatar de l’utilisateur
Arkot
Hankyu
Messages : 16
Inscription : jeu. 04 juin 2009, 18:22

[CIFS] Montage réseau CIFS au boot (Résolu)

Message par Arkot »

Bonjour à tous,

J'ai déclaré un point de montage réseau dans le /etc/fstab (voir ci-dessous). Si je fais un "mount -a" le point de montage est accessible, par contre au boot de la machine cela ne fonctionne pas (avec les messages ci-dessous).

Code : Tout sélectionner

//192.168.1.1/usb_34 /mnt/bbox cifs username="",password="",vers=1.0,uid=arkot,file_mode=0664,dir_mode=0775 0 0
Dans le journalctl j'ai ces messages :

Code : Tout sélectionner

oct. 24 11:09:36 chichon audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-logind comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? termina>
oct. 24 11:09:36 chichon systemd[1]: Started Login Service.
oct. 24 11:09:36 chichon kernel: FS-Cache: Netfs 'cifs' registered for caching
oct. 24 11:09:37 chichon kernel: Key type cifs.spnego registered
oct. 24 11:09:37 chichon kernel: Key type cifs.idmap registered
oct. 24 11:09:37 chichon mount[360]: mount error(2): No such file or directory
oct. 24 11:09:37 chichon mount[360]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
oct. 24 11:09:37 chichon kernel: CIFS: Attempting to mount //192.168.1.1/usb_34
oct. 24 11:09:37 chichon kernel: CIFS VFS: Error connecting to socket. Aborting operation.
oct. 24 11:09:37 chichon kernel: CIFS VFS: cifs_mount failed w/return code = -2
oct. 24 11:09:37 chichon systemd[1]: mnt-bbox.mount: Mount process exited, code=exited, status=32/n/a
oct. 24 11:09:37 chichon systemd[1]: mnt-bbox.mount: Failed with result 'exit-code'.
oct. 24 11:09:37 chichon systemd[1]: Failed to mount /mnt/bbox.
oct. 24 11:09:37 chichon systemd[1]: Dependency failed for Remote File Systems.
oct. 24 11:09:37 chichon systemd[1]: remote-fs.target: Job remote-fs.target/start failed with result 'dependency'.
J'ai cherché sur le net mais je n'ai pas trouvé de solution.
Je suis à votre disposition si besoin d'autres logs.

Avez-vous une idée ?

Merci.

Arkot.
Dernière modification par Arkot le jeu. 24 oct. 2019, 14:45, modifié 1 fois.
laurent85
Elfe
Messages : 954
Inscription : mar. 16 oct. 2018, 21:05

Re: [CIFS] Montage réseau CIFS au boot

Message par laurent85 »

Bonjour,
Ça doit doit échouer parce que le réseau n'est pas prêt. Ajoute l'option de montage _netdev

Sur internet j'ai aussi vu ces 3 options x-systemd.automount,x-systemd.device-timeout=3,_netdev . Essaie-aussi
Avatar de l’utilisateur
Arkot
Hankyu
Messages : 16
Inscription : jeu. 04 juin 2009, 18:22

Re: [CIFS] Montage réseau CIFS au boot

Message par Arkot »

Merci Laurent85, j'ai rajouté les 3 options et ça fonctionne.

Je passe en résolu.
Répondre