Net :: Cannot Mount Share with Samba



I'm trying to build a new samba extension in the continuing quest to use dsl to share printers with windows machines.

At the moment I'm having difficulty to mount a windows share:
Code Sample
$ smbtree -h
Password:
JUANITO
       \\MSS-FFB1EF                    mss-FFB1EF
               \\MSS-FFB1EF\ADMIN$             IPC Service ("mss-FFB1EF")
               \\MSS-FFB1EF\IPC$               IPC Service ("mss-FFB1EF")          
               \\MSS-FFB1EF\Public            
               \\MSS-FFB1EF\config            
       \\DSLKAYAK                      Samba 3.0.25b
               \\DSLKAYAK\OfficeJetG85         OfficeJetG85
               \\DSLKAYAK\IPC$                 IPC Service (Samba 3.0.25b)
               \\DSLKAYAK\print$               Printer Drivers
               \\DSLKAYAK\share
Where \\MSS-FFB1EF is a windows network hd.

If I try the following, it fails:
Code Sample
$ sudo mount.cifs \\MSS-FFB1EF\Public /home/dsl/mnt -o user=juanito
mount error: improperly formatted UNC name. \MSS-FFB1EFPublic does not begin with \\ or //
No ip address specified and hostname not found

But if I try this, it does work:
Code Sample
$ sudo mount.cifs //192.168.1.110/Public /home/dsl/mnt -o user=juanito
parsing options: user=john
Password:

mount.cifs kernel mount options unc=//192.168.1.110\Public,ip=192.168.1.110,pass=xxxx,ver=1,user=juanito
Note that the smbfs has apparently been replaced by cifs.

Does anybody have an idea what I might be doing wrong?

Bash sucked them, you gotta escape each one, so you actually need 4 slashes :)
$ sudo mount.cifs \\\\....

Cifs and smbfs are still different. Win2000 replaced smbfs with cifs, but older can only use smbfs..

Aaah - thanks for that, but:
Code Sample
$ sudo mount.cifs \\\\MSS-FFB1EF\Public /home/dsl/mnt -o user=juanito
Mounting the DFS root for a particular server not implemented yet
No ip address specified and hostname not found

Guess I'll have to stick with the ip address for a while...


original here.