Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Cannot Mount Share with Samba, Building new extension< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 01 2007,14:23 QUOTE

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?
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Sep. 01 2007,14:40 QUOTE

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..


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 01 2007,14:56 QUOTE

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...
Back to top
Profile PM 
2 replies since Sep. 01 2007,14:23 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Cannot Mount Share with Samba

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code