Page 1 of 1

Fstab parse error with cifs

Posted: Sat Feb 29, 2020 2:01 pm
by alexandru
Hello guys,

I'm new here, so my problem description below.
I am trying to auto mount a network location at startup. The network location in a home made prepared with samba and RPI3B+.
If I am trying to manually mount everythig work well with the following command.
sudo mount.cifs "//192.168.0.***/RaspberryPi NAS" /mnt/share/RpiShare/ -o user=******,pass=*****
*- is used for confidentiality.
Therefore if i edit the etc/fstab with the following command.
"//192.168.0.***/RaspberryPi NAS" /mnt/share/RpiShare cifs username=*******,password=**** 0 0
I got the following syntax error.
mount: /etc/fstab: parse error at line 16 -- ignored
Can you help me with some suggestions.
Thank you very much !

Alexandru

Re: Fstab parse error with cifs

Posted: Tue Mar 03, 2020 8:00 am
by drooly
Apart from the * it looks ok to me, but I'm not sure the double quotes are required.
What exactly is at line 16?
Please use code tags to show us that code.