You are not logged in.

#1 2008-10-30 16:38:53

scotti
Member
Registered: 2008-02-26
Posts: 41

Mount network share with CIFS using TCP name

If you're trying to mount a network share with cifs (as apposed to smbfs) specifying the computer name, you might get an error such as:

mount error: could not find target server. TCP name server/share not found
No ip address specified and hostname not found

Where "server" is the computer name. I've researched and it seems that cifs does not support using TCP names, yet.

Here's the solution. Edit '/etc/nsswitch.conf' and add "wins" as the first argument in the "hosts:" line like so:

hosts: wins files dns

Now you should be able to mount the share like normal. Example:

mount -t cifs -o username=user //server/share /home/user/network

Offline

Board footer

Powered by FluxBB