tech:systemd_autofs
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:systemd_autofs [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:systemd_autofs [2025/10/28 15:44] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | {{tag> | + | < |
| + | {{tag> | ||
| = SystemD Autofs Automount | = SystemD Autofs Automount | ||
| Ligne 11: | Ligne 12: | ||
| Voir aussi | Voir aussi | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| - | <code ini / | + | '' |
| + | ~~~ini | ||
| [Unit] | [Unit] | ||
| Description=Partage | Description=Partage | ||
| Ligne 25: | Ligne 28: | ||
| [Install] | [Install] | ||
| WantedBy=multi-user.target | WantedBy=multi-user.target | ||
| - | </ | + | ~~~ |
| - | <code ini / | + | '' |
| + | ~~~ini | ||
| [Unit] | [Unit] | ||
| Description=Automount Partage | Description=Automount Partage | ||
| Ligne 39: | Ligne 43: | ||
| [Install] | [Install] | ||
| WantedBy=multi-user.target | WantedBy=multi-user.target | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| systemctl daemon-reload | systemctl daemon-reload | ||
| systemctl disable mnt-partage.mount | systemctl disable mnt-partage.mount | ||
| systemctl enable mnt-partage.automount | systemctl enable mnt-partage.automount | ||
| - | </ | + | ~~~ |
| Remarque : le nom du fichier à son importance. Pour un montage /mnt/plop le fichier doit s' | Remarque : le nom du fichier à son importance. Pour un montage /mnt/plop le fichier doit s' | ||
| Vérif | Vérif | ||
| - | < | + | ~~~bash |
| systemctl status / | systemctl status / | ||
| journalctl -u / | journalctl -u / | ||
| - | </ | + | ~~~ |
| La partition est vu comme montée en **autofs** par la commande mount | La partition est vu comme montée en **autofs** par la commande mount | ||
| - | <code -> | + | ~~~ |
| # mount |grep / | # mount |grep / | ||
| systemd-1 on / | systemd-1 on / | ||
| - | </ | + | ~~~ |
| En cas de pb pour forcer le démontage. A utiliser si la commande '' | En cas de pb pour forcer le démontage. A utiliser si la commande '' | ||
| - | < | + | ~~~bash |
| sudo umount -a -t cifs -l | sudo umount -a -t cifs -l | ||
| sudo umount -a -t autofs -l | sudo umount -a -t autofs -l | ||
| - | </ | + | ~~~ |
| - | == Diag | + | ## Diag |
| Pour retrouver le nom du service KO : | Pour retrouver le nom du service KO : | ||
| - | < | + | ~~~bash |
| systemctl list-units --state failed --type mount --type automount --no-pager | systemctl list-units --state failed --type mount --type automount --no-pager | ||
| - | </ | + | ~~~ |
| Puis copier-coller le nom entre des quotes | Puis copier-coller le nom entre des quotes | ||
| - | < | + | ~~~bash |
| systemctl status ' | systemctl status ' | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| dmesg | dmesg | ||
| - | </ | + | ~~~ |
| - | == Autres | + | ## Autres |
| Si caractères spéciaux | Si caractères spéciaux | ||
| - | < | + | ~~~bash |
| $ systemd-escape --suffix mount -p / | $ systemd-escape --suffix mount -p / | ||
| mnt-foo\x2dbar.mount | mnt-foo\x2dbar.mount | ||
| Ligne 96: | Ligne 100: | ||
| $ systemd-escape -u ' | $ systemd-escape -u ' | ||
| mnt/ | mnt/ | ||
| - | </ | + | ~~~ |
| NOTE : ' | NOTE : ' | ||
| Ligne 103: | Ligne 107: | ||
| https:// | https:// | ||
| - | <code ini / | + | '' |
| + | ~~~ini | ||
| # SPDX-License-Identifier: | # SPDX-License-Identifier: | ||
| # | # | ||
| Ligne 129: | Ligne 134: | ||
| Type=fusectl | Type=fusectl | ||
| Options=nosuid, | Options=nosuid, | ||
| - | </ | + | ~~~ |
| - | === Si SNMP | + | ### Si SNMP |
| Message d' | Message d' | ||
| - | <code -> | + | ~~~ |
| CIFS VFS: cifs_mount failed w/return code | CIFS VFS: cifs_mount failed w/return code | ||
| - | </ | + | ~~~ |
| Solution | Solution | ||
| - | <code - / | + | '' |
| + | ~~~ | ||
| skipNFSInHostResources 1 | skipNFSInHostResources 1 | ||
| - | </ | + | ~~~ |
| Autres solution | Autres solution | ||
tech/systemd_autofs.1742825205.txt.gz · Dernière modification : de 127.0.0.1
