Penna usb

Se avete problemi con l'installazione e la configurazione di Slackware postate qui. Non usate questo forum per argomenti generali... per quelli usate Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Avatar utente
marco79
Linux 2.x
Linux 2.x
Messaggi: 451
Iscritto il: gio 14 ott 2004, 0:00
Località: Como
Contatta:

Penna usb

Messaggio da marco79 »

Ciao coem faccio a vedere il contenuto della penna usb?
Ho dato
dmesg |tail
prima di inserirla


shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4




Dopo inserita
dmesg |tail


shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
hub.c: new USB device 00:1d.7-7, assigned address 3
usb.c: USB device descriptor short read (expected 18, got 0)
hub.c: new USB device 00:1d.7-7, assigned address 4
usb.c: USB device descriptor short read (expected 18, got 0)

Come faccio a capire quale dev usa?

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

Prova
tail -F /var/log/messages
e
sfdisk -l /dev/sda.

M.

Bart
Staff
Staff
Messaggi: 4249
Iscritto il: lun 9 ago 2004, 0:00
Località: Rimini

Messaggio da Bart »

samiel ha scritto:Prova
tail -F /var/log/messages
e
sfdisk -l /dev/sda.

M.
Si anche io ti consilio tail -f /var/log/messages

comunque, se usi un kernel della serie 2.6.x il device è quasi sicuramente uba1.

Avatar utente
Tochiro
Linux 2.x
Linux 2.x
Messaggi: 263
Iscritto il: lun 27 giu 2005, 0:00
Contatta:

Messaggio da Tochiro »

Di solito a me la penna usb la vede come sda1
ovviamente non ho dischi scsi

pennega
Linux 3.x
Linux 3.x
Messaggi: 607
Iscritto il: dom 4 lug 2004, 0:00
Contatta:

Messaggio da pennega »

il fatto che sia uba o sda dipende da un suporto che compili nel kernel di cui ora mi sfugge il nome...

ps

hai hotplug attivo???

ti serve per caricare moduli in automatico in questo caso mass_storage mi pare...

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

il fatto che sia uba o sda dipende da un suporto che compili nel kernel di cui ora mi sfugge il nome...
Trattasi di SCSI low level drives,
che uno dovrebbe avere buonissime ragioni
per mettere. Sda è il canonico, non uba.

M.

Avatar utente
gallows
Staff
Staff
Messaggi: 3471
Iscritto il: lun 20 set 2004, 0:00
Desktop: cwm
Distribuzione: OpenBSD
Località: ~/
Contatta:

Messaggio da gallows »

samiel ha scritto:
il fatto che sia uba o sda dipende da un suporto che compili nel kernel di cui ora mi sfugge il nome...
Trattasi di SCSI low level drives,
che uno dovrebbe avere buonissime ragioni
per mettere. Sda è il canonico, non uba.

M.
Quoto.

pennega
Linux 3.x
Linux 3.x
Messaggi: 607
Iscritto il: dom 4 lug 2004, 0:00
Contatta:

Messaggio da pennega »

quindi consigliate di abilitarlo???
ma abilitandolo cambia il device da sda a uba
giusto???

Bart
Staff
Staff
Messaggi: 4249
Iscritto il: lun 9 ago 2004, 0:00
Località: Rimini

Messaggio da Bart »

A me sda lo dava con il vecchio 2.4
Da quando sono passato al 2.6 è diventato uba.
Poi se si tratta di SCSI low level drives non ne ho la più pallida idea nemmeno di cosa sia. Ma è così! :D

Avatar utente
gallows
Staff
Staff
Messaggi: 3471
Iscritto il: lun 20 set 2004, 0:00
Desktop: cwm
Distribuzione: OpenBSD
Località: ~/
Contatta:

Messaggio da gallows »

Uh, a dire il vero avevo capito male.. io mi riferivo a BLK_DEV_SD (il supporto per i dischi scsi), il low level non lo ho attivato.

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

Non dovrebbe essere uba, ma sda.
Ecco la sezione del mio config 2.6.13

Codice: Seleziona tutto

# SCSI device support
#
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set
# CONFIG_CHR_DEV_SCH is not set

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set

#
# SCSI Transport Attributes
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set

