Forum Linux.debian/ubuntu Les périphériques USB-Mass Storage plantent lamentablement

Posté par  .
Étiquettes :
0
5
déc.
2004
Bonjour
Je reposte mon probleme avec UMS car vraiment, la, je vais rendre l'ame.
Est ce que quelqu'un sait QUI je dois contacter pour reporter le bug (email d'un développeur du noyau, mailing list,...). Please help c'est tres embetant!!!!

Tous mes périphériques UMS plantent tout le temps quand je tente d'écrire dessus:
j'utilise un disque dur externe en USB 2.0 (80Go), et un lecteur MP3 (NexIA+ 256 Mo).
Ceux ci sont pleinement compatible UMS (Usb Mass Storage) et fonctionnent nickel sous Windows et sur les linux d'autres personnes.
Mais chez moi je ne sais pas pourquoi, ils plantent.
Quand je veux lire tout marche très bien, les débits sont elevés (cause USB 2), etc etc
Mais quand j'écris c'est la que ca plante: Au bout d'un moment le transfert s'arrete et les perif semblent tourner dans le vide.
Je pense que ca vient d'un probleme de buffer. La copie se lance, et au bout d'un moment ca s'arrete. Je doute qu'il s'agisse d'un secteur défectueux vu que fsck corrige tout correctement après et pis, sous 'dows ca devrait aussi planté, hors ca marche parfaitement.

Erreur de /var/log/kernel

Oct 22 16:38:52 Gaetan kernel: usb 5-1: new full speed USB device using address 3
Oct 22 16:38:52 Gaetan kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Oct 22 16:38:52 Gaetan kernel: Vendor: FL Model: Nex IA+ Digital Rev: 0001
Oct 22 16:38:52 Gaetan kernel: Type: Direct-Access ANSI SCSI revision: 02
Oct 22 16:38:52 Gaetan kernel: SCSI device sda: 2717908992 512-byte hdwr sectors (1391569 MB)
Oct 22 16:38:52 Gaetan kernel: sda: test WP failed, assume Write Enabled
Oct 22 16:38:52 Gaetan kernel: sda: assuming drive cache: write through
Oct 22 16:38:52 Gaetan kernel: Device not ready. Make sure there is a disc in the drive.

====> keske c que cette erreur device not ready?


Oct 22 16:38:52 Gaetan kernel: /dev/scsi/host2/bus0/target0/lun0: p1
Oct 22 16:38:52 Gaetan kernel: Device not ready. Make sure there is a disc in the drive.
Oct 22 16:38:52 Gaetan kernel: Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Oct 22 16:38:52 Gaetan kernel: Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0, type 0
Oct 22 16:38:52 Gaetan kernel: USB Mass Storage device found at 3
Oct 22 16:38:56 Gaetan kernel: Device not ready. Make sure there is a disc in the drive.

===> a lecture depuis le périf, nickel. Puis copie d'un petit fichier, ok.
Puis écrire d'un dossier de 80 Mo

