fix/correct partition size in Windows

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
Tracey2031
Posts: 6
Joined: 21 Feb 2013, 16:01

fix/correct partition size in Windows

#1 Post by Tracey2031 »

Is there a way to fix/correct a Windows 2000 FAT32 partition (CHS-values/size) in/for Windows (or can someone point me in a direction to find a solution)?
I am trying to correct the partition values that are read/retrieved by the Windows OS.

I supposedly "successfully" converted a 152GB partition partition from NTFS to FAT32 using Partition Magic v8 (which I have successfully done before).
When Windows restarted, Windows(chkdsk, disk defrag, and windows explorer) now recognize the 152GB FAT32 partition as a 19GB FAT32 partition.
Only the Windows OS seems to have the problem.

Partition Doctor, Partition Magic, Partition Table Editor, and TestDisk v6.13 all correctly analyze and detect the 152GB disk partition.
Some of the files on the drive are accessible, but many are not.

I can post the TestDisk log if needed (specifying whatever options are desired: debug, dump, expert mode, and/or whatever else.)

Any help will be greatly appreciated
Please advise.
Thanks, Tracey
Just FYI TestDisk v6.13 and v6.14-WIP have differing final results.
If the drive did not have any issues then I would have assumed that the warnings would be due to bugs in TestDisk v6.14-WIP, but they are probably due to the discontinued support for Windows 2000 in TestDisk 6.14-WIP.
However, the warnings detected by TestDisk v6.14-WIP are not corroborated by Partition Doctor, Partition Magic, Partition Table Editor, or TestDisk v6.13
===========================================================================
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
===========================================================================
TestDisk 6.14-WIP, Data Recovery Utility, December 2012
Disk /dev/sdb - 160 GB / 149 GiB - CHS 19457 255 63
Current partition structure:
Partition Start End Size in sectors
1 P FAT32 LBA 0 1 1 19456 254 63 312576642 [W2KP21]
Structure: Ok.

Disk /dev/sdb - 160 GB / 149 GiB - CHS 19457 255 63
Partition Start End Size in sectors
>D HPFS - NTFS 0 1 1 19456 254 63 312576642 [W2KP21]
NTFS found using backup sector, blocksize=512, 160 GB / 149 GiB

D FAT32 LBA 0 1 1 19456 254 63 312576642 [W2KP21]
FAT32, blocksize=512, 160 GB / 149 GiB

D FAT12 335 5 61 335 51 42 2880 [NO NAME]
FAT found using backup sector!, 1474 KB / 1440 KiB
<snip>
Analyse cylinder 585/19456: 03%
FAT32 LBA 0 1 1 19456 254 63 312576642 [W2KP21]
FAT32 LBA 0 1 1 19456 254 63 312576642 [W2KP21]
check_FAT: Unusual media descriptor (0xf0!=0xf8)
Warning: number of heads/cylinder mismatches 2 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 18 (FAT) != 63 (HD)
FAT12 335 5 61 335 51 42 2880 [NO NAME]
</snip>

===========================================================================
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
===========================================================================
TestDisk 6.13, Data Recovery Utility, November 2011
Disk /dev/sdb - 160 GB / 149 GiB - CHS 19457 255 63
Current partition structure:
Partition Start End Size in sectors
1 P FAT32 LBA 0 1 1 19456 254 63 312576642 [W2KP21]
Structure: Ok.

Partition Start End Size in sectors
>D HPFS - NTFS 0 1 1 19456 254 63 312576642 [W2KP21]
NTFS found using backup sector!, 160 GB / 149 GiB

>D FAT32 LBA 0 1 1 19456 254 63 312576642 [W2KP21]
FAT32, 160 GB / 149 GiB
===========================================================================
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
===========================================================================
PowerQuest PartitionInfo 8.0 -- Windows NT/2000 Version
Disk Geometry Information for Disk 2: 19457 Cylinders, 255 Heads, 63 Sectors/Track
Info: Disk Manager is installed on this drive.
System PartSect # Boot BCyl Head Sect FS ECyl Head Sect StartSect NumSects
===========================================================================================================
W2KP21 0 0 00 0 1 1 0C 1023 254 63 63 312,576,642
Info: Begin C,H,S values were large drive placeholders.
Info: End C,H,S values were large drive placeholders.
Actual values are: 0 0 00 0 1 1 0C 19456 254 63 63 312,576,642

Partition Information for Disk 2: 152,625.3 Megabytes
Volume PartType Status Size MB PartSect # StartSect TotalSects
===========================================================================================================
D:W2KP21 FAT32 Pri 152,625.3 0 0 63 312,576,642
===========================================================================================================
Boot Record for drive D: (Drive: 2, Starting sector: 63, Type: FAT32... after conversion)
===========================================================================================================
1. Jump: EB 58 90
2. OEM Name: MSWIN4.1
3. Bytes per Sector: 512
4. Sectors per Cluster: 1
5. Reserved Sectors: 32
6. Number of FAT's: 2
7. Reserved: 0x0000
8. Reserved: 0x0000
9. Media Descriptor: 0xF8
10. Sectors per FAT: 0
11. Sectors per Track: 63 (0x3F)
12. Number of Heads: 255 (0xFF)
13. Hidden Sectors: 63 (0x3F)
14. Big Total Sectors: 312576642 (0x12A18A82)
15. Big Sectors per FAT: 2404437
16. Extended Flags: 0x0000
17. FS Version: 0
18. First Cluster of Root: 780553 (0xBE909)
19. FS Info Sector: 1
20. Backup Boot Sector: 6
21. Reserved: 000000000000000000000000
22. Drive ID: 0x80
23. Reserved for NT: 0x01
24. Extended Boot Sig: 0x29
25. Serial Number: 0x511B8C73
26. Volume Name: W2KP21
27. File System Type: FAT32
28. Boot Signature: 0xAA55

===========================================================================================================
Boot Record for drive D: (Drive: 2, Starting sector: 63, Type: NTFS... before conversion)
===========================================================================================================
1. Jump: EB 52 90
2. OEM Name: NTFS
3. Bytes per Sector: 512
4. Sectors per Cluster: 8
5. Reserved Sectors: 0
6. Number of FATs: 0
7. Root Dir Entries: 0
8. Total Sectors: 0
9. Media Descriptor: 0xF8
10. Sectors per FAT: 0
11. Sectors per Track: 63 (0x3F)
12. Number of Heads: 255 (0xFF)
13. Hidden Sectors: 63 (0x3F)
14. Total Sectors (>32MB): 0 (0x0)
15. Unused: 0x80008000
16. Total NTFS Sectors: 312576641
17. MFT Start Cluster: 4
18. MFT Mirror Start Clust: 19536040
19. Clusters per FRS: 246
20. Clusters per Index Blk: 1
21. Serial Number: 0xCE6C94C46C94A92B
22. Checksum: 0 (0x0)
23. Boot Signature: 0xAA55

Locked