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.

#26 Le 05/05/2023, à 12:58

Geronimo12

Re : formatage clef usb

Qid a écrit :

Ça sent la déclaration de décès si même la table ne veut pas s'écrire... Je n'ai pas tout relu mais le fsck a déjà été tenté ?

merci je ne sais pas ? le fsck ?


MSI GP60 leopard, Ubuntu 22.04.3 LTS Gnome 42.9 processeur Intel Core i5-4210H CPU @2.90Ghz x 4, mémoire vive 7,7 Go, carte graphique intel corporation 4th Gen Core processor integrated graphics controller, Nvidia GTX950M,  avec ssd msata 120 Go

Hors ligne

#27 Le 05/05/2023, à 13:48

Qid

Re : formatage clef usb

Geronimo12 a écrit :
Qid a écrit :

Ça sent la déclaration de décès si même la table ne veut pas s'écrire... Je n'ai pas tout relu mais le fsck a déjà été tenté ?

merci je ne sais pas ? le fsck ?

Je ne fais que lancer une idée : attend de voir si un autre aidant la suit...


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#28 Le 05/05/2023, à 14:03

geole

Re : formatage clef usb

Bonjour
Il arrive quelquefois que la clé ait été abîmée par certains  outils.
Essaie cette commande

sudo dd bs=1M  count=4 status=progress if=/dev/zero  of=/dev/sdc

et si incident d'écriture, tu donnes ce retour

journalctl --no-pager -n 50

On va en profiter pour regarder si elle  s'est déclarée inutilisable en écriture.   Pour cela tu la débranches. Tu attends 30 secondes, tu la rebranches. Tu attends de nouveau 30 secondes et tu redonnes ce retour

journalctl --no-pager -n 50

Ajout
et commande lsblk -fe7 pour savoir si elle est toujours sdc ou devenue sdd

Dernière modification par geole (Le 05/05/2023, à 14:08)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#29 Le 05/05/2023, à 14:53

Geronimo12

Re : formatage clef usb

merci @geole,

voici avant de la débrancher et de la rebrancher :

ixblanco@ixblanco-GP60-2QF:~$ sudo dd bs=1M  count=4 status=progress if=/dev/zero  of=/dev/sdc
[sudo] Mot de passe de ixblanco : 
4+0 enregistrements lus
4+0 enregistrements écrits
4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0333514 s, 126 MB/s
ixblanco@ixblanco-GP60-2QF:~$ journalctl --no-pager -n 50
-- Logs begin at Tue 2023-03-07 19:04:06 CET, end at Fri 2023-05-05 14:44:28 CEST. --
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Sense Key : Data Protect [current] 
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Add. Sense: Write protected
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 00 10 68 00 00 48 00
mai 05 14:44:10 ixblanco-GP60-2QF kernel: print_req_error: critical target error, dev sdc, sector 4200
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Sense Key : Data Protect [current] 
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Add. Sense: Write protected
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 00 10 f0 00 00 30 00
mai 05 14:44:10 ixblanco-GP60-2QF kernel: print_req_error: critical target error, dev sdc, sector 4336
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Sense Key : Data Protect [current] 
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Add. Sense: Write protected
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 00 11 60 00 00 30 00
mai 05 14:44:10 ixblanco-GP60-2QF kernel: print_req_error: critical target error, dev sdc, sector 4448
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Sense Key : Data Protect [current] 
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Add. Sense: Write protected
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 00 11 d0 00 00 30 00
mai 05 14:44:10 ixblanco-GP60-2QF kernel: print_req_error: critical target error, dev sdc, sector 4560
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Sense Key : Data Protect [current] 
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Add. Sense: Write protected
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 00 12 b0 00 00 38 00
mai 05 14:44:10 ixblanco-GP60-2QF kernel: print_req_error: critical target error, dev sdc, sector 4784
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Sense Key : Data Protect [current] 
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Add. Sense: Write protected
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 00 13 20 00 00 38 00
mai 05 14:44:10 ixblanco-GP60-2QF kernel: print_req_error: critical target error, dev sdc, sector 4896
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] Write Protect is on
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] Mode Sense: 03 00 80 00
mai 05 14:44:10 ixblanco-GP60-2QF sudo[21868]: pam_unix(sudo:session): session closed for user root
mai 05 14:44:10 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:11 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:12 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:13 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:14 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:16 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:17 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:18 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:19 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:20 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:21 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:23 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:24 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:25 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:26 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:27 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:44:28 ixblanco-GP60-2QF nextcloud.mdns-publisher[4058]: 2023/05/05 14:44:28 WARNING: interface "enp3s0" has no IP addresses
mai 05 14:44:28 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available