Oct 22 16:39:28 Gaetan last message repeated 40 times
Oct 22 16:40:17 Gaetan last message repeated 18 times
Oct 22 16:41:12 Gaetan last message repeated 14 times
Oct 22 16:43:17 Gaetan kernel: usb 5-1: reset full speed USB device using address 3
Oct 22 16:43:17 Gaetan kernel: usb 5-1: device not accepting address 3, error -22
Oct 22 16:43:17 Gaetan kernel: scsi: Device offlined - not ready after error recovery: host 2 channel 0 id 0 lun 0
Oct 22 16:43:17 Gaetan kernel: SCSI error : <2 0 0 0> return code = 0x50000
Oct 22 16:43:17 Gaetan kernel: end_request: I/O error, dev sda, sector 97263
Oct 22 16:43:17 Gaetan kernel: Buffer I/O error on device sda1, logical block 97231
Oct 22 16:43:17 Gaetan kernel: lost page write due to I/O error on sda1
Oct 22 16:43:17 Gaetan kernel: Buffer I/O error on device sda1, logical block 97232
Oct 22 16:43:17 Gaetan kernel: lost page write due to I/O error on sda1
Oct 22 16:43:17 Gaetan kernel: Buffer I/O error on device sda1, logical block 97233
Oct 22 16:43:17 Gaetan kernel: lost page write due to I/O error on sda1
Oct 22 16:43:17 Gaetan kernel: Buffer I/O error on device sda1, logical block 97234
Oct 22 16:43:17 Gaetan kernel: lost page write due to I/O error on sda1
Oct 22 16:43:17 Gaetan kernel: Buffer I/O error on device sda1, logical block 97235
Oct 22 16:43:17 Gaetan kernel: lost page write due to I/O error on sda1
Oct 22 16:43:17 Gaetan kernel: Buffer I/O error on device sda1, logical block 97236
Oct 22 16:43:17 Gaetan kernel: lost page write due to I/O error on sda1
Oct 22 16:43:17 Gaetan kernel: Buffer I/O error on device sda1, logical block 97237
Oct 22 16:43:17 Gaetan kernel: lost page write due to I/O error on sda1
Oct 22 16:43:17 Gaetan kernel: Buffer I/O error on device sda1, logical block 97238
Oct 22 16:43:17 Gaetan kernel: lost page write due to I/O error on sda1
Oct 22 16:43:17 Gaetan kernel: Buffer I/O error on device sda1, logical block 97239
Oct 22 16:43:17 Gaetan kernel: lost page write due to I/O error on sda1
Oct 22 16:43:17 Gaetan kernel: Buffer I/O error on device sda1, logical block 97240
Oct 22 16:43:17 Gaetan kernel: lost page write due to I/O error on sda1
Oct 22 16:43:17 Gaetan kernel: scsi2 (0:0): rejecting I/O to offline device
Oct 22 16:43:17 Gaetan last message repeated 2 times
Oct 22 16:43:17 Gaetan kernel: usb 5-1: USB disconnect, address 3
Oct 22 16:43:17 Gaetan kernel: scsi2 (0:0): rejecting I/O to device being removed
Oct 22 16:43:17 Gaetan last message repeated 118 times
Oct 22 16:43:17 Gaetan kernel: SCSI error: host 2 id 0 lun 0 return code = 4000000
Oct 22 16:43:17 Gaetan kernel: ^ISense class 0, sense error 0, extended sense 0
Oct 22 16:43:17 Gaetan kernel: scsi2 (0:0): rejecting I/O to device being removed
Oct 22 16:43:18 Gaetan last message repeated 746 times
Oct 22 16:43:18 Gaetan kernel: FAT: unable to read inode block for updating (i_pos 1617794)
Oct 22 16:43:18 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:18 Gaetan kernel: FAT: bread(block 167) in fat_access failed
Oct 22 16:43:18 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:18 Gaetan kernel: FAT: bread(block 167) in fat_access failed
Oct 22 16:43:18 Gaetan kernel: usb 5-1: new full speed USB device using address 4
Oct 22 16:43:18 Gaetan kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Oct 22 16:43:18 Gaetan kernel: Vendor: FL Model: Nex IA+ Digital Rev: 0001
Oct 22 16:43:18 Gaetan kernel: Type: Direct-Access ANSI SCSI revision: 02
Oct 22 16:43:18 Gaetan kernel: SCSI device sdb: 2717908992 512-byte hdwr sectors (1391569 MB)
Oct 22 16:43:18 Gaetan kernel: sdb: test WP failed, assume Write Enabled
Oct 22 16:43:18 Gaetan kernel: sdb: assuming drive cache: write through
Oct 22 16:43:18 Gaetan kernel: Device not ready. Make sure there is a disc in the drive.
Oct 22 16:43:18 Gaetan kernel: /dev/scsi/host3/bus0/target0/lun0: p1
Oct 22 16:43:18 Gaetan kernel: Device not ready. Make sure there is a disc in the drive.
Oct 22 16:43:18 Gaetan kernel: Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
Oct 22 16:43:18 Gaetan kernel: Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0, type 0
Oct 22 16:43:18 Gaetan kernel: USB Mass Storage device found at 4
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 487) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 488) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 489) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 490) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 491) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 492) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 493) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 494) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 495) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 496) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:22 Gaetan kernel: FAT: Directory bread(block 497) failed
Oct 22 16:43:22 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device

...

Oct 22 16:43:26 Gaetan kernel: FAT: Directory bread(block 135605) failed
Oct 22 16:43:26 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:26 Gaetan kernel: FAT: Directory bread(block 135606) failed
Oct 22 16:43:42 Gaetan kernel: scsi2 (0:0): rejecting I/O to dead device
Oct 22 16:43:42 Gaetan kernel: FAT: unable to read inode block for updating (i_pos 1617794)
Oct 22 16:43:47 Gaetan kernel: usb-storage: Error in device_reset: invalid state -538528072


Et ca me fait ca avec le NexIA (carte flash dedans), mon disque externe (80 Go en FAT32)
Je pense pas que ca vienne de la FAT32 vu que j'ai une autre partition sur mon ordi qui est en FAT32 et celle la marche très bien

Niveau matos:
Carte mere GA-7VT600 1394 avec chipset KT600, VT8237 (USB2.0). Athlon 2000+
Noyau: kernel 2.6.8, debian sid
Ca m'avait déja fait des erreurs de ce genre sur une clé usb lorsque je me faisais une LSF sur cette clé avec un noyau 2.4.25
Et ca me faisait aussi le meme probleme sur un autre pc. Donc je pense que ca vient de linux et pas du matos (driver? mauvaise config de qque chose???)

