Parse error in fstab - mounting a Windows share

by Ian M   Last Updated November 10, 2017 18:02 PM

I am having a problem editing /etc/fstab to mount a share on a Windows machine. I can manually mount the share using the command below without any problems:

sudo mount.cifs //machinename/sharename /media/sharedfolder -o user="My Username",password=MyPassword

But when I add this line to /etc/fstab I get a parse error:

//machinename/sharename  /media/sharedfolder cifs username="My Username", password=MyPassword,iocharset=utf8,sec=ntlm 0 0

Can anyone tell me what's wrong with the line in the fstab file?



Related Questions


Mount CIF with permission for 2 users

Updated August 27, 2015 20:01 PM

Mount a CIFS share on Ubuntu 16.04 LTS as guest

Updated October 24, 2017 10:02 AM

Cannot mount windows share in ubuntu

Updated November 26, 2017 22:02 PM

Manual mounting of cifs works fine, but not in fstab

Updated November 24, 2015 15:01 PM

CIFS mount won't automatically mount at startup

Updated November 25, 2017 19:02 PM