Fred's blog

Linux fstab: mount a path containing spaces

by on Oct.13, 2011, under Uncategorized

Just ran across that, so here it is.

Let’s say you want to CIFS mount a windows share — say “//server01/it stuff$”, but your Windows admin put spaces in the path.
Replace the spaces with \040.

So, in your /etc/fstab, the line would give:

//server01/it\040stuff$ /home/fblaise/mnt/MyITDrive  cifs  username=fblaise,password=yoursinhere,uid=1000,gid=100,_netdev 0 0

It will then work, and your linux apps which cannot see beyond your local filesystems will have a new life ;)

Share

19 Comments for this entry

1 Trackback or Pingback for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...