any idée???


Merci beaucoup d'avance!!!
  • # Vous devez entrer un sujet et un commentaire

    Posté par  (site web personnel) . Évalué à 1.

    j ai eu des wesages semblables sous Debian SID avec un noyeau maison 2.6.4 et 2.6.0. C a ete la raison de mon retour au 2.4.21 ... c etait le demon hotplug de debian qui marchait mal.

    Depuis le 2.6.8 ( cette fois pris en pakage debian direct pre compile ), ca marche nikel.

    Il est probable que le 2.4.25 ait herite du gub que j avais sur 2.6.4 .... puisque la branche 2.6 est desormais la branche de test, et que les fonctionalites sont ensuite transferees au 2.4 ...

    Mon conseil : tente un vieux noyeau genre 2.4.18 ( quelques trous de secu, mais assez abouti dans l ensemble ) ... soit en binaire de ta distribe soit maison ...

    Je suis tente de penser que c est ta pile USB qui pete un plomb a cause du UMS ... si tu veut mater mon pb, cherche mes journaux d avril a juin 2004 ...
  • # question con

    Posté par  (site web personnel) . Évalué à 0.

    as tu testé exactement la meme config mais avec du materiel autre ?

    genre :
    une autre meme carte mere avec un autre meme processeur et une autre meme carte graphique

    pour savoir si c pas ta config.

    puis apres tu fais varier les plaisirs sur ta conf pour identifier le truc.

    puis teste aussi la variation de systeme ( mdk, redhat, gentoo, ubuntu*, ... ).

    sinon, teste en USB 1.1 aussi. regarde si il n'y a pas un peripherique qui provoque un reset du bus ou un truc du genre.

    pour faire un bug-report noyau faut un peu tout ca, puis qq fois il suffit ( c'etait classique à une époque ) de changer une constante de latence et de recompiler le noyau pour que cela marche.






    * : je dis ubuntu car le noyau ubuntu que j'ai a un bug aleatoire au power-down que ne me fait pas le noyau debian ( et j'ai la flemme de m'amuser avec l'ACPI, le bouton "power" est plus efficace ) :)
  • # Formatage ?

    Posté par  (site web personnel, Mastodon) . Évalué à 2.

    Moi j'avais eu le même problême avec des cartes compact flash qui n'avait pas été formaté avant utilisation, l'appareil photos pas de problême, winbug non plus mais sur ma machine linux ca passait pas.
    Après l'avoir formaté ca fonctionne sans aucun problême.
  • # moizaussi \o/

    Posté par  . Évalué à 0.

    Il m'arrive la meme chose avec mon ipod, j'ai compilé moi meme mon kernel (un 2.6.9) et jutilise ohci couplé a ehci pour l'usb (2).

    Je vais certainement essayer d'autres kernels, peut etre le precompilé de debian, mais si j'aime pas les kernel precompilés, et on verra si ca marche mieux. (je crois que c'est dans un des journeaux de dhp que jai lu que ca pouvait resoudre des problemes, ou alors dans une des reponses :)

    Enfin bon, peut etre au pire je reviendrais a un 2.4.

    voli voilou, jpense pas avoir aidé, mais je repondrais a ce commentaire si je resous quelquechose.
  • # options mount (fstab)

    Posté par  . Évalué à 1.

    et ben moi sur ma mandrake, quand je laissais le disque etre monte tout seul c'etait super lent aussi.
    du coup je faisais a chaque fois umount /dev/sda1; mount /dev/sda1 /mnt/disk.
    je me suis dit que ca devait etre les options dans le fstab qui allaient pas... mais j'ai pas cherche plus apres.
  • # infos

    Posté par  (site web personnel) . Évalué à 2.

    Est-ce que tu as hal installé ?
    Est-ce que tu as fam installé ?
    Quelles sont tes options de montage ?
    As-tu fait le tour de http://www.debian.org/Bugs/(...) ?

    J'avais des problèmes similaires il y a plusieurs mois mais depuis, plus rien.
    Parfois le périph USB se bloquait en écriture avec la diode allumée.
  • # USB1

    Posté par  . Évalué à 2.

    Puisque tu parles du débit intéressant de l'USB2, je suppose que tes périphériques utilisent le module ehci_hcd (ou son équivalent dans le noyal), qui est justement responsable de la gestion de l'USB2. Or il se trouve que j'ai eu (j'ai toujours) de nombreux problèmes avec ce module sur un 2.6.9 (périphérique qui timeout au démarrage, notamment). Je passe outre en désactivant le-dit EHCI (soit en virant le module, soit en recompilant le noyau sans), ce qui nous ramène à un "bête" UHCI ou OHCI (controlleurs USB1), qui eux marchent sans problème.

    Alors effectivement, c'est moins rapide, mais au moins ça marche ;)

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.