Group: linux.gentoo.user
From: "Rik Koenig"
Date: Monday, March 17, 2008 3:10 PM
Subject: Re: [gentoo-user] mount -t cifs doesn't accept //hostname/share?

------=_Part_14413_32734371.1205784062160
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Mon, Mar 17, 2008 at 11:44 AM, Grant Edwards wrote:

> According to the docs at
> http://gentoo-wiki.com/HOWTO_Setup_Samba#Using_CIFS,
> the following command should work:
>
> mount -t cifs /// / \
> -o
> "username=,uid=,iocharset=cp850,dir_mode=0770,file_mode=660"
>
> That doesn't work for me. I get this error:
>
> mount -t cifs //sidewinder/temp_xfer /mnt/tmp -o [...]
> mount error: improperly formatted UNC name. /sidewinder/temp_xfer does not
> begin with \\ or //
> mount error 22 = Invalid argument
>
> mount.cifs works fine. The only way I can get mount to work is
> to use backslashes for the UNC path. When support for
> forward-slahses in UNC paths get broken?
>
> --
> Grant
>
>
> --
> gentoo-user@lists.gentoo.org mailing list
>

This error is actually described in the gentoo-wiki page just under that
command example: '*Warning:* Recent versions of "mount" don't support
forward slashes in UNC path names as shown above -- you must use
backslashes.'

However, forward slashes are working for me with samba 3.0.28 and util-linux
2.13-r2.

~RK

------=_Part_14413_32734371.1205784062160
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline



On Mon, Mar 17, 2008 at 11:44 AM, Grant Edwards <grante@visi.com> wrote:

According to the docs at http://gentoo-wiki.com/HOWTO_Setup_Samba#Using_CIFS,

the following command should work:



 mount -t cifs //<windows machine name>/<shared folder> /<mountpoint> \

  -o "username=<user>,uid=<uid>,iocharset=cp850,dir_mode=0770,file_mode=660"



That doesn't work for me.  I get this error:



mount -t cifs //sidewinder/temp_xfer /mnt/tmp -o [...]

mount error: improperly formatted UNC name. /sidewinder/temp_xfer does not begin with \\ or //

mount error 22 = Invalid argument



mount.cifs works fine.  The only way I can get mount to work is

to use backslashes for the UNC path.  When support for

forward-slahses in UNC paths get broken?



--

Grant





--

gentoo-user@lists.gentoo.org mailing list


This error is actually described in the gentoo-wiki page just under that command example: 'Warning: Recent versions of "mount" don't support forward slashes in UNC path names as shown above -- you must use backslashes.'


However, forward slashes are working for me with samba 3.0.28 and util-linux 2.13-r2.

~RK


------=_Part_14413_32734371.1205784062160--
--
gentoo-user@lists.gentoo.org mailing list