Mounting samba share with space character from /etc/fstab
Submitted by linportal on Thu, 2010-01-21 14:16
If you have a windows share with a space character in it's name, e.g. something like \\server\my share, to properly mount it from /etc/fstab you need to use the octal code instead of a space character. Otherwise parsing /etc/fstab would produce an error, because space character is a delimiter.
The octal code for space character is \040 (don't forget the leading zero!), so you'd put //server/my\040share in the /etc/fstab for the example above.
If you have any other special character in a windows share name, you can use the same technique. Just use the appropriate octal code, of course.
»
- linportal's blog
- Add new comment
- 3956 reads








Recent comments
16 hours 14 min ago
4 weeks 4 days ago
4 weeks 4 days ago
6 weeks 1 day ago
10 weeks 2 days ago
12 weeks 1 day ago
12 weeks 1 day ago
12 weeks 1 day ago
12 weeks 5 days ago
16 weeks 1 day ago