et après débranchage et rebranchage 2 fois en attendant 30 sec :

ixblanco@ixblanco-GP60-2QF:~$ journalctl --no-pager -n 50
-- Logs begin at Tue 2023-03-07 19:04:06 CET, end at Fri 2023-05-05 14:51:52 CEST. --
mai 05 14:51:32 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:33 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:34 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:35 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:36 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:38 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:39 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:40 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:40 ixblanco-GP60-2QF kernel: usb 3-2: new high-speed USB device number 9 using xhci_hcd
mai 05 14:51:40 ixblanco-GP60-2QF kernel: usb 3-2: New USB device found, idVendor=0001, idProduct=7778
mai 05 14:51:40 ixblanco-GP60-2QF kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
mai 05 14:51:40 ixblanco-GP60-2QF kernel: usb 3-2: Product: Mass Storage
mai 05 14:51:40 ixblanco-GP60-2QF kernel: usb 3-2: Manufacturer: Generic
mai 05 14:51:40 ixblanco-GP60-2QF kernel: usb 3-2: SerialNumber: 5DF74FCAF7C6B4F81ADA
mai 05 14:51:40 ixblanco-GP60-2QF kernel: usb-storage 3-2:1.0: USB Mass Storage device detected
mai 05 14:51:40 ixblanco-GP60-2QF kernel: scsi host6: usb-storage 3-2:1.0
mai 05 14:51:40 ixblanco-GP60-2QF mtp-probe[20432]: checking bus 3, device 9: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
mai 05 14:51:40 ixblanco-GP60-2QF mtp-probe[20432]: bus: 3, device: 9 was not an MTP device
mai 05 14:51:41 ixblanco-GP60-2QF systemd-udevd[20431]: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0 0:0' failed with exit code 1.
mai 05 14:51:41 ixblanco-GP60-2QF systemd-udevd[20431]: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0 0:0' failed with exit code 1.
mai 05 14:51:41 ixblanco-GP60-2QF upowerd[1836]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0
mai 05 14:51:41 ixblanco-GP60-2QF systemd-udevd[20431]: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb3/3-2 189:264' failed with exit code 1.
mai 05 14:51:41 ixblanco-GP60-2QF systemd-udevd[20431]: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb3/3-2 189:264' failed with exit code 1.
mai 05 14:51:41 ixblanco-GP60-2QF upowerd[1836]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
mai 05 14:51:41 ixblanco-GP60-2QF kernel: [UFW BLOCK] IN=wlp5s0 OUT= MAC= SRC=fe80:0000:0000:0000:260d:a3c6:7796:1306 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=289233 PROTO=UDP SPT=8612 DPT=8612 LEN=24 
mai 05 14:51:41 ixblanco-GP60-2QF kernel: [UFW BLOCK] IN=wlp5s0 OUT= MAC= SRC=fe80:0000:0000:0000:260d:a3c6:7796:1306 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=152554 PROTO=UDP SPT=8612 DPT=8610 LEN=24 
mai 05 14:51:41 ixblanco-GP60-2QF kernel: [UFW BLOCK] IN=wlp5s0 OUT= MAC= SRC=fe80:0000:0000:0000:260d:a3c6:7796:1306 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=289233 PROTO=UDP SPT=8612 DPT=8612 LEN=24 
mai 05 14:51:41 ixblanco-GP60-2QF kernel: [UFW BLOCK] IN=wlp5s0 OUT= MAC= SRC=fe80:0000:0000:0000:260d:a3c6:7796:1306 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=152554 PROTO=UDP SPT=8612 DPT=8610 LEN=24 
mai 05 14:51:41 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:41 ixblanco-GP60-2QF kernel: scsi 6:0:0:0: Direct-Access     Generic  Flash Disk       8.00 PQ: 0 ANSI: 2
mai 05 14:51:41 ixblanco-GP60-2QF kernel: sd 6:0:0:0: Attached scsi generic sg3 type 0
mai 05 14:51:41 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] 8110080 512-byte logical blocks: (4.15 GB/3.87 GiB)
mai 05 14:51:41 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] Write Protect is off
mai 05 14:51:41 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] Mode Sense: 03 00 00 00
mai 05 14:51:41 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] No Caching mode page found
mai 05 14:51:41 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] Assuming drive cache: write through
mai 05 14:51:41 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] Attached SCSI removable disk
mai 05 14:51:42 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:43 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:45 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:46 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:47 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:48 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:49 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:50 ixblanco-GP60-2QF dbus-daemon[4339]: [session uid=1000 pid=4339] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.198' (uid=1000 pid=21093 comm="/usr/bin/gnome-terminal.real " label="unconfined")
mai 05 14:51:50 ixblanco-GP60-2QF systemd[4239]: Starting GNOME Terminal Server...
mai 05 14:51:50 ixblanco-GP60-2QF dbus-daemon[4339]: [session uid=1000 pid=4339] Successfully activated service 'org.gnome.Terminal'
mai 05 14:51:50 ixblanco-GP60-2QF systemd[4239]: Started GNOME Terminal Server.
mai 05 14:51:50 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available
mai 05 14:51:52 ixblanco-GP60-2QF nextcloud.nextcloud-fixer[1570]: Nextcloud is not installed - only a limited number of commands are available

