[Risolto] connessione a hark disk usb con modem fastgate

Networking, configurazione della connessione, periferiche e condivisioni di rete.
Scrivi risposta
Avatar utente
Thya 101
Prode Principiante
Messaggi: 21
Iscrizione: sabato 25 ottobre 2014, 21:33
Desktop: plasma
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

[Risolto] connessione a hark disk usb con modem fastgate

Messaggio da Thya 101 »

Buongiorno a tutti,
premetto che sono completamente a digiuno di linux, probabilmente è per questo che non riesco a trovare le risposte alle mie domande

il mio problema è questo:
ho un hark disk formattato NTFS collegato al router fastgate di fastweb, con ip 192.168.1.254. da windows (non dopo pochi improperi) riesco ad accedervi senza problemi, sia in lettura che in scrittura

ho provato a collegarlo tramite dolphin utilizzando la funzione "aggiungi cartella di rete -> unità di rete microsoft windows"
ho impostato come nome "fastgate", come server l'indirizzo ip del router e come cartella ho fatto varie prove, ad esempio 192.168.1.254/EXTERNAL_USB; 192.168.1.254/sda1 (come vedo su windows)

in tutto questo, non riesco comunque a connettemi al server

ho googlato il problema, ma non sono riuscito a trovare nulla che mi fosse di aiuto.

allego screenshot della schermata del router

Immagine

grazie a chiuque abbia voglia di perdere del tempo per questo
Ultima modifica di Thya 101 il venerdì 3 marzo 2023, 7:59, modificato 2 volte in totale.
Avatar utente
GjMan78
Rampante Reduce
Rampante Reduce
Messaggi: 5498
Iscrizione: mercoledì 22 novembre 2006, 19:15
Desktop: KdePlasma
Distribuzione: EndeavourOS
Sesso: Maschile
Località: ~/Italia/Lazio/Viterbo/

Re: connessione a hark disk usb con modem fastgate

Messaggio da GjMan78 »

Se su dolphin inserisci questo

Codice: Seleziona tutto

\\192.168.1.254\EXTERNAL_USB
riesci ad accedere?
MacBook Pro - Intel i5-3210 - 16 Gbyte Ram DDR3 - SSD 500 Gbyte x 2
»»» 𝗙𝗮𝗶 𝗶𝗹 𝗕𝗮𝗰𝗸𝘂𝗽! ¯\_(ツ)_/¯
Avatar utente
Thya 101
Prode Principiante
Messaggi: 21
Iscrizione: sabato 25 ottobre 2014, 21:33
Desktop: plasma
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

Re: connessione a hark disk usb con modem fastgate

Messaggio da Thya 101 »

GjMan78 ha scritto:
sabato 25 febbraio 2023, 13:30
Se su dolphin inserisci questo

Codice: Seleziona tutto

