LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Cannot Connect to Seagate Central NAS (https://www.linuxquestions.org/questions/slackware-14/cannot-connect-to-seagate-central-nas-4175523947/)

jkirchner 10-31-2014 04:42 PM

Cannot Connect to Seagate Central NAS
 
I have Slackware64 14.1 installed. I have a Seagate Central NAS. When I would run Ubuntu the file manager would just pick it up under its network settings, I could click, enter the password and all set.

I could also connect using this line in terminal

Code:

sftp john@Seagate-3f46d4.local
and then enter the password and I could use get and such to pull files from the server.

When I try it in Slackware (full install, XFCE as desktop) it just times out after a wait period. I have tried the local ip it has and that does not work either. I tried pinging it and nothing.

I am not so good with network things so I am lost as to what I could try next. I did try smb which works for my Bookworld unit but not the Seagate. It is definitely up and running as I can access it from the windows side. It is not critical to do as I am dual booting on this box anyway, just a quest now, one I need to solve to learn :)

allend 10-31-2014 06:52 PM

Are you using a setup as per page 4 of this guide? (i.e. NAS connected to router with a wired ethernet cable) http://www.seagate.com/files/www-con...r-guide-us.pdf

Do you use your router as a DHCP server?

Does your Slackware setup use DHCP to get an IP address from the router? (i.e. there is an entry 'USE_DHCP[0]="yes"' in /etc/rc.d/rc.inet1.conf)

jkirchner 10-31-2014 07:21 PM

Quote:

Originally Posted by allend (Post 5262698)
Are you using a setup as per page 4 of this guide? (i.e. NAS connected to router with a wired ethernet cable) http://www.seagate.com/files/www-con...r-guide-us.pdf

Do you use your router as a DHCP server?

Does your Slackware setup use DHCP to get an IP address from the router? (i.e. there is an entry 'USE_DHCP[0]="yes"' in /etc/rc.d/rc.inet1.conf)

Yes, it is set up the way it shows in the manual, yes, I use DHCP from the router and yes Slackware uses DHCP also.

My PC is using wireless to connect to the router. Like I was saying, I was able to connect with Windows and also with Ubuntu (and Mint but it is essentially Ubuntu under the hood). I was able to use it graphically via the file manager with Ubuntu. I do not mind having to ftp or such, just odd to me (I am novice at networking stuff) that it just did not work :) Everything else just worked with Slackware it seemed.

allend 10-31-2014 07:33 PM

Thanks for the details of your setup.

Can you access a web based administration page on your router from a browser in Slackware, and if so, does the NAS show as a connected device?

jkirchner 10-31-2014 07:40 PM

I have not tried that as it does have an IP and all. I did (running now) toss a LinuxMint live cd in, connected to wireless, opened terminal and voila:

Code:

mint@mint ~ $ sftp john@seagate-3f46d4.local
The authenticity of host 'seagate-3f46d4.local (192.168.1.143)' can't be established.
RSA key fingerprint is ec:61:f7:b2:a0:ba:3a:4a:1f:80:f1:87:2d:5b:d2:b7.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'seagate-3f46d4.local,192.168.1.143' (RSA) to the list of known hosts.
john@seagate-3f46d4.local's password:
Connected to seagate-3f46d4.local.
sftp>

So, it all works, just not with Slackware (yet)

I can use it and all using sftp

Code:

sftp> ls
AGK                                                                           
CourseWork                                                                     
DW Chrome Mod 1.1.zip                                                         
DW Extended Universe 1.0.zip                                                   
DistantWorldsUniverse-SetupRelease-v1950.exe                                   
DrumsOfWar-SetupRelease-100.exe                                               
Freeciv-2.4.2-win32-sdl-setup.exe                                             
Fusion25_(En-Fr).exe                                                           
Linux                                                                         
PJ Tracks                                                                     
PandoraFC-MultiOS                                                             
Pelles                                                                         
Stardock                                                                       
TurboTax                                                                       
factorio_alpha_x64_0.9.8.tar.gz                                               
t-engine4-linux64-1.2.3.tar.bz2                                               
tome-235-win.zip                                                               
sftp>

****UPDATE***
Back in Slackware. I can connect using dotted quad but not the name. Here is the Slackware connection:

Code:

