Broken USB flash drive - Invalid FAT boot sector

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
luki
Posts: 1
Joined: 27 Jul 2023, 20:48

Broken USB flash drive - Invalid FAT boot sector

#1 Post by luki »

Dear,
first of all, I would like to say hello everybody :) .
By small accident, I broke my USB flash drive. Here is the story. I have PC with Windows 10 installed. On that PC I have VMware, which holds Ubuntu 20.04 virtual machine. Few days ago, I run virtual machine and connected my USB flash drive. VM properly mounted drive. I checked some stuff and then I forgot disconnect USB drive from virtual machine. Instead, I just shut down VM. Starting from that time problem is present. Windows see drive, but when I try open it, it says "The drive is not formatted, do you want to format it now?". Before doing something stupid, I connected again USB drive to VM and did copy of it using dd command:

Code: Select all

sudo dd if=/dev/sdb of=~/Desktop/usb_img.img status=progress 
I found in askubuntu.com that testdisk can help me in thi situation, so I installed it and run on previously created backup of USB dirve:

Code: Select all

sudo testdisk /log ./usb_img.img
I tried follow steps mentioned on this page: https://www.cgsecurity.org/wiki/Advanced_FAT_Repair. First I tried RebuildBS, but information presented by testdisk doesn't tell me much, so I abort interactive mode. After that I tried Backup BS option. It allowed me to move one step further (I hope), because I can see some files (after selecting List option), which were on USB drive. How to move on to recover my data (some files / directories testdisk shows in red)? Below is the log from testdisk

Code: Select all

Using locale 'LC_CTYPE=en_US.UTF-8;LC_NUMERIC=pl_PL.UTF-8;LC_TIME=pl_PL.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=pl_PL.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=pl_PL.UTF-8;LC_NAME=pl_PL.UTF-8;LC_ADDRESS=pl_PL.UTF-8;LC_TELEPHONE=pl_PL.UTF-8;LC_MEASUREMENT=pl_PL.UTF-8;LC_IDENTIFICATION=pl_PL.UTF-8'.


Thu Jul 27 22:46:04 2023
Command line: TestDisk /log ./usb_img.img

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Linux, kernel 5.4.0-153-generic (#170-Ubuntu SMP Fri Jun 16 13:43:31 UTC 2023) x86_64
Compiler: GCC 9.2
ext2fs lib: 1.45.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.1
Hard disk list
Disk ./usb_img.img - 4037 MB / 3850 MiB - CHS 491 255 63, sector size=512

Partition table type (auto): Intel
Geometry from i386 MBR: head=255 sector=63
Disk ./usb_img.img - 4037 MB / 3850 MiB
Partition table type: Intel

Analyse Disk ./usb_img.img - 4037 MB / 3850 MiB - CHS 491 255 63
Geometry from i386 MBR: head=255 sector=63
check_part_i386 failed for partition type 0B
Current partition structure:
Invalid FAT boot sector
 1 * FAT32                    0   2  3   490 205 35    7884672
 1 * FAT32                    0   2  3   490 205 35    7884672

Bad sector count.

search_part()
Disk ./usb_img.img - 4037 MB / 3850 MiB - CHS 491 255 63

interface_write()
 
No partition found or selected for recovery

search_part()
Disk ./usb_img.img - 4037 MB / 3850 MiB - CHS 491 255 63

interface_write()
 
No partition found or selected for recovery
simulate write!
No extended partition

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
check_part_i386 failed for partition type 0B
 1 * FAT32                    0   2  3   490 205 35    7884672

fat32_boot_sector
 1 * FAT32                    0   2  3   490 205 35    7884672
heads/cylinder 125 (FAT) != 255 (HD)
sect/track 62 (FAT) != 63 (HD)
Boot sector
Bad

Backup boot sector
Warning: number of heads/cylinder mismatches 125 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 62 (FAT) != 63 (HD)
OK
Warning: valid FAT backup bootsector but not a FAT32 one!
First sectors (boot code and partition information) are not identical.
Second sectors (cluster information) are not identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.
Boot sector                        Backup boot sector
0000 22c2af75 f4ff75fc   "..u..u.  eb58906d 6b66732e   .X.mkfs.
0008 5075f5ff 75fd0075   Pu..u..u  66617400 02082000   fat... .
0010 f6ff75fe 0043ff80   ..u..C..  02000000 00f80000   ........
0018 75f7ff90 0200e020   u......   3e007d00 80000000   >.}.....
0020 e10575b5 17800375   ..u....u  804f7800 051e0000   .Ox.....
0028 b50053a3 fe53a1bf   ..S..S..  00000000 02000000   ........
0030 00000043 a1200000   ...C. ..  01000600 00000000   ........
0038 0053a17f 00000043   .S.....C  00000000 00000000   ........
0040 a11043bc 02000000   ..C.....  80002946 38106d20   ..)F8.m 
0048 00000000 00000053   .......S  20202020 20202020           
0050 a1fe790a 12305753   ..y..0WS  20204641 54333220     FAT32 
0058 a1f743a1 0243ba1c   ..C..C..  20200e1f be777cac     ...w|.
0060 791e1230 5743ba02   y..0WC..  22c0740b 56b40ebb   ".t.V...
0068 791e1230 5743a002   y..0WC..  0700cd10 5eebf032   ....^..2
0070 00000000 00000000   ........  e4cd16cd 19ebfe54   .......T
0078 00000000 00000000   ........  68697320 6973206e   his is n
0080 00000000 00000000   ........  6f742061 20626f6f   ot a boo
0088 00000000 00000000   ........  7461626c 65206469   table di
0090 00000000 00000000   ........  736b2e20 20506c65   sk.  Ple
0098 751e0f43 a3015390   u..C..S.  61736520 696e7365   ase inse
00A0 7f53bafd 79141230   .S..y..0  72742061 20626f6f   rt a boo
00A8 5743a108 79141230   WC..y..0  7461626c 6520666c   table fl
00B0 5053a1fd 79071230   PS..y..0  6f707079 20616e64   oppy and
00B8 5053bae3 79141230   PS..y..0  0d0a7072 65737320   ..press 
00C0 5743a101 00000000   WC......  616e7920 6b657920   any key 
00C8 00000000 00000000   ........  746f2074 72792061   to try a
00D0 00000000 00000000   ........  6761696e 202e2e2e   gain ...
00D8 53bcfd00 00000000   S.......  200d0a00 00000000    .......
00E0 00000000 00000000   ........  00000000 00000000   ........
00E8 00000000 00000053   .......S  00000000 00000000   ........
00F0 a16f4390 80000000   .oC.....  00000000 00000000   ........
00F8 00000000 00000000   ........  00000000 00000000   ........
0100 00000000 00000000   ........  00000000 00000000   ........
0108 00439040 00000000   .C.@....  00000000 00000000   ........
0110 00000000 00000000   ........  00000000 00000000   ........
0118 00000000 00000000   ........  00000000 00000000   ........
0120 75f4ff75 fcd075ef   u..u..u.  00000000 00000000   ........
0128 8075fdff 75f10075   .u..u..u  00000000 00000000   ........
0130 f6ff75fe 0075f779   ..u..u.y  00000000 00000000   ........
0138 75ffe043 f3607902   u..C.`y.  00000000 00000000   ........
0140 123050d2 af0224ae   .0P...$.  00000000 00000000   ........
0148 7a00dafe d9fa2200   z.....".  00000000 00000000   ........
0150 000000d9 fa22ffff   ....."..  00000000 00000000   ........
0158 ffffffff ffffffff   ........  00000000 00000000   ........
0160 ffffffff ffffffff   ........  00000000 00000000   ........
0168 ffffffff ffffffff   ........  00000000 00000000   ........
0170 ffffffff ffffffff   ........  00000000 00000000   ........
0178 ffffffff ffffffff   ........  00000000 00000000   ........
0180 ffffffff ffffffff   ........  00000000 00000000   ........
0188 ffffffff ffffffff   ........  00000000 00000000   ........
0190 ffffffff ffffffff   ........  00000000 00000000   ........
0198 ffffffff ffffffff   ........  00000000 00000000   ........
01A0 ffffffff ffffffff   ........  00000000 00000000   ........
01A8 ffffffff ffffffff   ........  00000000 00000000   ........
01B0 ffffffff ffffffff   ........  00000000 00000000   ........
01B8 ffffffff ffffffff   ........  00000000 00000000   ........
01C0 ffffffff ffffffff   ........  00000000 00000000   ........
01C8 ffffffff ffffffff   ........  00000000 00000000   ........
01D0 01000000 0612fc55   .......U  00000000 00000000   ........
01D8 aa3e2b02 4a442146   .>+.JD!F  00000000 00000000   ........
01E0 cc5eda6f bcc505ac   .^.o....  00000000 00000000   ........
01E8 175e65f3 214af90d   .^e.!J..  00000000 00000000   ........
01F0 e165a1d1 7e5d26ee   .e..~]&.  00000000 00000000   ........
01F8 b3e2600a 22c8f7bc   ..`."...  00000000 000055aa   ......U.
0200 52526141 00000000   RRaA....  00000000 00000000   ........
0208 00000000 00000000   ........  00000000 00000000   ........
0210 00000000 00000000   ........  00000000 00000000   ........
0218 00000000 00000000   ........  00000000 00000000   ........
0220 00000000 00000000   ........  00000000 00000000   ........
0228 00000000 00000000   ........  00000000 00000000   ........
0230 00000000 00000000   ........  00000000 00000000   ........
0238 00000000 00000000   ........  00000000 00000000   ........
0240 00000000 00000000   ........  00000000 00000000   ........
0248 00000000 00000000   ........  00000000 00000000   ........
0250 00000000 00000000   ........  00000000 00000000   ........
0258 00000000 00000000   ........  00000000 00000000   ........
0260 00000000 00000000   ........  00000000 00000000   ........
0268 00000000 00000000   ........  00000000 00000000   ........
0270 00000000 00000000   ........  00000000 00000000   ........
0278 00000000 00000000   ........  00000000 00000000   ........
0280 00000000 00000000   ........  00000000 00000000   ........
0288 00000000 00000000   ........  00000000 00000000   ........
0290 00000000 00000000   ........  00000000 00000000   ........
0298 00000000 00000000   ........  00000000 00000000   ........
02A0 00000000 00000000   ........  00000000 00000000   ........
02A8 00000000 00000000   ........  00000000 00000000   ........
02B0 00000000 00000000   ........  00000000 00000000   ........
02B8 00000000 00000000   ........  00000000 00000000   ........
02C0 00000000 00000000   ........  00000000 00000000   ........
02C8 00000000 00000000   ........  00000000 00000000   ........
02D0 00000000 00000000   ........  00000000 00000000   ........
02D8 00000000 00000000   ........  00000000 00000000   ........
02E0 00000000 00000000   ........  00000000 00000000   ........
02E8 00000000 00000000   ........  00000000 00000000   ........
02F0 00000000 00000000   ........  00000000 00000000   ........
02F8 00000000 00000000   ........  00000000 00000000   ........
0300 00000000 00000000   ........  00000000 00000000   ........
0308 00000000 00000000   ........  00000000 00000000   ........
0310 00000000 00000000   ........  00000000 00000000   ........
0318 00000000 00000000   ........  00000000 00000000   ........
0320 00000000 00000000   ........  00000000 00000000   ........
0328 00000000 00000000   ........  00000000 00000000   ........
0330 00000000 00000000   ........  00000000 00000000   ........
0338 00000000 00000000   ........  00000000 00000000   ........
0340 00000000 00000000   ........  00000000 00000000   ........
0348 00000000 00000000   ........  00000000 00000000   ........
0350 00000000 00000000   ........  00000000 00000000   ........
0358 00000000 00000000   ........  00000000 00000000   ........
0360 00000000 00000000   ........  00000000 00000000   ........
0368 00000000 00000000   ........  00000000 00000000   ........
0370 00000000 00000000   ........  00000000 00000000   ........
0378 00000000 00000000   ........  00000000 00000000   ........
0380 00000000 00000000   ........  00000000 00000000   ........
0388 00000000 00000000   ........  00000000 00000000   ........
0390 00000000 00000000   ........  00000000 00000000   ........
0398 00000000 00000000   ........  00000000 00000000   ........
03A0 00000000 00000000   ........  00000000 00000000   ........
03A8 00000000 00000000   ........  00000000 00000000   ........
03B0 00000000 00000000   ........  00000000 00000000   ........
03B8 00000000 00000000   ........  00000000 00000000   ........
03C0 00000000 00000000   ........  00000000 00000000   ........
03C8 00000000 00000000   ........  00000000 00000000   ........
03D0 00000000 00000000   ........  00000000 00000000   ........
03D8 00000000 00000000   ........  00000000 00000000   ........
03E0 00000000 72724161   ....rrAa  00000000 00000000   ........
03E8 87f30d00 ac190000   ........  00000000 00000000   ........
03F0 00000000 00000000   ........  00000000 00000000   ........
03F8 00000000 000055aa   ......U.  00000000 00000000   ........
0400 00000000 00000000   ........  00000000 00000000   ........
0408 00000000 00000000   ........  00000000 00000000   ........
0410 00000000 00000000   ........  00000000 00000000   ........
0418 00000000 00000000   ........  00000000 00000000   ........
0420 00000000 00000000   ........  00000000 00000000   ........
0428 00000000 00000000   ........  00000000 00000000   ........
0430 00000000 00000000   ........  00000000 00000000   ........
0438 00000000 00000000   ........  00000000 00000000   ........
0440 00000000 00000000   ........  00000000 00000000   ........
0448 00000000 00000000   ........  00000000 00000000   ........
0450 00000000 00000000   ........  00000000 00000000   ........
0458 00000000 00000000   ........  00000000 00000000   ........
0460 00000000 00000000   ........  00000000 00000000   ........
0468 00000000 00000000   ........  00000000 00000000   ........
0470 00000000 00000000   ........  00000000 00000000   ........
0478 00000000 00000000   ........  00000000 00000000   ........
0480 00000000 00000000   ........  00000000 00000000   ........
0488 00000000 00000000   ........  00000000 00000000   ........
0490 00000000 00000000   ........  00000000 00000000   ........
0498 00000000 00000000   ........  00000000 00000000   ........
04A0 00000000 00000000   ........  00000000 00000000   ........
04A8 00000000 00000000   ........  00000000 00000000   ........
04B0 00000000 00000000   ........  00000000 00000000   ........
04B8 00000000 00000000   ........  00000000 00000000   ........
04C0 00000000 00000000   ........  00000000 00000000   ........
04C8 00000000 00000000   ........  00000000 00000000   ........
04D0 00000000 00000000   ........  00000000 00000000   ........
04D8 00000000 00000000   ........  00000000 00000000   ........
04E0 00000000 00000000   ........  00000000 00000000   ........
04E8 00000000 00000000   ........  00000000 00000000   ........
04F0 00000000 00000000   ........  00000000 00000000   ........
04F8 00000000 00000000   ........  00000000 00000000   ........
0500 00000000 00000000   ........  00000000 00000000   ........
0508 00000000 00000000   ........  00000000 00000000   ........
0510 00000000 00000000   ........  00000000 00000000   ........
0518 00000000 00000000   ........  00000000 00000000   ........
0520 00000000 00000000   ........  00000000 00000000   ........
0528 00000000 00000000   ........  00000000 00000000   ........
0530 00000000 00000000   ........  00000000 00000000   ........
0538 00000000 00000000   ........  00000000 00000000   ........
0540 00000000 00000000   ........  00000000 00000000   ........
0548 00000000 00000000   ........  00000000 00000000   ........
0550 00000000 00000000   ........  00000000 00000000   ........
0558 00000000 00000000   ........  00000000 00000000   ........
0560 00000000 00000000   ........  00000000 00000000   ........
0568 00000000 00000000   ........  00000000 00000000   ........
0570 00000000 00000000   ........  00000000 00000000   ........
0578 00000000 00000000   ........  00000000 00000000   ........
0580 00000000 00000000   ........  00000000 00000000   ........
0588 00000000 00000000   ........  00000000 00000000   ........
0590 00000000 00000000   ........  00000000 00000000   ........
0598 00000000 00000000   ........  00000000 00000000   ........
05A0 00000000 00000000   ........  00000000 00000000   ........
05A8 00000000 00000000   ........  00000000 00000000   ........
05B0 00000000 00000000   ........  00000000 00000000   ........
05B8 00000000 00000000   ........  00000000 00000000   ........
05C0 00000000 00000000   ........  00000000 00000000   ........
05C8 00000000 00000000   ........  00000000 00000000   ........
05D0 00000000 00000000   ........  00000000 00000000   ........
05D8 00000000 00000000   ........  00000000 00000000   ........
05E0 00000000 00000000   ........  00000000 00000000   ........
05E8 00000000 00000000   ........  00000000 00000000   ........
05F0 00000000 00000000   ........  00000000 00000000   ........
05F8 00000000 00000000   ........  00000000 00000000   ........

