web-dev-qa-db-fra.com

Qu'est-ce qui cause l'erreur "mount: / etc / fstab: erreur d'analyse à la ligne 16 - ignorée"?

J'essaie de monter 5 partages Samba sur ma machine et je reçois toujours les mêmes 5 erreurs:

mount: /etc/fstab: parse error at line 16 -- ignored
mount: /etc/fstab: parse error at line 17 -- ignored
mount: /etc/fstab: parse error at line 18 -- ignored
mount: /etc/fstab: parse error at line 19 -- ignored
mount: /etc/fstab: parse error at line 20 -- ignored

Voici les lignes en question de mon fichier/etc/fstab:

//10.0.0.23/Documents "/home/alex/Network Shares/Documents" cifs credentials=/home/alex/.smbcredentials,uid=user,gid=group 0 0
"//10.0.0.23/Family Pictures" "/home/alex/Network Shares/Family Pictures" cifs credentials=/home/alex/.smbcredentials,uid=user,gid=group 0 0
//10.0.0.23/Scripts "/home/alex/Network Shares/Scripts" cifs credentials=/home/alex/.smbcredentials,uid=user,gid=group 0 0
//10.0.0.23/Shared "/home/alex/Network Shares/Shared" cifs credentials=/home/alex/.smbcredentials,uid=user,gid=group 0 0
//10.0.0.23/Torrents "/home/alex/Network Shares/Torrents" cifs credentials=/home/alex/.smbcredentials,uid=user,gid=group 0 0

Toute aide serait appréciée.

1
akrantz

Vos espaces doivent être remplacés par \040 dans la fstab pour ressembler à ceci:

//10.0.0.23/Documents home/alex/Network\040Shares/Documents cifs credentials=/home/alex/.smbcredentials,uid=user,gid=group 0 0
//10.0.0.23/Family\040Pictures /home/alex/Network\040Shares/Family\040Pictures cifs credentials=/home/alex/.smbcredentials,uid=user,gid=group 0 0
//10.0.0.23/Scripts /home/alex/Network\040Shares/Scripts cifs credentials=/home/alex/.smbcredentials,uid=user,gid=group 0 0
//10.0.0.23/Shared /home/alex/Network\040Shares/Shared cifs credentials=/home/alex/.smbcredentials,uid=user,gid=group 0 0
//10.0.0.23/Torrents /home/alex/Network\040Shares/Torrents cifs credentials=/home/alex/.smbcredentials,uid=user,gid=group 0 0

Voir:

https://www.linuxquestions.org/questions/linux-newbie-8/fstab-space-in-mount-point-directory-names-846362/

4
George Udosen