• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Space in Samba sharename

balanga

Daemon

Thanks: 68
Messages: 2,059

#1
I'm having a problem trying to mount a samba sharename which has an embedded space...

I can mount it from the command line by using quotes, ie

mount_smbfs -I 192.168.1.100 'user@//SAMBASERVER/share name/' /mnt

but I'm trying to mount the share at boot time by adding an entry to /etc/fstab and using quotes does not work.

Any suggestions?
 

usdmatt

Daemon

Thanks: 453
Messages: 1,276

#3

lebarondemerde

Daemon

Thanks: 590
Messages: 1,352

#5
I've not used samba since years but IIRC there were some changes making it more "difficult" (or more specialized) to mount without password.

The Arch Linux WIKI should have something about that.
 

aragats

Aspiring Daemon

Thanks: 347
Messages: 871

#6
IMO it's easier to setup your password in /etc/nsmb.conf instead of fighting with samba for passwordless access.
Here what I have (to access my BlackBerry phone, but that doesn't matter):
/etc/nsmb.conf:
Code:
....
[BB-SM]
addr=<IP address or host name>

[BB-SM:myusername]
password=<mypassword>
/etc/fstab:
Code:
....
//MYUSERNAME@BB-SM/REMOVABLE_SDCARD    /mnt/bb   smbfs   rw,noauto   0 0
AFAICR the capitalization is important, maybe I'm wrong, but don't want to touch something which perfectly works for years.
 
Top