Jump to content

Access standalone network drive from Linux (Fedora 7)?


Recommended Posts

I have a standalone drive that I'm trying to access from Linux (Fedora 7).

 

In Windows, I access this drive by entering "\\netdrive\public" in the Explorer address bar.

 

I'm new to Linux, but I think I would need to mount this drive using smbmount or mount -smb or something similar; recent googling seems to indicate that smbmnt is no longer in Fedora, so I need to use mount -t cifs instead.

 

I've tried various parameters with mount -cifs. I think I want to do something like:

 

mount -cifs //netdrive/public /mnt/netdrive/public -o username=myname

 

but I get:

mount error 111 = Connection refused.

Can someone provide some help in configuring this? I'm not sure if the problem is with my use of mount -cifs, or if I'm even seeing the drive on the network.

 

Thanks in advance!

Link to post
Share on other sites

sounds like a firewall is enabled on the other box

 

have you checked the tips and tricks section here ? there's very specific howtos for samba etc

 

cheers

anyweb

Link to post
Share on other sites

Yeah the most obvious thing would be a firewall or that the username/password wasn't valid.

Link to post
Share on other sites

Thanks for the suggestions.

 

There is no firewall on the other box -- it is just a standalone network drive.

 

I'm not sure what to specify for the username and password -- when I connect to this drive from Windows, I don't have to login or specify a password -- just enter the address in Explorer and it connects.

 

I temporarily disabled the SPI firewall on the router and the Linux firewall, but I still get this error.

 

I also confirmed that I can ping the IP address of the drive.

 

But I'm still getting mount error 111 = Connection refused

 

I've looked through the tips and tricks, but I don't see anything that appears to address this. Any suggestions?

Link to post
Share on other sites

are you sure you have samba and all it's tools installed ?

 

i had a similar issue recently with Fedora 8 and (slaps self) it turned out that the reason i couldn't browse my windows network was because i was missing some samba tools

 

yum search samba

 

should give you a good idea

 

cheers

anyweb

Link to post
Share on other sites

Explain how the network drive is shared, that might assist us with how it will works. Secondly try using the IP rather than the computer name (//IP/public).

Link to post
Share on other sites
are you sure you have samba and all it's tools installed ?

 

i had a similar issue recently with Fedora 8 and (slaps self) it turned out that the reason i couldn't browse my windows network was because i was missing some samba tools

 

yum search samba

 

should give you a good idea

 

cheers

anyweb

 

Thanks, anyweb!

 

I'm definitely a noob, so I'm not quire sure what I'm looking at. I got:

 

[root@localhost ~]# yum search samba

fedora 100% |=========================| 2.1 kB 00:00

updates 100% |=========================| 2.3 kB 00:00

primary.sqlite.bz2 100% |=========================| 2.3 MB 00:51

adobe-linux-i386 100% |=========================| 951 B 00:00

samba.i386 : The Samba Suite of programs

smb4k.i386 : The SMB/CIFS Share Browser for KDE

smbldap-tools.noarch : User and group administration tools for Samba/OpenLDAP

system-config-samba.noarch : Samba server configuration tool

smb4k.i386 : The SMB/CIFS Share Browser for KDE

dbench.i386 : Filesystem load benchmarking tool

samba-client.i386 : Samba client programs

amanda.i386 : A network-capable tape backup solution.

snort.i386 : Intrusion detection system

samba-swat.i386 : The Samba SMB server Web configuration program

samba-client.i386 : Samba client programs

samba-common.i386 : Files used by both Samba servers and clients

python-smbpasswd.i386 : Python SMB Password Hash Generator Module

samba.i386 : The Samba Suite of programs

snort.i386 : Intrusion detection system

libsmbclient.i386 : The SMB client library

libsmbclient.i386 : The SMB client library

system-config-samba.noarch : Samba server configuration tool

samba.i386 : The Samba Suite of programs

libsmbclient-devel.i386 : Developer tools for the SMB client library

mod_auth_ntlm_winbind.i386 : NTLM authentication for the Apache web server using winbind daemon

samba-common.i386 : Files used by both Samba servers and clients

fuse-smb.i386 : FUSE-Filesystem to fast and easy access remote resources via SMB

ccache.i386 : C/C++ compiler cache

samba-client.i386 : Samba client programs

amanda.i386 : A network-capable tape backup solution.

ccache.i386 : C/C++ compiler cache

nautilus-share.i386 : Easy sharing folder via Samba (CIFS protocol)

samba-doc.i386 : Documentation for the Samba suite

pam_mount.i386 : A PAM module that can mount volumes for a user session

samba-common.i386 : Files used by both Samba servers and clients

rzip.i386 : A large-file compression program

samba-swat.i386 : The Samba SMB server Web configuration program

perl-Crypt-SmbHash.noarch : Pure-perl Lanman and NT MD4 hash functions

libsmbclient-devel.i386 : Developer tools for the SMB client library

samba-doc.i386 : Documentation for the Samba suite

php-pear-File-SMBPasswd.noarch : Class for managing SAMBA style password files

libsmbclient.i386 : The SMB client library

libntlm.i386 : NTLM authentication library

 

I'm not quite sure what that means. Do you see anything that is missing? Is there something I have missed? Anything I need to configure to get samba to work?

Backing up a bit, I tried browsing the Windows Network, but it is showing up empty. I guess I need to figure out how to see other computers (and shared directories/drives) on the network before I'll succeed at mounting the drive...

Link to post
Share on other sites
Backing up a bit, I tried browsing the Windows Network, but it is showing up empty.

 

i dont have the box to hand, but try this as root

 

yum install samba-client.i386 -y

 

then

 

yum install samba.i386 -y

 

does browsing the windows network show any windows computers now ?

Link to post
Share on other sites

Thanks for hanging in there with me! I still don't see any computers when I browse the network. :-(

 

It looks like both packages were already installed:

 

[root@localhost ~]# yum install samba-client.i386 -y

fedora 100% |=========================| 2.1 kB 00:00

primary.sqlite.bz2 100% |=========================| 3.8 MB 00:06

updates 100% |=========================| 2.3 kB 00:00

adobe-linux-i386 100% |=========================| 951 B 00:00

Setting up Install Process

Parsing package install arguments

Package samba-client - 3.0.28-0.fc7.i386 is already installed.

Nothing to do

[root@localhost ~]# yum install samba.i386 -y

Setting up Install Process

Parsing package install arguments

Package samba - 3.0.28-0.fc7.i386 is already installed.

Nothing to do

[root@localhost ~]#

 

Here's another data point. I'm not quite sure what this means, but it seems to be the first time I've successfully communicated with the drive:

 

root@localhost ~]# smbclient -L 192.168.2.4/Public