#
# SCSI low-level drivers
#
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
CONFIG_SCSI_SATA=y
# CONFIG_SCSI_SATA_AHCI is not set
# CONFIG_SCSI_SATA_SVW is not set
CONFIG_SCSI_ATA_PIIX=y
# CONFIG_SCSI_SATA_PROMISE is not set
# CONFIG_SCSI_SATA_QSTOR is not set
# CONFIG_SCSI_SATA_VIA is not set
# CONFIG_SCSI_SATA_VITESSE is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
CONFIG_SCSI_QLA2XXX=y
# CONFIG_SCSI_QLA21XX is not set
# CONFIG_SCSI_QLA22XX is not set
# CONFIG_SCSI_QLA2300 is not set
# CONFIG_SCSI_QLA2322 is not set
# CONFIG_SCSI_QLA6312 is not set
# CONFIG_SCSI_QLA24XX is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set
M.[/quote]

Avatar utente
gallows
Staff
Staff
Messaggi: 3471
Iscritto il: lun 20 set 2004, 0:00
Desktop: cwm
Distribuzione: OpenBSD
Località: ~/
Contatta:

Messaggio da gallows »

Anche a me le riconosce come sd[a-z], ma credo sia appunto per `CONFIG_BLK_DEV_SD=y' e non per il low-level drivers che tu, suppongo, hai attivato per il disco sata.

Bart
Staff
Staff
Messaggi: 4249
Iscritto il: lun 9 ago 2004, 0:00
Località: Rimini

Messaggio da Bart »

Ah capito, allora si vede che nel 2.6 nel config di Pat non è abilitato perchè io sto usando quello con qualche piccola modifica...

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

Yesssssss,
per i 2 SATA del mio pc
(per un totale di 480 GB :-) )
M.

Avatar utente
marco79
Linux 2.x
Linux 2.x
Messaggi: 451
Iscritto il: gio 14 ott 2004, 0:00
Località: Como
Contatta:

Messaggio da marco79 »

io ho un kernel 2.4.29 e un SATA in /dev/sda


Mi sa che ho dei problemi con le porte usb del pannello frontale perche' anche sotto win non mi legge la penna(So per certo che funziona sulle porte usb posteriori)

Come suggeritomi :

tail -F /var/log/messages
Sep 4 22:08:25 darkstar kernel: Device not ready. Make sure there is a disc in the drive.
Sep 4 22:08:25 darkstar kernel: Device not ready. Make sure there is a disc in the drive.
Sep 4 22:08:28 darkstar kernel: sdb: Unit Not Ready, sense:
Sep 4 22:08:28 darkstar kernel: sdb: I/O error: dev 08:10, sector 0
Sep 4 22:08:28 darkstar kernel: Device not ready. Make sure there is a disc in the drive.
Sep 4 22:08:28 darkstar kernel: Device not ready. Make sure there is a disc in the drive.
Sep 4 22:08:28 darkstar kernel: sdb: Unit Not Ready, sense:
Sep 4 22:08:28 darkstar kernel: sdb: I/O error: dev 08:10, sector 0
Sep 4 22:08:28 darkstar kernel: Device not ready. Make sure there is a disc in the drive.
Sep 4 22:08:28 darkstar kernel: Device not ready. Make sure there is a disc in the drive.



Se do
sfdisk -l

Disk /dev/sda: 19457 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 2549 2550- 20482843+ 7 HPFS/NTFS
/dev/sda2 2550 3186 637 5116702+ 83 Linux
/dev/sda3 3187 3262 76 610470 82 Linux swap
/dev/sda4 3263 19456 16194 130078305 5 Extended
/dev/sda5 3263+ 3266 4- 32098+ 83 Linux
/dev/sda6 3267+ 16014 12748- 102398278+ 83 Linux
/dev/sda7 16015+ 19456 3442- 27647833+ b W95 FAT32

Disk /dev/sdb: 1023 cylinders, 64 heads, 32 sectors/track
read: Input/output error

sfdisk: read error on /dev/sdb - cannot read sector 0
/dev/sdb: unrecognized partition table type
No partitions found

Disk /dev/sdc: 497 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sdc1 0+ 495 496- 3984088+ b W95 FAT32
/dev/sdc2 0 - 0 0 0 Empty
/dev/sdc3 0 - 0 0 0 Empty
/dev/sdc4 0 - 0 0 0 Empty


sdb dovrebbero essere quelle frontali?Per quale potrebbero non andare ne sotto win ne linux?

Rispondi