et l'autre commande :

~$ lsblk -fe7
NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                      
└─sda1 vfat         C23B-8D68                            /media/ixblanco/C23B-8D
sdb                                                      
├─sdb1 vfat         490C-BCB6                            /boot/efi
└─sdb2 ext4         e9b42f62-5ec8-47e6-9753-f2cfac7a40ac /
sdc                                                      
sr0                                                      

MSI GP60 leopard, Ubuntu 22.04.3 LTS Gnome 42.9 processeur Intel Core i5-4210H CPU @2.90Ghz x 4, mémoire vive 7,7 Go, carte graphique intel corporation 4th Gen Core processor integrated graphics controller, Nvidia GTX950M,  avec ssd msata 120 Go

Hors ligne

#30 Le 05/05/2023, à 15:43

geole

Re : formatage clef usb

Au dernier montage, on voit qu'elle est fonctionnelle

mai 05 14:51:41 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] 8110080 512-byte logical blocks: (4.15 GB/3.87 GiB)
mai 05 14:51:41 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] Write Protect is off

Mais on voit qu'elle passe en  interdiction d'écriture..... lorsqu'on en a besoin

-- Logs begin at Tue 2023-03-07 19:04:06 CET, end at Fri 2023-05-05 14:44:28 CEST. --
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Sense Key : Data Protect [current] 
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 Add. Sense: Write protected
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 00 10 68 00 00 48 00
mai 05 14:44:10 ixblanco-GP60-2QF kernel: print_req_error: critical target error, dev sdc, sector 4200
mai 05 14:44:10 ixblanco-GP60-2QF kernel: sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE

Elle a fini sa vie.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#31 Le 09/05/2023, à 12:39

Geronimo12

Re : formatage clef usb

@geole, merci, je n'ai plus qu'à la mettre au recyclage wink


MSI GP60 leopard, Ubuntu 22.04.3 LTS Gnome 42.9 processeur Intel Core i5-4210H CPU @2.90Ghz x 4, mémoire vive 7,7 Go, carte graphique intel corporation 4th Gen Core processor integrated graphics controller, Nvidia GTX950M,  avec ssd msata 120 Go

Hors ligne