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

10 Comments

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


 
Linux_user
Jul 17, 2013 at 2:12 pm

Thanks. This tip worked for me also


 
coldclimate
Aug 4, 2013 at 5:32 am

Perfect, thank you


 
Rudi
Sep 11, 2013 at 6:59 pm

Lifesaver!!!


 
Igor Rocha
Oct 30, 2013 at 7:13 am

Thanks my Friend!!!

Yo


 
Javier
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”


 
Sary
May 10, 2014 at 2:40 pm

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


 
Marty
Jun 16, 2014 at 12:25 pm

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


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


 

Reply

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