Mounting Windows Shares with Blanks in the Share Name
Urban Widmark
urban at teststation.com
Fri Jan 26 19:57:11 GMT 2001
On Fri, 26 Jan 2001, Steve McClary wrote:
> But if I try to do this with a windows share that has a blank space in
> the name
>
> //windowsserver/share name /mnt/sharewithblank smbfs guest 0 0
>
> it fails, telling me there's no mount point called "name".
It's a mount bug (or is it intentional?) where it doesn't allow escaping
space (or other characters for that matter) in fstab. smbmount understands
space just fine, although I'm not sure how mount passes parameters so
there could be a problem there too.
If someone feels like fixing it get the util-linux package, verify that
the mount in there still has the problem, talk to the maintainer(s), fix
the bug (not necessarily in that order :)
ftp://ftp.*.kernel.org/pub/linux/utils/util-linux/
(* = se, us, fi, ...)
> mount -t smbfs //windowsserver/"share name" /mnt/sharewithblank -o guest
>
> and it mounts fine.
>
> Any way to cleanly automate this, or do I need to put the mount command in
> a startup file? If so, where?
You should be able to put the mount command in /etc/rc.d/rc.local, also
someone posted a perl script that allows urlencoding entries in fstab,
thus avoiding spaces (look about a week back in the archives).
/Urban
More information about the samba
mailing list