A giudicare dall'output dei comandi
Codice: Seleziona tutto
:~$ sudo fdisk -l|tail -10
Disk /dev/sdb: 465,76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: M3 Portable
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x32dd665e
Dispositivo Avvio Start Fine Settori Size Id Tipo
/dev/sdb1 * 64 976768064 976768001 465,8G 7 HPFS/NTFS/exFAT
:~$ A0=`dmesg|grep found|grep idVendor|tail -1`; echo $A0; B1=${A0/*b /""}; B0=${B1/:*/""}; C1=${A0/*r=/""}; C2=${C1/,*t=/":"}; C0=${C2/,*/""}; lsusb -vd "$C0"|head -17; lsusb -tvv |grep $B0 -B2 # Se l'ultima periferica connessa alla porta USB del PC è ancora connessa, ne mostra le caratteristiche principali.
[ 864.358080] usb 4-2: New USB device found, idVendor=04e8, idProduct=61b3, bcdDevice=13.06
Couldn't open device, some information will be missing
Bus 004 Device 004: ID 04e8:61b3 Samsung Electronics Co., Ltd Samsung M3 Portable
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 0 [unknown]
bDeviceSubClass 0 [unknown]
bDeviceProtocol 0
bMaxPacketSize0 9
idVendor 0x04e8 Samsung Electronics Co., Ltd
idProduct 0x61b3 Samsung M3 Portable
bcdDevice 13.06
iManufacturer 1 Samsung M3 Portable
iProduct 2 Samsung M3 Portable
iSerial 3 902E7DF71F000080
bNumConfigurations 1
|__ Port 002: Dev 004, If 0, Class=Mass Storage, Driver=uas, 5000M
ID 04e8:61b3 Samsung Electronics Co., Ltd
/sys/bus/usb/devices/4-2 /dev/bus/usb/004/004
:~$ dmesg | grep sd| tail -45
[ 147.194502] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 147.195510] sd 2:0:0:0: [sdb] 246162672 512-byte logical blocks: (126 GB/117 GiB)
[ 147.195520] sd 2:0:0:0: [sdb] 4096-byte physical blocks
[ 147.195708] sd 2:0:0:0: [sdb] Write Protect is off
[ 147.195714] sd 2:0:0:0: [sdb] Mode Sense: 53 00 00 08
[ 147.196048] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 147.196428] sd 2:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[ 147.196435] sd 2:0:0:0: [sdb] Optimal transfer size 33553920 bytes not a multiple of preferred minimum block size (4096 bytes)
[ 147.198956] sdb: sdb1
[ 147.199249] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 151.662507] ntfs3: sdb1: ino=27, Correct links count -> 2.
[ 151.662674] ntfs3: sdb1: ino=28, Correct links count -> 2.
[ 151.662821] ntfs3: sdb1: ino=29, Correct links count -> 2.
[ 151.662935] ntfs3: sdb1: ino=2a, Correct links count -> 2.
[ 151.663043] ntfs3: sdb1: ino=2b, Correct links count -> 2.
[ 151.663160] ntfs3: sdb1: ino=2c, Correct links count -> 2.
[ 151.663270] ntfs3: sdb1: ino=2d, Correct links count -> 2.
[ 151.663392] ntfs3: sdb1: ino=2e, Correct links count -> 2.
[ 151.663507] ntfs3: sdb1: ino=2f, Correct links count -> 2.
[ 151.663625] ntfs3: sdb1: ino=30, Correct links count -> 2.
[ 196.308203] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 196.428132] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 260.907478] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 260.937170] sd 2:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 260.937347] sd 2:0:0:0: [sdb] Write Protect is off
[ 260.937353] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 260.937563] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 260.937892] sd 2:0:0:0: [sdb] Preferred minimum I/O size 512 bytes
[ 260.937899] sd 2:0:0:0: [sdb] Optimal transfer size 33553920 bytes
[ 260.995963] sdb: sdb1 sdb2 < sdb5 sdb6 sdb7 >
[ 260.996915] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 344.930993] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 345.051036] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 864.370136] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 866.315248] sd 2:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 866.315272] sd 2:0:0:0: [sdb] 4096-byte physical blocks
[ 866.315531] sd 2:0:0:0: [sdb] Write Protect is off
[ 866.315543] sd 2:0:0:0: [sdb] Mode Sense: 53 00 00 08
[ 866.316031] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 866.316509] sd 2:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[ 866.316524] sd 2:0:0:0: [sdb] Optimal transfer size 33553920 bytes not a multiple of preferred minimum block size (4096 bytes)
[ 866.319432] sdb: sdb1
[ 866.319855] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 866.881056] ntfs3: sdb1: It is recommened to use chkdsk.
[ 866.949896] ntfs3: sdb1: volume is dirty and "force" flag is not set!
:~$Volendo ripristinare il file-system tramite l'apposita partizione presente in Lubuntu 22.4, ho aperto KDE Partition Manager, ho selezionato la partizione sdb1 ed ho selezionato
[Partizione]>[Verifica] + [Applica]
e mi è apparso il seguente messaggio di errore:
Codice: Seleziona tutto
Controlla e ripara la partizione «/dev/sdb1» (465,76 GiB,ntfs)
Operazione: Controlla il file system nella partizione «/dev/sdb1»
Comando: ntfsresize --no-progress-bar --info --force --verbose /dev/sdb1
Controlla il file system nella partizione «/dev/sdb1»: Errore
Controlla e ripara la partizione «/dev/sdb1» (465,76 GiB,ntfs): ErroreCodice: Seleziona tutto
:~$ sudo fsck -c /dev/sdb1
[sudo] password di lubuntu24l4:
fsck da util-linux 2.39.3
:~$ sudo dosfsck -a -v /dev/sdb1
[sudo] password di lubuntu24l4:
fsck.fat 4.2 (2021-01-31)
Currently, only 1 or 2 FATs are supported, not 0.
:~$ Attendo suggerimenti per ripristinare il file-system della memoria USB.
Saluto e ringrazio chi parteciperà alla discussione.