FAT32
sector_size  30207 512
cluster_size 253 8
reserved     29952 32
fats         246 2
dir_entries  30207 0
sectors      254 0
media        43 F8
fat_length   33023 0
secs_track   63349 62
heads        37119 125
hidden       551550978 128
total_sect   3044345313 7884672
fat32_length 1963163671 7685
flags        00B5 0000
version      83.163  0.0
root_cluster 3215021054 2
info_sector  0 1
backup_boot  17152 6
free_count   914311 0
next_free    6572 0

fat32_boot_sector
 1 * FAT32                    0   2  3   490 205 35    7884672
heads/cylinder 125 (FAT) != 255 (HD)
sect/track 62 (FAT) != 63 (HD)
Boot sector
Bad

Backup boot sector
Warning: number of heads/cylinder mismatches 125 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 62 (FAT) != 63 (HD)
OK
Warning: valid FAT backup bootsector but not a FAT32 one!
First sectors (boot code and partition information) are not identical.
Second sectors (cluster information) are not identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.
FAT32 at 32(0/2/35), nbr=549
FAT32 at 296(0/6/47), nbr=1
FAT32 at 7717(0/124/34), nbr=549
FAT32 at 7981(0/128/46), nbr=1
FAT32 at 25898(1/158/8), nbr=1
FAT32 at 26341(1/165/10), nbr=1
FAT32 at 26390(1/165/59), nbr=1
next_free 3, free_count 914311
First-level directory found at cluster 33
fat_dir, get_subdirectory(), can't read directory
fat_dir, get_subdirectory(), can't read directory
First-level directory found at cluster 38028
First-level directory found at cluster 66592
First-level directory found at cluster 66595
First-level directory found at cluster 262146
First-level directory found at cluster 308232
First-level directory found at cluster 310295
First-level directory found at cluster 311417
First-level directory found at cluster 327687
First-level directory found at cluster 327690
First-level directory found at cluster 343968
First-level directory found at cluster 344075
First-level directory found at cluster 344114
Search root cluster failed
      33 drwxr-xr-x     0      0         0 11-Jul-2017 14:00 DIR00001
   38028 drwxr-xr-x     0      0         0 11-Jul-2017 14:03 DIR00002
   66592 drwxr-xr-x     0      0         0 17-Aug-2022 00:44 DIR00003
   66595 drwxr-xr-x     0      0         0 17-Sep-2022 02:10 DIR00004
  262146 drwxr-xr-x     0      0         0  6-Aug-2020 00:52 DIR00005
  308232 drwxr-xr-x     0      0         0 19-Dec-2017 11:14 DIR00006
  310295 drwxr-xr-x     0      0         0 22-Jun-2018 14:12 DIR00007
  311417 drwxr-xr-x     0      0         0 11-Jul-2017 14:08 DIR00008
  327687 drwxr-xr-x     0      0         0 20-Dec-2018 21:34 DIR00009
  327690 drwxr-xr-x     0      0         0 20-Dec-2018 21:41 DIR00010
  343968 drwxr-xr-x     0      0         0 11-Jul-2017 14:09 DIR00011
  344075 drwxr-xr-x     0      0         0 12-Dec-2018 01:36 DIR00012
  344114 drwxr-xr-x     0      0         0 23-Nov-2018 01:17 DIR00013
             New / Current boot sector
FAT32
sector_size  512 30207
cluster_size 8 253
reserved     32 29952
fats         2 246
dir_entries  0 30207
sectors      0 254
media        F8 43
fat_length   0 33023
secs_track   63 63349
heads        255 37119
hidden       128 551550978
total_sect   7884672 3044345313
fat32_length 7685 1963163671
flags        0000 00B5
version      0.0  83.163
root_cluster 0 3215021054
info_sector  1 0
backup_boot  6 17152
free_count   uninitialised 914311
next_free    uninitialised 6572
Extrapolated boot sector and current boot sector are different.
Warning: Extrapolated boot sector have incorrect values.

FAT32: Can't list files, bad root cluster.
Directory /
Warning: Extrapolated boot sector have incorrect values.
Don't write new boot!

fat32_boot_sector
 1 * FAT32                    0   2  3   490 205 35    7884672
heads/cylinder 125 (FAT) != 255 (HD)
sect/track 62 (FAT) != 63 (HD)
Boot sector
Bad

Backup boot sector
Warning: number of heads/cylinder mismatches 125 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 62 (FAT) != 63 (HD)
OK

First sectors (boot code and partition information) are not identical.
Second sectors (cluster information) are not identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.
copy backup boot sector over boot sector

fat32_boot_sector
 1 * FAT32                    0   2  3   490 205 35    7884672
heads/cylinder 125 (FAT) != 255 (HD)
sect/track 62 (FAT) != 63 (HD)
heads/cylinder 125 (FAT) != 255 (HD)
sect/track 62 (FAT) != 63 (HD)
Boot sector
Warning: number of heads/cylinder mismatches 125 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 62 (FAT) != 63 (HD)
OK

Backup boot sector
Warning: number of heads/cylinder mismatches 125 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 62 (FAT) != 63 (HD)
OK

Sectors are identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.

FAT: cluster=2(0x2), pos=15530
Directory /
    1417 -rwxr-xr-x     0      0      7537 12-Aug-2022 09:21 linki.txt
  327690 drwxr-xr-x     0      0         0 20-Dec-2018 19:41 Wirus z maila
    1413 -rwxr-xr-x     0      0      8101 17-Aug-2022 11:18 autobusy.docx
    3380 -rwxr-xr-x     0      0      1311  2-Jun-2022 12:12 rozwiazanie-zagadki-od-bartka.cpp
    1420 -rwxr-xr-x     0      0      1361 12-Aug-2022 09:22 linki_inne.txt
      95 -rwxr-xr-x     0      0       549  6-Dec-2019 11:25 lamanie-bluetooth.txt
      96 -rwxr-xr-x     0      0       568 11-Dec-2019 14:24 raspberry-pi-info.txt
  327687 drwxr-xr-x     0      0         0 19-Jun-2020 14:03 Nexia
   48244 -rwxr-xr-x     0      0       229 26-Jul-2019 12:54 oferty-pracy-ze-staka.txt
  335686 -rwxr-xr-x     0      0      4754  5-Jan-2018 00:03 procesy-finale.vbs
   66604 -rwxr-xr-x     0      0     22789  9-Aug-2022 22:51 kafelki_panele_gniazdka.docx
    3754 -rwxr-xr-x     0      0      6086 19-Aug-2022 14:15 sklepy_czesci_nexia.docx
X  66595 drwxr-xr-x     0      0         0 12-Sep-2022 14:42 Praca
      33 drwxr-xr-x     0      0         0  5-Aug-2019 10:17 Inne
   38028 drwxr-xr-x     0      0         0 10-Mar-2020 13:02 Praca_ssss
  311417 drwxr-xr-x     0      0         0 11-Jul-2017 12:09 Programy
  308232 drwxr-xr-x     0      0         0 19-Dec-2017 11:08 Stluczka-17-12-2017
     301 -rwxr-xr-x     0      0    138831 17-Dec-2018 07:34 thumbnail_SeasonsGreatings2018SG.jpg
X     36 -rwxr-xr-x     0      0     32676 21-Nov-2019 11:56 Potwierdzenie
  344229 -rwxr-xr-x     0      0   1065265 10-Oct-2018 09:26 skan-aktu-urodzenia-lukasz.pdf
   66592 drwxr-xr-x     0      0         0 16-Aug-2022 22:44 System Volume Information
      17 -rwxr-xr-x     0      0    230476 15-Sep-2020 13:39 0f6b_15_9_2020.pdf
      26 -rwxr-xr-x     0      0      3272 23-Mar-2020 08:09 lista_jednokierunkowa.cpp
X   3753 -rwxr-xr-x     0      0        89 19-Aug-2022 14:15 _LOCKS~1.DOC
      87 -rwxr-xr-x     0      0    245084 15-Sep-2020 13:39 6d48_15_9_2020.pdf
X   1420 -rwxr-xr-x     0      0      1361 12-Aug-2022 09:22 nexia_sklepy_inne_linki.txt
    3353 -rwxr-xr-x     0      0    105257 27-May-2022 08:19 faktura_2621_1653639513.pdf
X   3382 -rwxr-xr-x     0      0        89  9-Aug-2022 06:50 _LOCKK~1.DOC
X   1424 -rwxr-xr-x     0      0     20512 16-Feb-2022 07:25 _OUTPU~1
X   1423 -rwxr-xr-x     0      0       165 15-Feb-2022 23:45 ~$Perf Asses Template_FOR 
X 335686 -rwxr-xr-x     0      0      4754  5-Jan-2018 00:03 procesy-finale.vbs
X 335688 -rwxr-xr-x     0      0     42550 16-Jan-2018 20:48 pdfdoc-PL85032190.rar
X 308194 -rwxr-xr-x     0      0     10752 21-Feb-2018 10:06 mirusia-orange.doc
X      0 -rwxr-xr-x     0      0         0 16-Mar-2018 23:11 nexia-zapłon.txt
X 335179 -rwxr-xr-x     0      0       283 16-Mar-2018 23:11 nexia-zapłon.txt
X   7962 drwxr-xr-x     0      0      4096  2-May-2018 18:29 CDM21228_Setup
X   7963 drwxr-xr-x     0      0      4096  2-May-2018 18:39 FTD3XXDriver_WHQLCertified_v1.2.0.6_Installer
X   7962 drwxr-xr-x     0      0      4096  2-May-2018 18:54 CDM v2.12.28 WHQL Certified
X  15058 drwxr-xr-x     0      0      4096 31-May-2001 12:12 Sterowniki-lapek-niemiecki
X  36094 drwxr-xr-x     0      0      4096 31-May-2001 12:13 Sony Ericsson
X      2 -rwxr-xr-x     0      0   2807576  5-May-2018 09:31 HC2Setup.exe
X    688 -rwxr-xr-x     0      0  93445852 31-May-2001 12:06 _LIP0002.AVI
X      2 -rwxr-xr-x     0      0    252029 31-May-2001 12:16 ustawienia.png
X   7962 -rwxr-xr-x     0      0       455 30-Jul-2018 00:16 _ZESCI.TXT

fat32_boot_sector
 1 * FAT32                    0   2  3   490 205 35    7884672
heads/cylinder 125 (FAT) != 255 (HD)
sect/track 62 (FAT) != 63 (HD)
heads/cylinder 125 (FAT) != 255 (HD)
sect/track 62 (FAT) != 63 (HD)
Boot sector
Warning: number of heads/cylinder mismatches 125 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 62 (FAT) != 63 (HD)
OK

Backup boot sector
Warning: number of heads/cylinder mismatches 125 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 62 (FAT) != 63 (HD)
OK

Sectors are identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.

TestDisk exited normally.
Thank you for your support.
recuperation
Posts: 3026
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Broken USB flash drive - Invalid FAT boot sector

#2 Post by recuperation »

Please examine the USB key using the standard procedure as described under

https://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

Here's more information anyway:

https://www.cgsecurity.org/wiki/TestDisk
Locked