john@starbird:~$ sftp john@192.168.1.143
The authenticity of host '192.168.1.143 (192.168.1.143)' can't be established.
RSA key fingerprint is ec:61:f7:b2:a0:ba:3a:4a:1f:80:f1:87:2d:5b:d2:b7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.143' (RSA) to the list of known hosts.
john@192.168.1.143's password:
Connected to 192.168.1.143.
sftp>

I noticed earlier today when I tried it tossed a "resolver" error. Could there be a file I need to fix?

allend 10-31-2014 07:56 PM

You are wanting to know what is different between Slackware and Windows/Ubuntu/LinuxMint.
Part of the reason of the question in post#4 was to check connectivity from your PC to the router.

In Slackware, as root, do you see your network devices with 'nmap -sn 192.168.1.1/24' ?

allend 10-31-2014 08:00 PM

Quote:

****UPDATE***
Back in Slackware. I can connect using dotted quad but not the name. Here is the Slackware connection:
..
I noticed earlier today when I tried it tossed a "resolver" error. Could there be a file I need to fix?
Perhaps there is a problem with /etc/resolv.conf. Mine looks like this
Code:

# Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
domain gateway.2wire.net
nameserver 10.1.1.22
# /etc/resolv.conf.tail can replace this line


jkirchner 10-31-2014 08:02 PM

Here is the nmap data:

Code:

root@starbird:/home/john# nmap -sn 192.168.1.1/24

Starting Nmap 6.40 ( http://nmap.org ) at 2014-10-31 20:59 EDT
Nmap scan report for 192.168.1.1
Host is up (0.010s latency).
MAC Address: C8:D7:19:7D:CE:E6 (Cisco Consumer Products)
Nmap scan report for 192.168.1.110
Host is up (0.086s latency).
MAC Address: 3C:77:E6:16:6F:D1 (Hon Hai Precision Ind. Co.)
Nmap scan report for 192.168.1.142
Host is up (0.065s latency).
MAC Address: 00:90:A9:82:8C:32 (Western Digital)
Nmap scan report for 192.168.1.143
Host is up (0.074s latency).
MAC Address: 00:10:75:3F:46:D4 (Maxtor)
Nmap scan report for 192.168.1.147
Host is up (0.074s latency).
MAC Address: C4:46:19:34:79:25 (Hon Hai Precision Ind. Co.)
Nmap scan report for 192.168.1.121
Host is up.
Nmap done: 256 IP addresses (6 hosts up) scanned in 3.57 seconds

My resolv.conf

Code:

# Generated by dhcpcd from wlan0
# /etc/resolv.conf.head can replace this line
nameserver 208.180.42.68
nameserver 208.180.42.100
nameserver 192.168.1.1
# /etc/resolv.conf.tail can replace this line


allend 10-31-2014 08:07 PM

Good! All the basic networking stuff is working. It appears to be a name resolution problem. This should be done by your router if /etc/resolv.conf has been setup correctly by DHCP.

jkirchner 10-31-2014 08:15 PM

I see in my resolv.conf I have three nameservers. One is obviously my router but what are the other 2? I have cable box which my router is connected to but not sure why I would show three... something is amiss though, but I can connect using the IP which is better than nothing at this point.

allend 10-31-2014 08:23 PM

Those other entries are probably the nameservers at your ISP.
You could try adding an entry to /etc/hosts so that you can use the device name.
Code:

192.168.1.143 john@seagate-3f46d4.local

jkirchner 10-31-2014 08:31 PM

That did the trick, thanks

And....that also made it recognized in Thunar :)

Thank you so much for all your help. The whole thing taught me some basic sftp too so I cannot complain. Love to learn

allend 10-31-2014 08:45 PM

The downside to the entry in /etc/hosts is that it will need to be updated if your NAS is assigned a new IP address.
Anyway, glad you got it working to your satisfaction.

jkirchner 10-31-2014 08:54 PM

Quote:

Originally Posted by allend (Post 5262738)
The downside to the entry in /etc/hosts is that it will need to be updated if your NAS is assigned a new IP address.
Anyway, glad you got it working to your satisfaction.

I thought about that too, that the NAS could get a new IP address. I am not learned enough to work it through yet why the NAS was not visible using its name as it was done in the live cd of Mint and my prior Ubuntu install. I tried Arch too and it did not see it straight off either.

To be honest, I'd rather work at it a bit than go back to using Ubuntu. It was slow compared to Slackware. I actually enjoy the way the software is managed in Slackware better too. Just simple and straightforward. Anyway, I am meandering, thanks again!


All times are GMT -5. The time now is 05:06 AM.