Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-18-2012, 11:28 AM
|
#1
|
|
Member
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158
Rep:
|
CIFS share on old WinNT host - smbclient works, mount -t cifs doesn't
I'm trying to access a network share on a Windows NT 3.51 host from a Linux client (Gentoo x86, kernel 3.2.1).
smbclient works:
Code:
electrode@linux:~$ smbclient -N //winnt/share
Domain=[SMS] OS=[Windows NT 3.51] Server=[NT LAN Manager 3.51]
smb: \> ls
(file listing)
smb: \> quit
mount does not:
Code:
electrode@linux:~$ sudo mount -t cifs -o guest,ro //winnt/share /mnt/net
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
So, where to begin debugging this?
Edit: smbnetfs works!
Last edited by Electrode; 04-19-2012 at 09:38 AM.
Reason: Solution found
|
|
|
|
04-18-2012, 12:32 PM
|
#2
|
|
Member
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 731
Rep: 
|
Naturally
You should look up when CIFS (as such) was introduced. It is not the original SMB standard and has gone through several modifications since OS/2 was new. The latest versions were not available for WinNT. IN fact the latest standard was released with VISTA, and WIN8 has an even newer update! (Just because MS likes to improve things, or just because they like to mess with us, take your pick: same outcome.)
The break that make CIFS drivers preferable over older SMB names came in 2007. Since WinNT was ANCIENT by then it did not get the memo (or any updates)!
The older standard is just fine, a little network chatty but solid, still available for *nix, still used by many *smb* tools, and I recommend it for connection to a server that dated.
I will not even ask WHY you are using an OS that old. I myself have NT4 in the back in an original box - just in case I ever need it, because a new license for MS Server 2008 is priced beyond my comfort level. (OS/2 Warp 3.2 and 4 also, though I cannot imagine what I would ever do with them.)
|
|
|
|
04-18-2012, 02:23 PM
|
#3
|
|
Member
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158
Original Poster
Rep:
|
Quote:
Originally Posted by wpeckham
The older standard is just fine, a little network chatty but solid, still available for *nix, still used by many *smb* tools, and I recommend it for connection to a server that dated.
|
So, how do I go about mounting using the old standard? The "smbfs" stuff doesn't appear to be in the kernel anymore...
|
|
|
|
04-19-2012, 06:55 AM
|
#4
|
|
Member
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 731
Rep: 
|
mount old stuff
I should have addresses that question in my earlier post. Did not think it far enough out. Here we go....
1. verify that the mount is really shared out and that you can mount it over the network (even if only from the same old WinNT box). If this is not working, nothing else will.
2. you did not say what kernel version you are on, but in some versions the smbfs was retained even after the cifs was added. There was a warning that its use was depreciated, but the links still worked. You can try.
3. Make sure that the FQDN and hostname (as alias) resolve to its correct IP address in your hosts file or DNS server (preferabley both). Name resolution is a bit different and critical for communications between WinNT and any standard TCPIP nodes. (They do this netbios based thing from the dark ages. Must be something in the Microsoft religion.)
The mount command for smbfs looks like
# mount -t smbfs -o username=guestname,password=ABCD1234 //ntservername/share /mnt/ntserver
where you replace my generic stuff with the real suspects:
guestname with your account name for the share, ABCD1234 with that accounts real password,
ntservername with the hostname if the winNT machine, share with the shared folder name,
/mnt/ntserver with the name of the real folder to mount over.
Actually, the cifs driver should be able to fall back to the older behavior. That mount command you know, but for the record it looks like
# mount -t cifs //ntservername/share -o username=guestname,password=ABCD1234 /mnt/ntserver
If you can mount it manually, then you can update fstab to mount it on boot.
If the share is not taking, or it is but you still cannot do a manual mount, DO NOT mess with fstab!!
We need to get it working for the manual mount before it can be automated.
|
|
|
|
04-19-2012, 09:11 AM
|
#5
|
|
Member
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158
Original Poster
Rep:
|
Quote:
Originally Posted by wpeckham
1. verify that the mount is really shared out and that you can mount it over the network (even if only from the same old WinNT box). If this is not working, nothing else will.
|
In the OP, I said I was able to access the share using smbclient. It is also successfully mounted on a few Win2K and WinXP boxes.
Quote:
|
2. you did not say what kernel version you are on, but in some versions the smbfs was retained even after the cifs was added. There was a warning that its use was depreciated, but the links still worked. You can try.
|
Again, in the OP I specified I was using kernel 3.2.1. smbfs does not appear to be present in this kernel.
Quote:
|
3. Make sure that the FQDN and hostname (as alias) resolve to its correct IP address in your hosts file or DNS server (preferabley both). Name resolution is a bit different and critical for communications between WinNT and any standard TCPIP nodes. (They do this netbios based thing from the dark ages. Must be something in the Microsoft religion.)
|
Confirmed.
Quote:
Actually, the cifs driver should be able to fall back to the older behavior. That mount command you know, but for the record it looks like
# mount -t cifs //ntservername/share -o username=guestname,password=ABCD1234 /mnt/ntserver
|
As I mentioned in the OP, this doesn't work.
Edit: I've come across a FUSE-based thing called smbnetfs, which seems to work by hooking onto Samba's smb* tools. Might do the trick, will report back once I've tried it.
Last edited by Electrode; 04-19-2012 at 09:18 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:29 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|