Results 1 to 4 of 4

Thread: Mounting Samba share with space, \040 not working?

  1. #1
    Join Date
    Oct 2007
    Beans
    8

    Mounting Samba share with space, \040 not working?

    I've been having trouble auto-mounting shared on my NAS from Ubuntu. As the folders have spaces in them, and I got a mount error(6) returned, I ran some tests to see if the issue was related to these spaces. It seems to be:

    I shared my music folder on my ubuntu PC as 'music' and mounted is from my laptop using
    Code:
    sudo mount -t cifs //192.168.2.102/music /media/test
    This worked flawlessly.

    I then renamed the share on the PC to 'my music' and tried to mount it again using
    Code:
    sudo mount -t cifs //192.168.2.102/my\040music /media/test
    Strangely enough I got the mount error(6): no such device, indicating that it now could not resolve the share name.

    I really don't understand what I'm doing wrong here, all the guidance I read indicates that substituting spaces with \040 should do the trick. Thoughts anyone?

  2. #2
    Join Date
    Oct 2007
    Beans
    8

    Re: Mounting Samba share with space, \040 not working?

    No one any ideas why I can't mount samba shares with spaces using \040 ?

  3. #3
    Join Date
    Sep 2010
    Location
    Indian Capital City
    Beans
    916
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Mounting Samba share with space, \040 not working?

    Doesn't \040 works only for 'fstab' entries ?
    When you have eliminated the impossible, whatever remains, however improbable, must be the truth !!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Mark it [SOLVED] if the issue has been resolved

  4. #4
    Join Date
    Dec 2009
    Beans
    6,410

    Re: Mounting Samba share with space, \040 not working?

    Spaces in names always confuse me. You're never sure if it's "\040", "\ ", "%20", or none of the above. As luvshines stated I always use "\040" in fstab.

    In this case I think it's none of the above. Try this:
    Code:
     sudo mount -t cifs //192.168.2.102/"my music" /media/test

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •