pense-bête de bruno sanchiz

Accueil > Linux > en cas de problème > clé usb inaccessible

clé usb inaccessible

Publié le 29 août 2017, dernière mise-à-jour le 12 avril 2024, 12 visites, visites totales.

  • ouvrir un terminal root
  • repérer le nom de la clé usb du type /dev/sde

messages

dmesg |grep -i "write protect is on"
solution 1 :
hdparm -r0 /dev/sdz

solution 2 :

sudo umount /dev/sdz1
sudo hdparm -r0 /dev/sdz
sudo mkdir /media/aa
sudo mount -o uid=1000 /dev/sdz1 /media/aa
sudo hdparm -r0 /dev/sdz1
sudo mount -o remount,rw /dev/sdz1

sudo mkfs -t vfat /dev/sdz1

gparted

Gparted ne l'a reconnaît pas..

lsusb

Bus 004 Device 010: ID 058f:1234 Alcor Micro Corp. Flash Drive

fdisk -l /dev/sde

fdisk: impossible d'ouvrir /dev/sde: Aucun médium trouvé

ls -hal /dev/sde

brw-rw---- 1 root disk 8, 64 août  29 15:42 /dev/sde

stat /dev/sde

  Fichier : /dev/sde
   Taille : 0         	Blocs : 0          Blocs d'E/S : 4096   fichier spécial de bloc
Périphérique : 6h/6d	Inœud : 971500      Liens : 1     Type de périph. : 8,40
Accès : (0660/brw-rw----)  UID : (    0/    root)   GID : (    6/    disk)
 Accès : 2017-08-29 15:42:42.566662897 +0200
Modif. : 2017-08-29 15:42:42.566662897 +0200
Changt : 2017-08-29 15:42:42.566662897 +0200
  Créé : -

cat /var/log/syslog |tail -n 40

Aug 29 15:42:41 deb8P55A kernel: [14108.313231] usb 4-1: new high-speed USB device number 10 using ehci-pci
Aug 29 15:42:41 deb8P55A kernel: [14108.639452] usb 4-1: New USB device found, idVendor=058f, idProduct=1234
Aug 29 15:42:41 deb8P55A kernel: [14108.639456] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Aug 29 15:42:41 deb8P55A kernel: [14108.639459] usb 4-1: Product: Mass Storage Device
Aug 29 15:42:41 deb8P55A kernel: [14108.639461] usb 4-1: Manufacturer: Alcor Micro
Aug 29 15:42:41 deb8P55A kernel: [14108.640016] usb-storage 4-1:1.0: USB Mass Storage device detected
Aug 29 15:42:41 deb8P55A kernel: [14108.640378] scsi host18: usb-storage 4-1:1.0
Aug 29 15:42:41 deb8P55A mtp-probe: checking bus 4, device 10: "/sys/devices/pci0000:00/0000:00:1d.7/usb4/4-1"
Aug 29 15:42:41 deb8P55A mtp-probe: bus: 4, device: 10 was not an MTP device
Aug 29 15:42:42 deb8P55A kernel: [14109.666562] scsi 18:0:0:0: Direct-Access     Generic  USB Flash Disk   7.76 PQ: 0 ANSI: 4
Aug 29 15:42:42 deb8P55A kernel: [14109.667400] sd 18:0:0:0: Attached scsi generic sg5 type 0
Aug 29 15:42:42 deb8P55A kernel: [14109.669247] sd 18:0:0:0: [sde] Attached SCSI removable disk

cat /var/log/messages |tail -n 20

Aug 29 15:42:41 deb8P55A kernel: [14108.313231] usb 4-1: new high-speed USB device number 10 using ehci-pci
Aug 29 15:42:41 deb8P55A kernel: [14108.639452] usb 4-1: New USB device found, idVendor=058f, idProduct=1234
Aug 29 15:42:41 deb8P55A kernel: [14108.639456] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Aug 29 15:42:41 deb8P55A kernel: [14108.639459] usb 4-1: Product: Mass Storage Device
Aug 29 15:42:41 deb8P55A kernel: [14108.639461] usb 4-1: Manufacturer: Alcor Micro
Aug 29 15:42:41 deb8P55A kernel: [14108.640016] usb-storage 4-1:1.0: USB Mass Storage device detected
Aug 29 15:42:41 deb8P55A kernel: [14108.640378] scsi host18: usb-storage 4-1:1.0
Aug 29 15:42:41 deb8P55A mtp-probe: checking bus 4, device 10: "/sys/devices/pci0000:00/0000:00:1d.7/usb4/4-1"
Aug 29 15:42:41 deb8P55A mtp-probe: bus: 4, device: 10 was not an MTP device
Aug 29 15:42:42 deb8P55A kernel: [14109.666562] scsi 18:0:0:0: Direct-Access     Generic  USB Flash Disk   7.76 PQ: 0 ANSI: 4
Aug 29 15:42:42 deb8P55A kernel: [14109.667400] sd 18:0:0:0: Attached scsi generic sg5 type 0
Aug 29 15:42:42 deb8P55A kernel: [14109.669247] sd 18:0:0:0: [sde] Attached SCSI removable disk

dmesg |tail -n 20

[..]
[14108.313231] usb 4-1: new high-speed USB device number 10 using ehci-pci
[14108.639452] usb 4-1: New USB device found, idVendor=058f, idProduct=1234
[14108.639456] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[14108.639459] usb 4-1: Product: Mass Storage Device
[14108.639461] usb 4-1: Manufacturer: Alcor Micro
[14108.640016] usb-storage 4-1:1.0: USB Mass Storage device detected
[14108.640378] scsi host18: usb-storage 4-1:1.0
[14109.666562] scsi 18:0:0:0: Direct-Access     Generic  USB Flash Disk   7.76 PQ: 0 ANSI: 4
[14109.667400] sd 18:0:0:0: Attached scsi generic sg5 type 0
[14109.669247] sd 18:0:0:0: [sde] Attached SCSI removable disk

pas de solution pour l’instant
essayer ChipGenius et CheckuDisk ( sous windows )
voir http://www.01net.com/astuces/comment-reparer-une-cle-usb-protegee-en-ecriture-651391.html

[bruno sanchiz]