Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO]Penna Usb & kernel & booo
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
ercoppa
Guru
Guru


Joined: 10 Dec 2005
Posts: 371
Location: roma

PostPosted: Wed Dec 28, 2005 11:29 pm    Post subject: [RISOLTO]Penna Usb & kernel & booo Reply with quote

Allora inanzitutto buone feste a tutti, ho un problema con sta cavolo di penna usb, non riesco neanche a montarla (magari poi mi vedo hal e vari impicci per l'automount). Per la configurazione del kernel ho seguita la guida http://www.gentoo.org/doc/it/usb-guide.xml, ma inserendo la mia penna (anche riavviendo con la penna inserita) nel dmesg la mia penna viene vista infatti:

Code:
gentoo emilio # dmesg | grep USB
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:10.4: USB 2.0 initialized, EHCI 1.00, driver 10 Dec 2004
ehci_hcd 0000:00:10.4: supports USB remote wakeup
hub 1-0:1.0: USB hub found
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v2.3
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:10.0: supports USB remote wakeup
hub 2-0:1.0: USB hub found
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:10.1: supports USB remote wakeup
hub 3-0:1.0: USB hub found
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:10.2: supports USB remote wakeup
hub 4-0:1.0: USB hub found
usb 1-1: new high speed USB device using ehci_hcd and address 2
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:10.3: supports USB remote wakeup
hub 5-0:1.0: USB hub found
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
USB Mass Storage support registered.
usb 3-1: new full speed USB device using uhci_hcd and address 2
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
o
gentoo emilio # dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver ub
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.14-gentoo-r2 ehci_hcd
usb usb1: SerialNumber: 0000:00:10.4
usb usb1: hotplug
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: hotplug
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: no power switching (usb 1.0)
usb usb2: default language 0x0409
usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: UHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.14-gentoo-r2 uhci_hcd
usb usb2: SerialNumber: 0000:00:10.0
usb usb2: hotplug
usb usb2: adding 2-0:1.0 (config #1, interface 0)
usb 2-0:1.0: hotplug
hub 2-0:1.0: usb_probe_interface
hub 2-0:1.0: usb_probe_interface - got id
hub 2-0:1.0: no power switching (usb 1.0)
usb usb3: default language 0x0409
usb usb3: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: UHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.14-gentoo-r2 uhci_hcd
usb usb3: SerialNumber: 0000:00:10.1
usb usb3: hotplug
usb usb3: adding 3-0:1.0 (config #1, interface 0)
usb 3-0:1.0: hotplug
hub 3-0:1.0: usb_probe_interface
hub 3-0:1.0: usb_probe_interface - got id
hub 3-0:1.0: no power switching (usb 1.0)
usb usb4: default language 0x0409
usb usb4: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: UHCI Host Controller
usb usb4: Manufacturer: Linux 2.6.14-gentoo-r2 uhci_hcd
usb usb4: SerialNumber: 0000:00:10.2
usb usb4: hotplug
usb usb4: adding 4-0:1.0 (config #1, interface 0)
usb 4-0:1.0: hotplug
hub 4-0:1.0: usb_probe_interface
hub 4-0:1.0: usb_probe_interface - got id
hub 4-0:1.0: no power switching (usb 1.0)
usb 1-1: new high speed USB device using ehci_hcd and address 2
usb usb5: default language 0x0409
usb usb5: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: UHCI Host Controller
usb usb5: Manufacturer: Linux 2.6.14-gentoo-r2 uhci_hcd
usb usb5: SerialNumber: 0000:00:10.3
usb usb5: hotplug
usb usb5: adding 5-0:1.0 (config #1, interface 0)
usb 5-0:1.0: hotplug
hub 5-0:1.0: usb_probe_interface
hub 5-0:1.0: usb_probe_interface - got id
hub 5-0:1.0: no power switching (usb 1.0)
usb 1-1: default language 0x0409
usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: MuVo TX FM                                              <<<<<<<<<<<<<<<<<------Eccola
usb 1-1: Manufacturer: CREATIVE
usb 1-1: SerialNumber: 0002F5BA194D8997
usb 1-1: hotplug
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: hotplug
ub 1-1:1.0: usb_probe_interface
ub 1-1:1.0: usb_probe_interface - got id
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
usbcore: registered new driver usb-storage
usb 3-1: new full speed USB device using uhci_hcd and address 2
usb 3-1: ep0 maxpacket = 8
usb 3-1: skipped 3 descriptors after endpoint
usb 3-1: default language 0x0800
usb 3-1: new device strings: Mfr=0, Product=1, SerialNumber=2
usb 3-1: Product: ADSL MODEM
usb 3-1: SerialNumber: 0000000000000000
usb 3-1: hotplug
usb 3-1: adding 3-1:1.0 (config #1, interface 0)
usb 3-1:1.0: hotplug
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver

E se do un lsusb:
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0483:0137 SGS Thomson Microelectronics
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 041e:4120 Creative Technology, Ltd <----Ecco la mia Penna usb
Bus 001 Device 001: ID 0000:0000


Se provo a montarla però:
mount /dev/sda1 /mnt/usb/
mount: /dev/sda1 is not a valid block device

non so cosa fare, mancano qualche cosa nel kernel?? Oppure la penna non è /dev/sda1(con altre distro è stata sempre chiamata così) e se non è questa come faccio a capire come udev la chiama?
Aiuto! :cry:
P.s. La mia penna è una Creative Muvo tx econ altre distro (suse e debian) non ho mai avuto problemi, ma in quelle distro il kernel era precompilato

Edit gutter: Per favore usiamo il bbcode


Last edited by ercoppa on Sat Dec 31, 2005 2:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
GuN_jAcK
l33t
l33t


Joined: 23 Mar 2005
Posts: 832
Location: Prague, Czech Republic

PostPosted: Thu Dec 29, 2005 8:45 am    Post subject: Reply with quote

per prima cosa ti consiglio allora di fare una piccola modifichina al tuo sistema almeno avrai maggiore visibilità in /dev

fai:

Code:

nano -w /etc/conf.d/rc



e modifichi la voce così come segue:
Code:

RC_DEVICE_TARBALL="no"


almeno in /dev ti mostrerà solo quello che è utilizzato.. poi da un bel:

Code:

ls /dev


e vedi dove te l'ha messa :D

se non la trovi neanche così quando ti viene restituito l'errore prova a dare:

Code:

dmesg | tail


e postacelo
_________________
Rispondi in maniera intelligente anche a chi ti tratta stupidamente.
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Thu Dec 29, 2005 9:20 am    Post subject: Re: Penna Usb & kernel & booo Reply with quote

ercoppa wrote:
nel dmesg la mia penna viene vista infatti:

Nel dmesg non c'è nulla che faccia riferimento alla penna, ma solo alla stampante: quando inserisco la penna io ottengo:
Code:
usb 2-1: new full speed USB device using uhci_hcd and address 2
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
  Vendor:           Model:                   Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sdb: 2051809 512-byte hdwr sectors (1051 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 c0 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 2051809 512-byte hdwr sectors (1051 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 c0 00 00
sdb: assuming drive cache: write through
 sdb: unknown partition table
Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
usb-storage: device scan complete


Ciao
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
GiRa
l33t
l33t


Joined: 07 Apr 2005
Posts: 717

PostPosted: Thu Dec 29, 2005 9:44 am    Post subject: Reply with quote

Te la vede come sdb come si evince da ciò che hai postato, per vedere la lista dei dischi con le relative partizioni dai
Code:
fdisk -l
però ad occhio considera la tabella delle partizioni di sdb invalida...

Fossi in te proverei a ricreare la partizione vfat da GNU/Linux.
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Thu Dec 29, 2005 10:15 am    Post subject: Reply with quote

GiRa wrote:
Te la vede come sdb come si evince da ciò che hai postato

Mi sa che hai letto la mia (e a me funziona, tranne che non posso ritoccare la tabella delle partizioni ma quello nemmeno da windows) :)

Rispetto alle mie righe sembra che a lui non parta l'emulazione scsi, ma dovrebbe essere compilata visto che gli parte usb_storage all'avvio (e non mi pare si possa compilare questa senza l'emulazione scsi abilitata).

Ciao
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
ercoppa
Guru
Guru


Joined: 10 Dec 2005
Posts: 371
Location: roma

PostPosted: Thu Dec 29, 2005 1:21 pm    Post subject: Reply with quote

in dev la mia penna nn compare eco quindi quello che mi hai chiesto:
gentoo emilio # dmesg | tail
usb 1-6: Product: MuVo TX FM
usb 1-6: Manufacturer: CREATIVE
usb 1-6: SerialNumber: 0002F5BA194D8997
usb 1-6: hotplug
usb 1-6: adding 1-6:1.0 (config #1, interface 0)
usb 1-6:1.0: hotplug
ub 1-6:1.0: usb_probe_interface
ub 1-6:1.0: usb_probe_interface - got id
ub(1.4): GetMaxLUN returned 0, using 1 LUNs
uba: uba1

Ma leggendo bene questo output ho capito la mia penna viene chiamata uba (che poi per montarla devo dire uba1) francamente nn la ho mai sentita (mia ignoranza) ma come mai la chiama uba invece di sda?? Ci sono delle differenze??Come posso vedere se le prestazioni di trasferimento ci sono (usb 2.0)?


Last edited by ercoppa on Thu Dec 29, 2005 1:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Thu Dec 29, 2005 1:25 pm    Post subject: Reply with quote

ercoppa wrote:
ub(1.4): GetMaxLUN returned 0, using 1 LUNs
uba: uba1

Quindi il dispositivo è /dev/uba1
Ti sconsiglio questo driver, però: l'emulazione scsi è generalmente migliore; ma è vero che sono rimasto un po' indietro, non so se ora sia mogliorato.

Ciao
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
ercoppa
Guru
Guru


Joined: 10 Dec 2005
Posts: 371
Location: roma

PostPosted: Thu Dec 29, 2005 1:46 pm    Post subject: Reply with quote

OK controllando mi manca emulazione scsi vediamo se con quella chiama la penna sda
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Thu Dec 29, 2005 1:49 pm    Post subject: Reply with quote

ercoppa wrote:
OK controllando mi manca emulazione scsi vediamo se con quella chiama la penna sda

Dovrebbe :D
Però hai provato a montarlo con quel dispositivo? Magari mi potevi dire se è migliorato: l'emulazione è sempre una forzatura, credo che finirà come con l'ATAPI, e in futuro non sarà più necessaria nessuna emulazione. Vorrei solo sapere quando arriva questo futuro :wink:

Ciao
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
ercoppa
Guru
Guru


Joined: 10 Dec 2005
Posts: 371
Location: roma

PostPosted: Thu Dec 29, 2005 1:55 pm    Post subject: Reply with quote

Allora inanzitutto inserendo l'emulazione, la penna rimane uba1, ma alla fine nn mi cambia molto (se le prestazioni nn cambiano). Cmq si l'ho montato (e lo monto) non ho avuto problemi, c'è un qualche comando per misurare le prestazioni?
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Thu Dec 29, 2005 1:59 pm    Post subject: Reply with quote

ercoppa wrote:
Allora inanzitutto inserendo l'emulazione, la penna rimane uba1, ma alla fine nn mi cambia molto (se le prestazioni nn cambiano).

Probabilmente essendo disponibile l'altro driver l'emulazione non parte; mi sembra ci fosse un'opzione da passare al kernel, ma non ricordo :(

ercoppa wrote:
Cmq si l'ho montato (e lo monto) non ho avuto problemi, c'è un qualche comando per misurare le prestazioni?

Ci sarà, ma non ho idea di quale sia :oops:

Ciao
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
ercoppa
Guru
Guru


Joined: 10 Dec 2005
Posts: 371
Location: roma

PostPosted: Thu Dec 29, 2005 2:01 pm    Post subject: Reply with quote

Ho provato dando
gentoo emilio # hdparm -tT /dev/uba1

/dev/uba1:
Timing cached reads: 2080 MB in 2.00 seconds = 1039.94 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
Timing buffered disk reads: 10 MB in 3.47 seconds = 2.88 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device

Puo andar bene per usb 2.0?
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Thu Dec 29, 2005 2:02 pm    Post subject: Reply with quote

credo che tu possa utilizzare time.
prendi un file e lo copi e con time misuri il tempo impiegato.
lo fai 5 volte e fai la media.
lo stesso file lo leggi dalla penna x 5 volte ed ottieni il tempo in lettura.
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Thu Dec 29, 2005 2:10 pm    Post subject: Reply with quote

Ic3M4n wrote:
prendi un file e lo copi e con time misuri il tempo impiegato.
lo fai 5 volte e fai la media.
lo stesso file lo leggi dalla penna x 5 volte ed ottieni il tempo in lettura.

Mi sembra un buon metodo. Però ho notato che c'è una grossa differenza per l'usb (almeno col driver scsi-emul) se si copia un file di 100MB o 100 file da 1MB; credi ci sia una differenza su questo tra i due drivers?

Ciao
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
ercoppa
Guru
Guru


Joined: 10 Dec 2005
Posts: 371
Location: roma

PostPosted: Thu Dec 29, 2005 11:03 pm    Post subject: Reply with quote

nn capisco come devo utilizzare time mi potete illuminare :?:
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Thu Dec 29, 2005 11:18 pm    Post subject: Reply with quote

Code:
time nomecomando

_________________
Running Fast!
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Fri Dec 30, 2005 9:48 am    Post subject: Reply with quote

Comunque visto che il driver è presentato come segue:
Code:
CONFIG_BLK_DEV_UB:                                                                                                                                           
This driver supports certain USB attached storage devices
such as flash keys.

Warning: Enabling this cripples the usb-storage driver.

If unsure, say N.

Symbol: BLK_DEV_UB [=n]
Prompt: Low Performance USB Block driver       

Defined at drivers/block/Kconfig:354
Depends on: USB
Location:
   -> Device Drivers
   -> Block devices

Le parole "low performance" fanno supporre che il driver non sia ancora buono quanto l'emulazione...

Ciao
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
ercoppa
Guru
Guru


Joined: 10 Dec 2005
Posts: 371
Location: roma

PostPosted: Fri Dec 30, 2005 11:18 am    Post subject: Reply with quote

Quindi come faccio io? Nel kernel l'emulalazione scsi è built-in ma ancora me li vedee come uba come faccio?
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Fri Dec 30, 2005 11:23 am    Post subject: Reply with quote

Rimuovi quel driver.
Come ti ho detto ci sarà un'opzione al kernel ma non la ricordo, o magari potresti scrivere una regola di udev, ma sono soluzioni comunque più complesse se quel driver non lo vuoi usare.

Ciao
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
ercoppa
Guru
Guru


Joined: 10 Dec 2005
Posts: 371
Location: roma

PostPosted: Fri Dec 30, 2005 12:03 pm    Post subject: Reply with quote

va bene ora cerco nel kernel e un po in giro
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Fri Dec 30, 2005 12:08 pm    Post subject: Reply with quote

Ferdinando wrote:
Code:
Prompt: Low Performance USB Block driver
[...]
Location:
   -> Device Drivers
      -> Block devices

Per trovarlo nel kernel il percorso l'avevo postato prima.

Ciao
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
ercoppa
Guru
Guru


Joined: 10 Dec 2005
Posts: 371
Location: roma

PostPosted: Sat Dec 31, 2005 2:08 pm    Post subject: Reply with quote

Ok ora me la vede come sda1, le prestazioni sono leggermente superiore (da quanto dice hdparm -tT) ma alla fine farò delle prove con time e vedrò. grazie per l'aiuto
Back to top
View user's profile Send private message
Ferdinando
Veteran
Veteran


Joined: 25 Nov 2003
Posts: 1027
Location: Gaeta (LT) - Italy

PostPosted: Sun Jan 01, 2006 11:23 am    Post subject: Reply with quote

ercoppa wrote:
alla fine farò delle prove con time e vedrò

In tal caso ti conviene montare la penna con l'opzione sync di mount, altrimenti è probabile che il processo di copia termini prima del completamento (la copia effettiva dovrebbe essere di default posticipata ai momenti di inattività del disco o allo smontaggio).

Ciao
_________________
La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum