How to fix sector 0 of a USB flash?

If none of the more specific forums is the right place to ask

How to fix sector 0 of a USB flash?

Postby hack3rcon » 2020-12-06 16:37

Hello,
I have a USB Flash drive and when I plugged it to my PC then nothing mounted and "dmesg" show me:
Code: Select all
[  305.076160] print_req_error: I/O error, dev sdc, sector 0
[  305.076168] Buffer I/O error on dev sdc, logical block 0, async page read
[  305.076187]  sdc: unable to read partition table
...
[  307.104342] print_req_error: I/O error, dev sdc, sector 15124864
[  307.104351] Buffer I/O error on dev sdc, logical block 1890608, async page read

I tried to use "hdparm" to fix this problem:
Code: Select all
$ sudo hdparm -I /dev/sdc

/dev/sdc:
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

ATA device, with non-removable media
Standards:
   Likely used: 1
Configuration:
   Logical      max   current
   cylinders   0   0
   heads      0   0
   sectors/track   0   0
   --
   Logical/Physical Sector size:           512 bytes
   device size with M = 1024*1024:           0 MBytes
   device size with M = 1000*1000:           0 MBytes
   cache/buffer size  = unknown
Capabilities:
   IORDY not likely
   Cannot perform double-word IO
   R/W multiple sector transfer: not supported
   DMA: not supported
   PIO: pio0

I read sector 0 with "hdparm":
Code: Select all
$ sudo hdparm --read-sector 0 /dev/sdc

/dev/sdc:
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
reading sector 0: SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
succeeded
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000

And used "--repair-sector" and "--write-sector" parameters to fix this problem:
Code: Select all
$ sudo hdparm --repair-sector 0 --yes-i-know-what-i-am-doing /dev/sdc

/dev/sdc:
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
re-writing sector 0: SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
succeeded

And:
Code: Select all

$ sudo hdparm --write-sector 0 --yes-i-know-what-i-am-doing /dev/sdc

/dev/sdc:
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
re-writing sector 0: SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
succeeded

But problem not solved and I can see my Flash drive:
Code: Select all
$ sudo cfdisk /dev/sdc
cfdisk: cannot open /dev/sdc: Input/output error

Any idea to solve it?

Thank you.
hack3rcon
 
Posts: 507
Joined: 2015-02-16 09:54

Re: How to fix sector 0 of a USB flash?

Postby p.H » 2020-12-06 19:03

I'm afraid that the flash drive is dead.
Can you read other sectors ?
What does dmesg say after plugging the drive ?
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: How to fix sector 0 of a USB flash?

Postby RU55EL » 2020-12-06 21:28

p.H wrote:I'm afraid that the flash drive is dead.
Can you read other sectors ?
What does dmesg say after plugging the drive ?


hack3rcon wrote:Hello,
I have a USB Flash drive and when I plugged it to my PC then nothing mounted and "dmesg" show me:
Code: Select all
[  305.076160] print_req_error: I/O error, dev sdc, sector 0
[  305.076168] Buffer I/O error on dev sdc, logical block 0, async page read
[  305.076187]  sdc: unable to read partition table
...
[  307.104342] print_req_error: I/O error, dev sdc, sector 15124864
[  307.104351] Buffer I/O error on dev sdc, logical block 1890608, async page read

User avatar
RU55EL
 
Posts: 521
Joined: 2014-04-07 03:42
Location: /home/russel

Re: How to fix sector 0 of a USB flash?

Postby p.H » 2020-12-06 21:56

This output is not complete. Initial messages are missing.
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: How to fix sector 0 of a USB flash?

Postby pendrachken » 2020-12-07 20:44

p.H wrote:Can you read other sectors ?




Well, since the controller thinks the drive size is zero bytes long, and that there are no addressable areas of storage memory at all I'm gonna go out an a limb and say NO.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1384
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: How to fix sector 0 of a USB flash?

Postby p.H » 2020-12-07 21:23

