Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Mount directories with a space in its name

  • 15-05-2007 10:56AM
    #1
    Registered Users, Registered Users 2 Posts: 1,165 ✭✭✭


    I'm trying to mount some Windows directories on my Ubuntu machine through adding them to /etc/fstab.

    Most are working, but I'm wondering how to do it for directories with a space in their name such as "Work Folder"

    I know I can do it through calling a script at startup and using "/server/work folder" but since I've most of them setup through /etc/fstab at this stage I was wondering if there is a way to do it.


Comments

  • Moderators, Music Moderators Posts: 23,363 Mod ✭✭✭✭feylya


    /Work\ Folder/ should work.


  • Closed Accounts Posts: 2,460 ✭✭✭workaccount


    You just need to type Work\ Folder


    EDIT: Id say there was split seconds between me and feylya there!


  • Registered Users, Registered Users 2 Posts: 1,165 ✭✭✭Stky10


    I get the following error when I try to mount it after doing that

    [mntent]: line 16 in /etc/fstab is bad
    mount: can't find /media/samba/Work folder in /etc/fstab or /etc/mtab


  • Moderators, Music Moderators Posts: 23,363 Mod ✭✭✭✭feylya


    Do you have Work Folder created in /media/samba? What's the complete line from fstab?


  • Registered Users, Registered Users 2 Posts: 1,165 ✭✭✭Stky10


    Yeah, I have the folder created. Its case sensitive as well

    The line from the fstab is

    //192.168.0.14/Work\ folder /media/samba/Work\ folder cifs username=tom,password=password,auto 0 0

    My password isn't password, I've just edited it for here. This structure works for other directories mounted off the same server that don't contain a space, so its not that. I'm using CIFS because its a Windows Server 2003 machine its mounting from and I've read before SMBFS doesn't support it.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 5,333 ✭✭✭Cake Fiend


    Are you bearing in mind that linux is case-sensitive? Double-check which words are capitalized...


Advertisement