Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 16/06/2019, à 16:11

Ekel

[Résolu] Clef USB passée subitement en lecture seule uniquement.

Bonjour,

Je ne peux pas dire quand, ni comment, ni pourquoi... cette clef USB servait uniquement de support pour la lecture de musiques dans la voiture. Aucune donnée importante donc.

J'ai lu ce fil avant de créer le mien : https://forum.kubuntu-fr.org/viewtopic.php?id=2041056
Comme pour son auteur, ma clef ne peut plus être formatée sous aucun système d'exploitation.
Je n'ai pas le souvenir d'avoir "mal débranché" cette clef sous un système ou un autre.

Je n'ai que peu d'espoir de la récupérer, mais qui sait.

Je fournis donc les résulatst des manipulations proposées moko138 et geole dans le fil pré-cité.

La commande

mount -l | tail -5

donne

/dev/sdc1 on /home4 type ext4 (rw,relatime) [WD FlightGear]
/dev/sdd1 on /home2 type ext4 (rw,relatime) [Maxtor]
/dev/sda6 on /home type ext4 (rw,relatime,stripe=32738)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1229464k,mode=700,uid=1000,gid=1000)
/dev/sde1 on /media/ekel/KINGSTON type vfat (ro,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) [KINGSTON]

La commande

sudo lsblk -o name,fstype,label,size,mountpoint | grep -v loop

donne

[sudo] Mot de passe de ekel : 
NAME   FSTYPE LABEL           SIZE MOUNTPOINT
sda                         465,8G 
├─sda1 swap                   953M [SWAP]
├─sda2                          1K 
├─sda5 ext4                 185,4G /
└─sda6 ext4                 279,4G /home
sdb                         149,1G 
└─sdb1 ext4                 149,1G /home3
sdc                         149,1G 
└─sdc1 ext4   WD FlightGear   149G /home4
sdd                         189,9G 
└─sdd1 ext4   Maxtor        189,9G /home2
sde                           7,3G 
└─sde1 vfat   KINGSTON        7,3G /media/ekel/KINGSTON
sr0                          1024M 
sr1                          1024M 

La commande

 dmesg | grep -i usb | tail -25

donne

[    2.616037] usb 4-5: new full-speed USB device number 2 using ohci-pci
[    2.817139] usb 4-5: New USB device found, idVendor=046d, idProduct=c52b, bcdDevice=12.03
[    2.817141] usb 4-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.817142] usb 4-5: Product: USB Receiver
[    2.817143] usb 4-5: Manufacturer: Logitech
[    2.836668] logitech-djreceiver 0003:046D:C52B.0004: hiddev1,hidraw1: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:12.0-5/input2
[    2.959568] input: Logitech Unifying Device. Wireless PID:4004 Keyboard as /devices/pci0000:00/0000:00:12.0/usb4/4-5/4-5:1.2/0003:046D:C52B.0004/0003:046D:4004.0005/input/input6
[    2.959647] input: Logitech Unifying Device. Wireless PID:4004 Consumer Control as /devices/pci0000:00/0000:00:12.0/usb4/4-5/4-5:1.2/0003:046D:C52B.0004/0003:046D:4004.0005/input/input7
[    2.959690] input: Logitech Unifying Device. Wireless PID:4004 System Control as /devices/pci0000:00/0000:00:12.0/usb4/4-5/4-5:1.2/0003:046D:C52B.0004/0003:046D:4004.0005/input/input8
[    2.959736] hid-generic 0003:046D:4004.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:4004] on usb-0000:00:12.0-5:1
[    3.147255] input: Logitech K360 as /devices/pci0000:00/0000:00:12.0/usb4/4-5/4-5:1.2/0003:046D:C52B.0004/0003:046D:4004.0005/input/input12
[    3.147327] logitech-hidpp-device 0003:046D:4004.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech K360] on usb-0000:00:12.0-5:1
[   15.239047] input: sonixj as /devices/pci0000:00/0000:00:05.0/0000:02:00.0/usb8/8-2/input/input22
[   15.239184] usbcore: registered new interface driver sonixj
[   16.102153] usbcore: registered new interface driver snd-usb-audio
[ 2969.478829] usb 3-1: new high-speed USB device number 3 using ehci-pci
[ 2969.644251] usb 3-1: New USB device found, idVendor=0951, idProduct=1665, bcdDevice= 1.00
[ 2969.644255] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2969.644257] usb 3-1: Product: DataTraveler 2.0
[ 2969.644258] usb 3-1: Manufacturer: Kingston
[ 2969.644259] usb 3-1: SerialNumber: 0018F3C1E35FBE8149060656
[ 2969.680297] usb-storage 3-1:1.0: USB Mass Storage device detected
[ 2969.680482] scsi host10: usb-storage 3-1:1.0
[ 2969.680613] usbcore: registered new interface driver usb-storage
[ 2969.682556] usbcore: registered new interface driver uas