pendrachken wrote:since the controller thinks the drive size is zero bytes long, and that there are no addressable areas of storage memory

How do you know ? From hdparm's output ? I doubt it is relevant. A perfectly working USB flash drive gives me similar output. I think that it just does not support the ATA commands hdparm uses.
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: How to fix sector 0 of a USB flash?

Postby hack3rcon » 2020-12-08 15:39

p.H wrote:I'm afraid that the flash drive is dead.
Can you read other sectors ?
What does dmesg say after plugging the drive ?

The complete output is:
Code: Select all
$ sudo dmesg
[ 6315.214680] usb 2-12: new high-speed USB device number 5 using xhci_hcd
[ 6315.367546] usb 2-12: New USB device found, idVendor=13fe, idProduct=3e00, bcdDevice= 1.00
[ 6315.367552] usb 2-12: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6315.367555] usb 2-12: Product: Silicon-Power8G
[ 6315.367557] usb 2-12: Manufacturer: UFD 2.0
[ 6315.367560] usb 2-12: SerialNumber: 11121555056E6BC1E005642030D
[ 6315.368860] usb-storage 2-12:1.0: USB Mass Storage device detected
[ 6315.369773] scsi host6: usb-storage 2-12:1.0
[ 6316.460458] scsi 6:0:0:0: Direct-Access     UFD 2.0  Silicon-Power8G  PMAP PQ: 0 ANSI: 4
[ 6316.461212] sd 6:0:0:0: Attached scsi generic sg3 type 0
[ 6317.645789] sd 6:0:0:0: [sdc] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
[ 6317.645961] sd 6:0:0:0: [sdc] Write Protect is off
[ 6317.645965] sd 6:0:0:0: [sdc] Mode Sense: 23 00 00 00
[ 6317.646105] sd 6:0:0:0: [sdc] No Caching mode page found
[ 6317.646113] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 6317.774900] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6318.066894] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6318.358946] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6318.650953] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6318.942885] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6319.234892] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6319.384780] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6319.384788] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6319.384792] print_req_error: I/O error, dev sdc, sector 0
[ 6319.384801] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6319.514989] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6319.806922] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6320.098944] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6320.390924] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6320.682925] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6320.974929] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6321.124859] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6321.124866] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6321.124870] print_req_error: I/O error, dev sdc, sector 0
[ 6321.124879] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6321.254960] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6321.546989] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6321.838955] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6322.130894] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6322.426847] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6322.718950] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6322.868886] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6322.868899] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6322.868900] print_req_error: I/O error, dev sdc, sector 0
[ 6322.868904] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6322.994904] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6323.287008] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6323.578972] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6323.870961] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6324.162974] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6324.454960] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6324.604893] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6324.604898] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6324.604899] print_req_error: I/O error, dev sdc, sector 0
[ 6324.604905] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6324.604968] ldm_validate_partition_table(): Disk read failed.
[ 6324.730986] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6325.022949] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6325.314976] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6325.606959] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6325.898950] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6326.190958] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6326.340862] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6326.340869] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6326.340873] print_req_error: I/O error, dev sdc, sector 0
[ 6326.340883] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6326.466846] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6326.758923] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6327.054963] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6327.346980] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6327.638957] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6327.930908] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6328.080841] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6328.080846] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6328.080848] print_req_error: I/O error, dev sdc, sector 0
[ 6328.080855] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6328.206977] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6328.499007] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6328.790973] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6329.082956] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6329.374948] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6329.667031] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6329.817173] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6329.817180] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6329.817184] print_req_error: I/O error, dev sdc, sector 0
[ 6329.817192] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6329.946961] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6330.239004] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6330.531006] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6330.823002] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6331.115009] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6331.407008] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6331.556891] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6331.556898] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6331.556902] print_req_error: I/O error, dev sdc, sector 0
[ 6331.556910] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6331.556965] Dev sdc: unable to read RDB block 0
[ 6331.683004] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6331.975014] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6332.266918] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6332.558973] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6332.851058] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6333.143064] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6333.292888] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6333.292895] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6333.292899] print_req_error: I/O error, dev sdc, sector 0
[ 6333.292907] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6333.423036] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6333.714994] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6334.006998] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6334.299026] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6334.591025] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6334.883037] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6335.033204] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6335.033211] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6335.033215] print_req_error: I/O error, dev sdc, sector 0
[ 6335.033224] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6335.163037] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6335.455018] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6335.747046] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6336.039014] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6336.331017] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6336.623053] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6336.772962] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6336.772970] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 18 00 00 08 00
[ 6336.772974] print_req_error: I/O error, dev sdc, sector 24
[ 6336.772983] Buffer I/O error on dev sdc, logical block 3, async page read
[ 6336.902995] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6337.199023] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6337.490999] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6337.783017] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6338.075059] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6338.371039] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6338.520967] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6338.520975] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
[ 6338.520979] print_req_error: I/O error, dev sdc, sector 0
[ 6338.520989] Buffer I/O error on dev sdc, logical block 0, async page read
[ 6338.521047]  sdc: unable to read partition table
[ 6338.523555] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[ 6338.654983] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6338.805230] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6338.805238] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 e6 c9 80 00 00 08 00
[ 6338.805242] print_req_error: I/O error, dev sdc, sector 15124864
[ 6338.935033] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6339.227059] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6339.519041] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6339.811065] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6340.107015] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6340.407042] usb 2-12: reset high-speed USB device number 5 using xhci_hcd
[ 6340.557002] sd 6:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 6340.557010] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 e6 c9 80 00 00 08 00
[ 6340.557014] print_req_error: I/O error, dev sdc, sector 15124864
[ 6340.557024] Buffer I/O error on dev sdc, logical block 1890608, async page read

