Newsgroup: it.comp.os.linux.iniziare
Titolo: Aiuto: usb storage

Salve ragazzi!
Mi e' arrivato sta mattina un lettore MP3 che funziona con le compact
flash, le schedine di memoria utilizzate da molte macchine digitali.
Lo provo subito con linux ma la sorpresa non è lieta: non riesco a
montare il filesystem. 
Uso Mandrake 10.0 comunity con il kernel 2.6.3-4mdk.
Per montare altri dispositivi usbstorage tipo chiavette o anche la
macchina digitale e' sufficente effetturae il collegamento col cavo usb;
poi hotplug carica i moduli necessari e sul desktop appare il collegamento
ad una nuova unita e tutto funziona. 
Con il lettore mp3 i moduli vengono caricati, ma poi non appare nulla sul
desktop.
Ho provato anche a montare a mano /dev/sda1 ma non esista nemmeno il file
in /dev.
Vi incollo un pezzetto di log del kernel:
Jun  7 13:34:33 Cooper kernel: usb 1-2: new full speed USB device using address 2
Jun  7 13:34:34 Cooper kernel: Initializing USB Mass Storage driver...
Jun  7 13:34:34 Cooper kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jun  7 13:37:46 Cooper kernel: usb 1-2: USB disconnect, address 2
Jun  7 14:28:31 Cooper kernel: bootsplash 3.1.3-2003/11/14: looking for picture.... silentjpeg size 14856 bytes, found (800x600, 14808 bytes, v3).
Jun  7 14:28:31 Cooper kernel: bootsplash: status on console 0 changed to on
Jun  7 14:28:37 Cooper kernel: Kernel logging (proc) stopped.
Jun  7 14:28:37 Cooper kernel: Kernel log daemon terminating.
Jun  7 15:07:18 Cooper kernel: klogd 1.4.1, log source = /proc/kmsg started.
Jun  7 15:07:18 Cooper kernel: Inspecting /boot/System.map-2.6.3-4mdk
Jun  7 15:07:19 Cooper kernel: Loaded 29308 symbols from /boot/System.map-2.6.3-4mdk.
Jun  7 15:07:19 Cooper kernel: Symbols match kernel version 2.6.3.
Jun  7 15:07:19 Cooper kernel: No module symbols loaded - kernel modules not enabled.
Jun  7 15:07:19 Cooper kernel: sbfs: usb_submit_urb returned -90
Jun  7 15:07:19 Cooper kernel: usbfs: usb_submit_urb returned -90
Jun  7 15:07:19 Cooper last message repeated 3444 times
Passando a win:
Su win, al contrario degli altri dispositivi che funzionano appena
inseriti nella porta usb, ho dovuto installare i "driver" dal dischetto.
Ho messo tra parentesi perche' non si tratta di veri e propri driver: e'
un file di testo fatto cosi': 
[root@cooper WINDOWS XP]# more usbstor.inf
[Version]
Signature="$CHICAGO$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
provider=%MSFT%
LayoutFile=LAYOUT.INF
DriverVer=11/14/1999,5.00.2183.1
[ControlFlags]
ExcludeFromSelect = *
[Manufacturer]
%MfgName%=Microsoft
[Microsoft]
%USB\VID_03EE&PID_0000.DeviceDesc%=USBSTOR_CBI,  USB\VID_03EE&PID_0000
%USB\VID_03EE&PID_6901.DeviceDesc%=USBSTOR_CBI,  USB\VID_03EE&PID_6901
%USB\VID_03F0&PID_0107.DeviceDesc%=USBSTOR_BULK, USB\VID_03F0&PID_0107
%USB\VID_0409&PID_002C.DeviceDesc%=USBSTOR_BULK, USB\VID_0409&PID_002C
%USB\VID_04E6&PID_0001.DeviceDesc%=USBSTOR_CB,   USB\VID_04E6&PID_0001
%USB\VID_04E6&PID_0101.DeviceDesc%=USBSTOR_BULK, USB\VID_04E6&PID_0101
%USB\VID_057B&PID_0000.DeviceDesc%=USBSTOR_CBI,  USB\VID_057B&PID_0000
%USB\VID_059B&PID_0001.DeviceDesc%=USBSTOR_BULK, USB\VID_059B&PID_0001
%USB\VID_059B&PID_0030.DeviceDesc%=USBSTOR_BULK, USB\VID_059B&PID_0030
%USB\VID_059B&PID_0031.DeviceDesc%=USBSTOR_BULK, USB\VID_059B&PID_0031
%USB\VID_059F&PID_A601.DeviceDesc%=USBSTOR_CB,   USB\VID_059F&PID_A601
%USB\VID_0644&PID_0000.DeviceDesc%=USBSTOR_CBI,  USB\VID_0644&PID_0000
%USB\VID_0693&PID_0002.DeviceDesc%=USBSTOR_BULK, USB\VID_0693&PID_0002
%USB\VID_0693&PID_0003.DeviceDesc%=USBSTOR_BULK, USB\VID_0693&PID_0003
%USB\VID_0718&PID_0002.DeviceDesc%=USBSTOR_BULK, USB\VID_0718&PID_0002
%USB\VID_0781&PID_0001.DeviceDesc%=USBSTOR_CB,   USB\VID_0781&PID_0001
%USB\VID_090A&PID_1100.DeviceDesc%=USBSTOR_CB,   USB\VID_090A&PID_1100
%GenericBulkOnly.DeviceDesc%=USBSTOR_BULK, USB\Class_08&SubClass_02&Prot_50
%GenericBulkOnly.DeviceDesc%=USBSTOR_BULK, USB\Class_08&SubClass_05&Prot_50
%GenericBulkOnly.DeviceDesc%=USBSTOR_BULK, USB\Class_08&SubClass_06&Prot_50
[PreCopySection]
HKR,,NoSetupUI,,1
[DestinationDirs]
USBSTOR.CopyList = 10, system32\drivers
NTMAP.CopyList = 10, system32\drivers
; Windows 98+ Install Sections
;
[USBSTOR_CBI]
CopyFiles=USBSTOR.CopyList, NTMAP.CopyList
AddReg=USBSTOR.AddReg, USBSTOR_CBI.AddReg
[USBSTOR_CB]
CopyFiles=USBSTOR.CopyList, NTMAP.CopyList
AddReg=USBSTOR.AddReg, USBSTOR_CB.AddReg
[USBSTOR_BULK]
CopyFiles=USBSTOR.CopyList, NTMAP.CopyList
AddReg=USBSTOR.AddReg, USBSTOR_BULK.AddReg
; Windows 2000 Install Sections
;
[USBSTOR_CBI.NT]
CopyFiles=USBSTOR.CopyList
AddReg=USBSTOR_CBI.AddReg
[USBSTOR_CB.NT]
CopyFiles=USBSTOR.CopyList
AddReg=USBSTOR_CB.AddReg
[USBSTOR_BULK.NT]
CopyFiles=USBSTOR.CopyList
AddReg=USBSTOR_BULK.AddReg
; Windows 98+ Registry Section
;
[USBSTOR.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,USBSTOR.SYS
; Windows 98+ & Windows 2000 Registry Sections
;
[USBSTOR_CBI.AddReg]
HKR,,DriverFlags,0x00010001,0x00000002
[USBSTOR_CB.AddReg]
HKR,,DriverFlags,0x00010001,0x00000003
[USBSTOR_BULK.AddReg]
HKR,,DriverFlags,0x00010001,0x00000001
; Windows 98+ HW Install Sections
;
[USBSTOR_CBI.HW]
AddReg=USBSTOR.HW.AddReg
[USBSTOR_CB.HW]
AddReg=USBSTOR.HW.AddReg
[USBSTOR_BULK.HW]
AddReg=USBSTOR.HW.AddReg
[USBSTOR.HW.AddReg]
HKR,,upperfilters,0,"NTMAP.SYS"
; Windows 2000 Service Install Sections
;
[USBSTOR_CBI.NT.Services]
Addservice = USBSTOR, 0x00000002, USBSTOR.AddService
[USBSTOR_CB.NT.Services]
Addservice = USBSTOR, 0x00000002, USBSTOR.AddService
[USBSTOR_BULK.NT.Services]
Addservice = USBSTOR, 0x00000002, USBSTOR.AddService
[USBSTOR.AddService]
DisplayName    = %USBSTOR.SvcDesc%
ServiceType    = 1
StartType      = 3
ErrorControl   = 1
ServiceBinary  = %12%\USBSTOR.SYS
[USBSTOR.CopyList]
USBSTOR.SYS
[NTMAP.CopyList]
NTMAP.SYS
[Strings]
MSFT="Microsoft"
MfgName="Microsoft"
USB\VID_03EE&PID_0000.DeviceDesc = "Mitsumi USB CD-R/RW Drive"
USB\VID_03EE&PID_6901.DeviceDesc = "Mitsumi USB Floppy"
USB\VID_03F0&PID_0107.DeviceDesc = "HP USB CD-Writer Plus"
USB\VID_0409&PID_002C.DeviceDesc = "NEC Clik!-USB Drive"
USB\VID_04E6&PID_0001.DeviceDesc = "USB ATAPI Storage Device"
USB\VID_04E6&PID_0101.DeviceDesc = "USB ATAPI Storage Device"
USB\VID_057B&PID_0000.DeviceDesc = "Y-E Data USB Floppy"
USB\VID_059B&PID_0001.DeviceDesc = "Iomega USB Zip 100"
USB\VID_059B&PID_0030.DeviceDesc = "Iomega USB Zip 250"
USB\VID_059B&PID_0031.DeviceDesc = "Iomega USB Zip 100"
USB\VID_059F&PID_A601.DeviceDesc = "LaCie USB Hard Drive"
USB\VID_0644&PID_0000.DeviceDesc = "TEAC USB Floppy"
USB\VID_0693&PID_0002.DeviceDesc = "USB SmartMedia Reader/Writer"
USB\VID_0693&PID_0003.DeviceDesc = "USB CompactFlash Reader/Writer"
USB\VID_0718&PID_0002.DeviceDesc = "Imation SuperDisk USB 120MB"
USB\VID_0781&PID_0001.DeviceDesc = "SanDisk USB ImageMate"
USB\VID_090A&PID_1100.DeviceDesc = "MP3-USB Device"
GenericBulkOnly.DeviceDesc = "USB Mass Storage Device"
USBSTOR.SvcDesc = "USB Mass Storage Driver"
Mi chiedo se in questo file si celano dei parametri da passare in qualche
modo al kernel o ai moduli per far funzionare il tutto anche sotto linux. 
Grazie a chi ha la pazienza di leggere e il tempo di rispondere!
Michelangelo

 file in /dev.
É lo stesso che mi fa col mio mast-DVD, l' hotplug di scsimon non
riesce ad individuare che tipo di periferica é.

 Grazie a chi ha la pazienza di leggere e il tempo di rispondere!
secondo me ti conviene stabilire come si chiama
il tuo lettore mp3, ad esempio dando: 
lsusb -t 
poi vai a farti una ricerca su internet per vedere 
se qualcuno ha già risolto. 
per il nome intendo quello 'vero', guarda /usr/share/usb.ids 
per capire di cosa sto parlando.
	f.