La commande

 sudo blkid -p /dev/sd? ; sudo lsblk -o name,fstype,label,size,mountpoint | grep -Ev "loop|sda"; echo; ls -l /dev/disk/by-id | grep -Ev "sda|Reader" | tr -s " " | awk '{print $9,$11}' | sort -k2 | column -s" " -t

donne

Reader" | tr -s " " | awk '{print $9,$11}' | sort -k2 | column -s" " -t
/dev/sda: PTUUID="0009532f" PTTYPE="dos"
/dev/sdb: PTUUID="b6a2401d" PTTYPE="dos"
/dev/sdc: PTUUID="a1965110" PTTYPE="dos"
/dev/sdd: PTUUID="f8b1f8b1" PTTYPE="dos"
/dev/sde: PTUUID="96d3b788" PTTYPE="dos"
NAME   FSTYPE LABEL           SIZE MOUNTPOINT
sdb                         149,1G 
└─sdb1 ext4                 149,1G /home3
sdc                         149,1G 
└─sdc1 ext4   WD FlightGear   149G /home4
sdd                         189,9G 
└─sdd1 ext4   Maxtor        189,9G /home2
sde                           7,3G 
└─sde1 vfat   KINGSTON        7,3G /media/ekel/KINGSTON
sr0                          1024M 
sr1                          1024M 

ata-WDC_WD1600AAJS-00B4A0_WD-WMAT22547657                         ../../sdb
wwn-0x50014ee0ab90b64b                                            ../../sdb
ata-WDC_WD1600AAJS-00B4A0_WD-WMAT22547657-part1                   ../../sdb1
wwn-0x50014ee0ab90b64b-part1                                      ../../sdb1
ata-WDC_WD1600BB-55GUC0_WD-WCAL94278907                           ../../sdc
ata-WDC_WD1600BB-55GUC0_WD-WCAL94278907-part1                     ../../sdc1
ata-Maxtor_6L200P0_L41GF6BH                                       ../../sdd
ata-Maxtor_6L200P0_L41GF6BH-part1                                 ../../sdd1
usb-Kingston_DataTraveler_2.0_0018F3C1E35FBE8149060656-0:0        ../../sde
usb-Kingston_DataTraveler_2.0_0018F3C1E35FBE8149060656-0:0-part1  ../../sde1
ata-Optiarc_DVD_RW_AD-7280S                                       ../../sr1

La commande

 tail -n +7 /etc/fstab

donne

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdc5 during installation
UUID=39787500-ef14-4f0a-bc28-91f728673e05 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sdc6 during installation
UUID=08ab5ef5-8204-4ded-920a-6337bcec9da6 /home           ext4    defaults        0       2
# /home2 was on /dev/sdb1 during installation
UUID=0ef8dc09-c2d0-4a13-8c5e-c8a613e012e4 /home2          ext4    defaults        0       2
# /home3 was on /dev/sdd1 during installation
UUID=f7436ff4-1c17-4c3c-bf07-d860500aae68 /home3          ext4    defaults        0       2
# /home4 was on /dev/sda1 during installation
UUID=c276e3a5-0836-421b-b4b4-22440158b138 /home4          ext4    defaults        0       2
# swap was on /dev/sdc1 during installation
UUID=70e2e438-9917-4f2b-af99-bbb29df0d887 none            swap    sw              0       0
# mon disuqe freebox
#//192.168.2.254/Disque\040dur /media/freebox cifs _netdev,rw,users,iocharset=utf8,uid=1000,sec=none,file_mode=0777,dir_mode=0777, vers=1.0 0 0