\\192.168.1.254\EXTERNAL_USB
riesci ad accedere?
grazie per il supporto, ma purtroppo nulla (connessione all'host interrotta)
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: connessione a hark disk usb con modem fastgate

Messaggio da thece »

:ciao:

giusto per verificare che non ci sia qualche problema di connessione, ma non credo, muoviamoci prima con il terminale poichè è più facile così rendersi conto di cosa funziona e cosa no.
Apri il terminale e dai il seguente comando per ottenere la lista degli share sul Fastgate

Codice: Seleziona tutto

smbclient -U admin -L //192.168.1.254
Se non ci sono problemi prova a connetterti allo share con questo comando

Codice: Seleziona tutto

smbclient -U admin //192.168.1.254/EXTERNAL_USB
dove ho ipotizzato che il nome dello share ottenuto con il primo comando sia appunto EXTERNAL_USB
Se non ci sono problemi, visto che il terminale è bello ma un file manager grafico è più comodo, prova a connetterti con Dolphin usando la seguente URL

Codice: Seleziona tutto

smb://admin@192.168.1.254
usa la combinazione di tasti [CTRL]+[l] per far apparire la barra degli indirizzi di Dolphin

Se i server DNS sono configurati correttamente puoi usare anche l'hostaname del Fastgate (FASTGATE) al posto del suo indirizzo IP (192.168.1.254)

Sotto ti ho messo uno screenshot per la funzione "Aggiungi cartella di rete" di Dolphin (io ho KDE in Inglese)

Fammi sapere, partendo dall'inizio e fermandoti subito se riscontri problemi, così nel caso aggiustiamo il tiro.
Allegati
screenshot.png
Avatar utente
Thya 101
Prode Principiante
Messaggi: 21
Iscrizione: sabato 25 ottobre 2014, 21:33
Desktop: plasma
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

Re: connessione a hark disk usb con modem fastgate

Messaggio da Thya 101 »

grazie per l'aiuto

mi fermo al primo step e, da quello che hai scritto, ne deduco ci sia un problema di connessione.

Codice: Seleziona tutto

protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
non capisco perchè però. chiaramente sono connesso al router, altrimenti non riuscirei nemmeno a scrivere qui
Avatar utente
woddy68
Rampante Reduce
Rampante Reduce
Messaggi: 8679
Iscrizione: sabato 12 febbraio 2011, 14:23
Desktop: Kde Plasma5
Distribuzione: openSUSE Tumbleweed - KDE Neon
Sesso: Maschile

Re: connessione a hark disk usb con modem fastgate

Messaggio da woddy68 »

Thya 101 ha scritto:
sabato 25 febbraio 2023, 17:57
grazie per l'aiuto

mi fermo al primo step e, da quello che hai scritto, ne deduco ci sia un problema di connessione.

Codice: Seleziona tutto

protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
non capisco perchè però. chiaramente sono connesso al router, altrimenti non riuscirei nemmeno a scrivere qui
Non ne capisco molto, ma io avevo risolto seguendo questo link per un mio amico.
https://www.suse.com/support/kb/doc/?id=000020299
Desktop - DELL Optiplex 7010 - Notebook HP 250
-Ho sempre accettato caramelle dagli sconosciuti-
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: connessione a hark disk usb con modem fastgate

Messaggio da thece »

Non è detto ... provali tutti, vedi quale funziona

Codice: Seleziona tutto

smbclient  -m NT1 -U admin -L //192.168.1.254
smbclient  -m SMB2 -U admin -L //192.168.1.254
smbclient  -m SMB3 -U admin -L //192.168.1.254


NOTA: quando ti viene richiesto di postare un output, posta sempre il comando e l'output completo così come sono sul tuo terminale.
Avatar utente
Thya 101
Prode Principiante
Messaggi: 21
Iscrizione: sabato 25 ottobre 2014, 21:33
Desktop: plasma
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

Re: connessione a hark disk usb con modem fastgate

Messaggio da Thya 101 »

thece ha scritto:
sabato 25 febbraio 2023, 18:08
Non è detto ... provali tutti, vedi quale funziona

Codice: Seleziona tutto

smbclient  -m NT1 -U admin -L //192.168.1.254
smbclient  -m SMB2 -U admin -L //192.168.1.254
smbclient  -m SMB3 -U admin -L //192.168.1.254
ancora nulla, ma mi sorge il dubbio da inesperto, tutto questo posso farlo come user o devo farlo come admin?

In ogni caso ecco l'output

Codice: Seleziona tutto

thya@Thyaubs:~$ smbclient -m NT1 -U admin -L //192.168.1.254
lp_load_ex: Max protocol NT1 is less than min protocol SMB2_02.
protocol negotiation failed: NT_STATUS_INVALID_PARAMETER_MIX
thya@Thyaubs:~$ smbclient -m SMB2 -U admin -L //192.168.1.254
protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
thya@Thyaubs:~$ smbclient -m SMB3 -U admin -L //192.168.1.254
protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
thece ha scritto:
sabato 25 febbraio 2023, 18:08
NOTA: quando ti viene richiesto di postare un output, posta sempre il comando e l'output completo così come sono sul tuo terminale.
grazie per il consiglio. è corretto ora?

Codice: Seleziona tutto

thya@Thyaubs:~$ smbclient -U admin -L //192.168.1.254
protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: connessione a hark disk usb con modem fastgate

Messaggio da thece »

Thya 101 ha scritto:
sabato 25 febbraio 2023, 18:26
ancora nulla, ma mi sorge il dubbio da inesperto, tutto questo posso farlo come user o devo farlo come admin?
Puoi farlo tranquillamente come utente non privilegiato

Per caso hai installato Samba?
Avatar utente
Thya 101
Prode Principiante
Messaggi: 21
Iscrizione: sabato 25 ottobre 2014, 21:33
Desktop: plasma
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

Re: connessione a hark disk usb con modem fastgate

Messaggio da Thya 101 »

thece ha scritto:
sabato 25 febbraio 2023, 18:32
Thya 101 ha scritto:
sabato 25 febbraio 2023, 18:26
ancora nulla, ma mi sorge il dubbio da inesperto, tutto questo posso farlo come user o devo farlo come admin?
Puoi farlo tranquillamente come utente non privilegiato

Per caso hai installato Samba?
vedo voci come "stato di samba", quindi credo proprio di si
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: connessione a hark disk usb con modem fastgate

Messaggio da thece »

Posta l'output di questo comando

Codice: Seleziona tutto

cat /etc/samba/smb.conf
Avatar utente
Thya 101
Prode Principiante
Messaggi: 21
Iscrizione: sabato 25 ottobre 2014, 21:33
Desktop: plasma
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

Re: connessione a hark disk usb con modem fastgate

Messaggio da Thya 101 »

Codice: Seleziona tutto

thya@Thyaubs:~$ cat /etc/samba/smb.conf
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which 
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ";", the proposed setting
#    differs from the default Samba behaviour
#  - When commented with "#", the proposed setting is the default
#    behaviour of Samba but the option is considered important
#    enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic 
# errors. 

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
   server string = %h server (Samba, Ubuntu)

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes



#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
# Append syslog@1 if you want important messages to be sent to syslog too.
   logging = file

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller". 
#
# Most people will want "standalone server" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
   server role = standalone server

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

########## Domains ###########

#
# The following settings only takes effect if 'server role = classic
# primary domain controller', 'server role = classic backup domain controller'
# or 'domain logons' is set 
#

# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the 
# SAMR RPC pipe.  
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.  
; add group script = /usr/sbin/addgroup --force-badname %g

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap config * :              backend = tdb
;   idmap config * :              range   = 3000-7999
;   idmap config YOURDOMAINHERE : backend = tdb
;   idmap config YOURDOMAINHERE : range   = 100000-999999
;   template shell = /bin/bash

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 means that usershare is disabled.
#   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
;   read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
;   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: connessione a hark disk usb con modem fastgate

Messaggio da thece »

Con un editor di testi in modalità amministratore modifica il file /etc/samba/smb.conf aggiungendo nella sezione [global] la chiave

Codice: Seleziona tutto

[global]
...
client min protocol = NT1
...
riavvia il PC (che facciamo prima) e riprova i comandi sopra
Avatar utente
Thya 101
Prode Principiante
Messaggi: 21
Iscrizione: sabato 25 ottobre 2014, 21:33
Desktop: plasma
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

Re: connessione a hark disk usb con modem fastgate

Messaggio da Thya 101 »

Habemus Papam!

ho riprovato i comandi che mi hai dato all'inizio e sono riuscito a vedere L'HD da dolphin!

grazie tantissime davvero!

se posso abusare del tuo tempo ancora un po', posso chiederti spiegazione dei comandi che mi hai fatto inserire da terminale e della modifica fatta al file di configurazione (oppure dove andare a leggermi della documentazione)?
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: connessione a hark disk usb con modem fastgate

Messaggio da thece »

Impara a leggere la documentazione
Avatar utente
Thya 101
Prode Principiante
Messaggi: 21
Iscrizione: sabato 25 ottobre 2014, 21:33
Desktop: plasma
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

Re: connessione a hark disk usb con modem fastgate

Messaggio da Thya 101 »

thece ha scritto:
sabato 25 febbraio 2023, 21:21
Impara a leggere la documentazione
certo, l'intenzione è quella, per questo ti chiedevo dove recuperarla. so che pare un "google it for me", ma, in realtà, è solo un consiglio da qualcuno più esperto per non andare a leggere documentazione vecchia o peggio qualche pagina web che scrive cavolate

ps. metto il tag [risolto]
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: [RISOLTO] connessione a hark disk usb con modem fastgate

Messaggio da thece »

Purtroppo non posso indicarti un posto dove trovare informazioni sempre corrette e aggiornate.
Quando cerchi informazioni che tu possa incappare in informazioni incomplete o sbagliate è sempre una possibilità (incluso questo Forum).
Cerca sempre di rivolgerti a fonti ufficiali e/o autorevoli, leggi da più fonti, comparale, prova, trai da te le tue conclusioni.
Avatar utente
Thya 101
Prode Principiante
Messaggi: 21
Iscrizione: sabato 25 ottobre 2014, 21:33
Desktop: plasma
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

Re: [RISOLTO] connessione a hark disk usb con modem fastgate

Messaggio da Thya 101 »

molte grazie per il suggerimento, oltre che per l'aiuto.
spero un giorno di poter fare lo stesso
Avatar utente
trekfan1
Moderatore Globale
Moderatore Globale
Messaggi: 23405
Iscrizione: domenica 21 maggio 2006, 10:51
Desktop: Gnome
Distribuzione: Ubuntu 23.10 e 24.04 (dev)
Sesso: Maschile
Località: Formigine (MO) | Accecante Asceta

Re: [RISOLTO] connessione a hark disk usb con modem fastgate

Messaggio da trekfan1 »

Il [Risolto] va messo evitando di scriverlo tutto maiuscolo, correggi, grazie :)
Avatar utente
Thya 101
Prode Principiante
Messaggi: 21
Iscrizione: sabato 25 ottobre 2014, 21:33
Desktop: plasma
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

Re: [RISOLTO] connessione a hark disk usb con modem fastgate

Messaggio da Thya 101 »

trekfan1 ha scritto:
venerdì 3 marzo 2023, 7:37
Il [Risolto] va messo evitando di scriverlo tutto maiuscolo, correggi, grazie :)
Pardon. Ho editato
Scrivi risposta

Ritorna a “Connessione e configurazione delle reti”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 16 ospiti