16
fstab mounting cifs shares with spaces in the name
One of those evil things I run into is that people like to make shares with a space in the name. Â It’s not quite a banishment to one of the circles of hell offense, but I’m pretty sure you get some time in purgatory for it. So in order to fix it in fstab change that space to a \040
//WinFileServer/Share\040With\040Space /share/WTFWindowsAdmin cifs guest,domain=DOMAIN 0 0
16 Comments
THANK YOU. It took me a good hour to hunt down why my share was not mounting in fstab (but was fine from the command line).
Thanks. This tip worked for me also
Perfect, thank you
Lifesaver!!!
Thanks my Friend!!!
Yo
Thank you so much. It worked smoothly!
awesome, thanks!! works great for those default AFP home folder share names with “Home Directory”
Hot Damn! That works a treat. Thanks! 🙂
Thank you very much! This post saves many hours. Subscribed.
Thanks, I have been trying to fix this for a while. I was using %20 but that is an html entity. It did not occur to me to use octal.
Now discussed in german in forum “ubuntuusers (http://forum.ubuntuusers.de/topic/fstab-netzwerkfreigabe-freigabename-mit-leerze/)
Thanx so lot!
Six years later and this is still the easiest place to find the answer.
It does not seem to work when the username=john smith
I have not been able to get it to wok for me. Any idea’s?
sorry don’t have the answer to that one
i can answer, use \040 it work by me, now: username=john\040smith
i hope it help
Agree with your assessment. Embedded spaces are the devil’s own invention to drive sys admins crazy! People who use them – in share, file names, user names, directories, and, yes even passwords – will spend some time in a very warm place. Thank you for posting the fix.