//mafreebox.freebox.fr/Disque\040dur /media/freebox cifs _netdev,rw,users,iocharset=utf8,uid=1000,sec=none,file_mode=0777,dir_mode=0777, vers=1.0 0 0

La commande

 sudo umount -v /dev/sde ; sudo mkdir -v /tmp/C ; echo; sudo mount -v -t auto -o rw /dev/sde  /tmp/C ; echo; mount -l | tail -1; echo; dmesg | grep -i usb | tail -18

donne

umount: /dev/sde : non monté.
mkdir: création du répertoire '/tmp/C'

mount: /tmp/C : /dev/sde déjà monté ou point de montage actif.

/dev/sde1 on /media/ekel/KINGSTON type vfat (ro,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) [KINGSTON]

[    2.959647] input: Logitech Unifying Device. Wireless PID:4004 Consumer Control as /devices/pci0000:00/0000:00:12.0/usb4/4-5/4-5:1.2/0003:046D:C52B.0004/0003:046D:4004.0005/input/input7
[    2.959690] input: Logitech Unifying Device. Wireless PID:4004 System Control as /devices/pci0000:00/0000:00:12.0/usb4/4-5/4-5:1.2/0003:046D:C52B.0004/0003:046D:4004.0005/input/input8
[    2.959736] hid-generic 0003:046D:4004.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:4004] on usb-0000:00:12.0-5:1
[    3.147255] input: Logitech K360 as /devices/pci0000:00/0000:00:12.0/usb4/4-5/4-5:1.2/0003:046D:C52B.0004/0003:046D:4004.0005/input/input12
[    3.147327] logitech-hidpp-device 0003:046D:4004.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech K360] on usb-0000:00:12.0-5:1
[   15.239047] input: sonixj as /devices/pci0000:00/0000:00:05.0/0000:02:00.0/usb8/8-2/input/input22
[   15.239184] usbcore: registered new interface driver sonixj
[   16.102153] usbcore: registered new interface driver snd-usb-audio
[ 2969.478829] usb 3-1: new high-speed USB device number 3 using ehci-pci
[ 2969.644251] usb 3-1: New USB device found, idVendor=0951, idProduct=1665, bcdDevice= 1.00
[ 2969.644255] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2969.644257] usb 3-1: Product: DataTraveler 2.0
[ 2969.644258] usb 3-1: Manufacturer: Kingston
[ 2969.644259] usb 3-1: SerialNumber: 0018F3C1E35FBE8149060656
[ 2969.680297] usb-storage 3-1:1.0: USB Mass Storage device detected
[ 2969.680482] scsi host10: usb-storage 3-1:1.0
[ 2969.680613] usbcore: registered new interface driver usb-storage
[ 2969.682556] usbcore: registered new interface driver uas
ekel@KUbuntu:~$ sudo dd if=/dev/sdc   count=1    2>/dev/null | hexdump -C
00000000  33 c0 8e d0 bc 00 7c fb  50 07 50 1f fc be 1b 7c  |3.....|.P.P....||
00000010  bf 1b 06 50 57 b9 e5 01  f3 a4 cb bd be 07 b1 04  |...PW...........|
00000020  38 6e 00 7c 09 75 13 83  c5 10 e2 f4 cd 18 8b f5  |8n.|.u..........|
00000030  83 c6 10 49 74 19 38 2c  74 f6 a0 b5 07 b4 07 8b  |...It.8,t.......|
00000040  f0 ac 3c 00 74 fc bb 07  00 b4 0e cd 10 eb f2 88  |..<.t...........|
00000050  4e 10 e8 46 00 73 2a fe  46 10 80 7e 04 0b 74 0b  |N..F.s*.F..~..t.|
00000060  80 7e 04 0c 74 05 a0 b6  07 75 d2 80 46 02 06 83  |.~..t....u..F...|
00000070  46 08 06 83 56 0a 00 e8  21 00 73 05 a0 b6 07 eb  |F...V...!.s.....|
00000080  bc 81 3e fe 7d 55 aa 74  0b 80 7e 10 00 74 c8 a0  |..>.}U.t..~..t..|
00000090  b7 07 eb a9 8b fc 1e 57  8b f5 cb bf 05 00 8a 56  |.......W.......V|
000000a0  00 b4 08 cd 13 72 23 8a  c1 24 3f 98 8a de 8a fc  |.....r#..$?.....|
000000b0  43 f7 e3 8b d1 86 d6 b1  06 d2 ee 42 f7 e2 39 56  |C..........B..9V|
000000c0  0a 77 23 72 05 39 46 08  73 1c b8 01 02 bb 00 7c  |.w#r.9F.s......||
000000d0  8b 4e 02 8b 56 00 cd 13  73 51 4f 74 4e 32 e4 8a  |.N..V...sQOtN2..|
000000e0  56 00 cd 13 eb e4 8a 56  00 60 bb aa 55 b4 41 cd  |V......V.`..U.A.|
000000f0  13 72 36 81 fb 55 aa 75  30 f6 c1 01 74 2b 61 60  |.r6..U.u0...t+a`|
00000100  6a 00 6a 00 ff 76 0a ff  76 08 6a 00 68 00 7c 6a  |j.j..v..v.j.h.|j|
00000110  01 6a 10 b4 42 8b f4 cd  13 61 61 73 0e 4f 74 0b  |.j..B....aas.Ot.|
00000120  32 e4 8a 56 00 cd 13 eb  d6 61 f9 c3 54 61 62 6c  |2..V.....a..Tabl|
00000130  65 20 64 65 20 70 61 72  74 69 74 69 6f 6e 20 6e  |e de partition n|
00000140  6f 6e 20 76 61 6c 69 64  65 00 45 72 72 65 75 72  |on valide.Erreur|
00000150  20 6c 6f 72 73 20 64 75  20 63 68 61 72 67 65 6d  | lors du chargem|
00000160  65 6e 74 20 64 75 20 73  79 73 74 8a 6d 65 20 64  |ent du syst.me d|
00000170  27 65 78 70 6c 6f 69 74  61 74 69 00 53 79 73 74  |'exploitati.Syst|
00000180  8a 6d 65 20 64 27 65 78  70 6c 6f 69 74 61 74 69  |.me d'exploitati|
00000190  6f 6e 20 61 62 73 65 6e  74 00 00 00 00 00 00 00  |on absent.......|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001b0  00 00 00 00 00 2c 4a 7c  10 51 96 a1 00 00 00 20  |.....,J|.Q..... |
000001c0  21 00 83 fe ff ff 00 08  00 00 00 80 a1 12 00 00  |!...............|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200

J'attends vos commentaires, suggestions ou questions.

Cordialement.

Dernière modification par Ekel (Le 01/11/2020, à 06:54)


Ekel
---
Jammy Jellyfish - KUbuntu Utilisateur n°16275
AMD Ryzen 5 5600G  | B550 GAMING X V2 | 16 Go | 22" + 22"

Hors ligne

#2 Le 16/06/2019, à 18:18

Zakhar

Re : [Résolu] Clef USB passée subitement en lecture seule uniquement.

La dernière commande te dit que ta clé est montée.

Ça donne quoi de lister les fichiers qu'elle contient ?

Sinon, ce genre de chose est souvent signe d'une défaillance hardware. Vu que ce n'est que 8G, tu as intérêt sauvegarder ailleurs dès que tu arrive à monter en lecture.


"A computer is like air conditioning: it becomes useless when you open windows." (Linus Torvald)

Hors ligne