1

I am trying to mount 5 samba shares on my machine and I keep getting the same 5 errors:

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

Here are the lines in question from my /etc/fstab file:

//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

Any help would be appreciated.

4

Your spaces should be replaced with \040 in the fstab so it aught to look like:

//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

See:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.