Password:

Domain=[ȇ] OS=[] Server=[���]

 

Sharename Type Comment

--------- ---- -------

PUBLIC Disk

IPC$ IPC

Domain=[ȇ] OS=[] Server=[���]

 

Server Comment

--------- -------

 

Workgroup Master

--------- -------

 

Any ideas?

Link to post
Share on other sites

ok a quick look on my Fedora 8 box (this one)

 

and I can see the following smb packages are installed

 

pam_smb

gnome-vfs2-smb

libsmbclient

samba-client

samba

 

so if you are missing any of the above please install them and try again

 

cheers

anyweb

Link to post
Share on other sites
ok a quick look on my Fedora 8 box (this one)

 

and I can see the following smb packages are installed

 

pam_smb

gnome-vfs2-smb

libsmbclient

samba-client

samba

 

so if you are missing any of the above please install them and try again

 

cheers

anyweb

 

To be safe, I tried to install each of those packages; but yum responded "xxxx is already Installed. Nothing to do" for each package.

 

I have made some progress, though... I discovered that file sharing was being blocked by the firewall on one of the Windows PCs. I enabled file sharing, and now when I browse the Windows network, I can see the workgroup. But trying to browse the workgroup results in a "The folder contents could not be displayed" dialog.

 

I tried disabling the Windows firewall, Linux firewall, and SPI firewall in the router (nothing like being wide open!) and could then browse the network.

 

Grrrr... so it looks like it probably is a firewall issue like you said in your first post. :-( I'm still not real sure what's going on. The only way I have successfully browsed is to shut down the Windows firewalls. But even doing that doesn't always result in successful browsing. And of course I can't leave the network wide ope like that, either.

Link to post
Share on other sites

Now I think I have all of the firewall issues resolved. I created at least one shared folder on each Windows computer on the network, and I have ensured that each Windows machine can access the shared folder(s) on each other machine, including this one when it boots under Windows instead of Linux.

 

I then uninstalled all of the samba packages on this machine, verified that /etc/samba/smb.conf was removed, and reinstalled the samba packages -- first using Applications->Add/Remove Software, then using sudo yum install for each of the packages listed above, just to be sure everything is installed.

 

But I still can't browse the network. Using Applications->System Tools->File Browser, I can see the workgroup, but double clicking on it yields "The folder contents could not be displayed."

 

Using Gnome Commander, when I select SMB I can see the Workgroup, but selecting it yields "timeout reached."

 

Using Applications->Accessories->Smb4K, I can see the computers, and the shared directory on one computer. But I can't see any files in that directory, nor the shared directories of any other computers.

 

Any ideas?

 

I'm definitely a newbie to Linux, and especially to samba. Am I overlooking something obvious (like configuration, security settings, etc.)?

Link to post
Share on other sites

hi are you trying to browse these shares using a username/password that is the SAME on both the windows box and the linux box ?

Link to post
Share on other sites
hi are you trying to browse these shares using a username/password that is the SAME on both the windows box and the linux box ?

 

Yes. Although I don't think it should matter since the Windows shares are all set for "everyone."

 

I seem to have made some progress, though. I tried pinging every machine, and found that I could ping them via IP address, but not with the computer name. A couple of google searches led me to add the computer to the /etc/hosts file. Now I can ping it by computer name, and more importantly, can browse the shares.

 

However, adding all of the computers to the /etc/hosts file means that I would need to switch every computer to use fixed IP addresses so that their address is known. (Currently, I'm using the DHCP server on the router to assign IP addresses). Is there a better way? Or is using fixed IP addresses the "proper" thing to do?

 

Thanks in advance for your help!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...