fstab mounting cifs shares with spaces in the name

Posted by scottk on Oct 19, 2011 in Ramblings |

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


Nov 13, 2012 at 9:13 am

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).

Jul 17, 2013 at 2:12 pm

Thanks. This tip worked for me also

Aug 4, 2013 at 5:32 am

Perfect, thank you

Sep 11, 2013 at 6:59 pm


Igor Rocha
Oct 30, 2013 at 7:13 am

Thanks my Friend!!!


Nov 2, 2013 at 3:44 am

Thank you so much. It worked smoothly!

paulo cunha
Apr 10, 2014 at 3:37 pm

awesome, thanks!! works great for those default AFP home folder share names with “Home Directory”

May 10, 2014 at 2:40 pm

Hot Damn! That works a treat. Thanks! :)

Jun 16, 2014 at 12:25 pm

Thank you very much! This post saves many hours. Subscribed.

Jul 2, 2014 at 5:35 pm

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.



Copyright © 2015 SimpIT.com All rights reserved. Theme by Laptop Geek.