And I can read other sectors. For example:
Code: Select all
$ sudo hdparm --read-sector 400 /dev/sdc

/dev/sdc:
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
reading sector 400: SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
succeeded
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
hack3rcon
 
Posts: 507
Joined: 2015-02-16 09:54

Re: How to fix sector 0 of a USB flash?

Postby p.H » 2020-12-09 20:26

Looks like a USB issue.

hack3rcon wrote:And I can read other sectors

Not with this command. It is the same output as with sector 0.
hdparm does not work with a USB flash drive.
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: How to fix sector 0 of a USB flash?

Postby hack3rcon » 2020-12-10 17:40

p.H wrote:Looks like a USB issue.

hack3rcon wrote:And I can read other sectors

Not with this command. It is the same output as with sector 0.
hdparm does not work with a USB flash drive.

Which tool is OK for USB?
hack3rcon
 
Posts: 507
Joined: 2015-02-16 09:54

Re: How to fix sector 0 of a USB flash?

Postby p.H » 2020-12-10 20:51

Any tool which works with all types of block devices, such as dd and its clones (ddrescue...).
You can pipe the output to hd (hexdump) to print it in hexadecimal+ASCII.
But the USB reset messages and errors in the kernel log lead me to conclude that it will fail too.

Did you try to plug the USB drive to other USB ports, other computers ?
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12

Re: How to fix sector 0 of a USB flash?

Postby hack3rcon » 2020-12-15 10:19

p.H wrote:Any tool which works with all types of block devices, such as dd and its clones (ddrescue...).
You can pipe the output to hd (hexdump) to print it in hexadecimal+ASCII.
But the USB reset messages and errors in the kernel log lead me to conclude that it will fail too.

Did you try to plug the USB drive to other USB ports, other computers ?

I plugged it to other computers and I got the same result.
hack3rcon
 
Posts: 507
Joined: 2015-02-16 09:54

Re: How to fix sector 0 of a USB flash?

Postby p.H » 2020-12-15 18:35

Then a selective incompatibility with the computer is unlikely (unless all computers were the same model).
I'm afraid the flash drive has reached the end of its useful life.
p.H
 
Posts: 1609
Joined: 2017-09-17 07:12


Return to General Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable