[Linuxtrent] Re: usb

  • From: tom <montrellune@xxxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Thu, 16 Sep 2004 09:42:43 -0700 (PDT)

Cosa vuoi che ti dica, grazie
ora funziona tutto perfettamente!

Tom

--- massix@xxxxxxxxx wrote:
Ciao,

  vediamo se riesco a darti una mano .. .. .. ..

  Come prima cosa dovresti verificare se, a livello kernel, hai
    tutti i moduli necessari come segue:

        # lsmod

    i moduli richiesti sono:

        1) sg
        2) usb-storage

  Se caricati correttamente, o gia compilati all'interno del tuo
    kernel, prova il seguente succesivo comando:

        monster:~# cat /proc/scsi/scsi 
        Attached devices: 
        Host: scsi0 Channel: 00 Id: 00 Lun: 00
          Vendor: USB      Model: Flash Disk       Rev: 7.77
          Type:   Direct-Access                    ANSI SCSI revision: 02
        monster:~#

    questo e' il mio caso !

  Come puoi ben vedere, la mia chiavetta USB, viene riconosciuta correttamente !

  Adesso vediamo, come il sistema, rimappa questa nuova risorsa:

    - Cominciamo con un piccolo 'scan':

        monster:~# sg_scan
        /dev/sg0: scsi0 channel=0 id=0 lun=0 [em]  type=0
        monster:~#

        monster:~# sg_inq /dev/sg0
        standard INQUIRY:
          PQual=0, Device type=0, RMB=1, ANSI version=2, [full version=0x02]
          AERC=0, TrmTsk=0, NormACA=0, HiSUP=0, Resp data format=2, SCCS=0
          BQue=0, EncServ=0, MultiP=0, MChngr=0, ACKREQQ=0, Addr16=0
          RelAdr=0, WBus16=0, Sync=0, Linked=0, TranDis=0, CmdQue=0
            length=36 (0x24)
         Vendor identification: USB     
         Product identification: Flash Disk      
         Product revision level: 7.77
         Product serial number: 
        monster:~#

    - proseguiamo con il verificare il link alla device:

        monster:~# sg_map
        /dev/sg0  /dev/sda
        monster:~# 

    - insistiamo ulteriormente:

        monster:~# fdisk -l /dev/sda

        Disk /dev/sda: 262 MB, 262144000 bytes
        17 heads, 32 sectors/track, 941 cylinders
        Units = cylinders of 544 * 512 = 278528 bytes
        
           Device Boot      Start         End      Blocks   Id  System
        /dev/sda1               1         941      255936    b  W95 FAT32
        monster:~#

    - Concludiamo con il 'montarla':

        monster:~# mount -o rw -t vfat /dev/sda1 /local/sda/1

  Questo e' quanto io farei in qtesi casi  .. .. .. .. .. .. ..
  ps. I comandi sopra citati: sg_scan, sg_inq & sg_map, sono a disposizione
      solo installando il seguente packages:

        sg-utils   Utilities for working with generic SCSI devices

  ps2. Quasi me ne dimenticavo  .. .. .. .. ..
       Io uso una Debian 3.1 kernel 2.4.27 / 2.6.6 !!!

A dispo x eventuali chiarimenti
ciao
MaX



_____________________________________________________________
<---o0o--->
Aconsegueix el_teu_email@xxxxxxxxxx gratuÏtament a http://teatre.com
 :-))-:
begin:vcard
n:Massimo;Baccanelli
fn:Baccanelli Massimo
tel;pager:n.d.
tel;cell:+39 335 1331841
tel;fax:+ 39 035 697590
tel;home:n.d.
tel;work:+ 39 035 97532
url:http://anguilla:3333/
org:Sorint S.a.S.;n.d.
adr:;;via Bergamo, n. 15/a;Curno;Bergamo;24035;Italia
version:2.1
email;internet:massix@xxxxxxxxx
title:Senior Consultant
end:vcard

Other related posts: