My friend has a flash disk which it is not working because it was removed without using "safely remove" in Windows. When I connected it to my pc (linux), it was not able to detect the partition table. I assumed it was corrupted. I opened Testdisk and chose the first item "Analyse" then it warned me that the number of heads is incorrect and should be 255. I ignored this warning and continued. As I remember, it found two extended and logical partitions. I wrote the discovered partitions to the flash drive and closed test disk and reconnected it, but it was still unable to see any partitions. I opened testdisk again and chose "Geometry" section and changed heads to 255 but Analysing disk was giving errors and warning and no parition was recoverable. I tried to change the geometry several times, but niether seemed to work.
Anytime In analyse section I get this: "Warning: Bad ending cylinder (CHS and LBA don't match)"
this log reflects last geometry I was trying:
Code: Select all
Sat Apr 21 07:13:34 2012
Command line: TestDisk /log /dev/sdb
TestDisk 6.12, Data Recovery Utility, May 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 2.6.34.9-69.fc13.i686 (#1 SMP Tue May 3 09:20:30 UTC 2011) i686
Compiler: GCC 4.4
Compilation date: 2011-05-12T19:49:35
ext2fs lib: 1.41.10, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: 20100226
Hard disk list
Disk /dev/sdb - 4009 MB / 3824 MiB - CHS 487 255 63, sector size=512 - hp v125w
Partition table type (auto): Intel
Disk /dev/sdb - 4009 MB / 3824 MiB - hp v125w
Partition table type: Intel
Analyse Disk /dev/sdb - 4009 MB / 3824 MiB - CHS 487 255 63
Geometry from i386 MBR: head=255 sector=63
check_part_i386 failed for partition type 0C
Current partition structure:
Invalid FAT boot sector
1 P FAT32 LBA 0 33 58 488 254 63 7853649
1 P FAT32 LBA 0 33 58 488 254 63 7853649
Warning: Bad ending cylinder (CHS and LBA don't match)
No partition is bootable
Ask the user for vista mode
Computes LBA from CHS for Disk /dev/sdb - 4013 MB / 3827 MiB - CHS 488 255 63
Allow partial last cylinder : Yes
search_vista_part: 1
search_part()
Disk /dev/sdb - 4013 MB / 3827 MiB - CHS 488 255 63
BAD_RS LBA=2136 63
check_part_i386 failed for partition type 0C
FAT32 LBA 0 33 58 487 141 22 7830424
interface_write()
1 E extended 0 33 1 487 254 63 7837641
5 L FAT32 LBA 0 33 58 487 254 63 7837584
search_part()
Disk /dev/sdb - 4013 MB / 3827 MiB - CHS 488 255 63
BAD_RS LBA=2136 63
check_part_i386 failed for partition type 0C
FAT32 LBA 0 33 58 487 141 22 7830424
interface_write()
1 E extended 0 33 1 487 254 63 7837641
5 L FAT32 LBA 0 33 58 487 254 63 7837584
simulate write!
TestDisk exited normally.