Error: size boot_sector xxx > xxx

Using TestDisk to repair the filesystem
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
johedon
Posts: 1
Joined: 23 Feb 2018, 16:45

Error: size boot_sector xxx > xxx

#1 Post by johedon »

Hi,
Itry for many days to solve this pbm alone, but in despair I come to ask for a little help.
Under XP, a Seagate ST3- ST3120026AS (S for SATA) 120GB
Seagate technical spec pdf give CHS values of C16383 H16 S63 for the parrallel HD (ST3120026A without the S at the end), I cannot find tech specs for the sata, but I suppose it is exactly the same.
2 NTFS partitions C (Booting partition with XP) around 10 GB and D for the remaining (around 109 GB, Data partition).
I got Error: size boot_sector 234 436 482 > partition 213 953 670
testdisk.log is this:

Code: Select all

Fri Feb 23 16:07:39 2018
Command line: TestDisk

TestDisk 6.13-WIP, Data Recovery Utility, May 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows XP
Compiler: GCC 4.3, Cygwin 1007.7
Compilation date: 2011-10-25T08:40:11
ext2fs lib: 1.41.8, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20100226
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=120034123776
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=1010044928
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdc)=1039663104
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=120034123776
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=1010044928
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=1039663104
filewin32_getfilesize(\\.\PhysicalDrive3) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\PhysicalDrive3) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\PhysicalDrive3
filewin32_getfilesize(\\.\PhysicalDrive4) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\PhysicalDrive4) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\PhysicalDrive4
filewin32_getfilesize(\\.\PhysicalDrive5) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\PhysicalDrive5) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\PhysicalDrive5
filewin32_getfilesize(\\.\PhysicalDrive6) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\PhysicalDrive6) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\PhysicalDrive6
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=10487199744
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=1044578304
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=1008996352
filewin32_getfilesize(\\.\F:) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\F:) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\F:
filewin32_getfilesize(\\.\G:) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\G:) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\G:
filewin32_getfilesize(\\.\H:) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\H:) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\H:
filewin32_getfilesize(\\.\I:) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\I:) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\I:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\J:)=109544279040
filewin32_getfilesize(\\.\K:) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\K:) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\K:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\X:)=3162112
file_pread(4,1,buffer,234452609(14593/254/63)) lseek err Invalid argument
file_pread(5,1,buffer,1975994(122/254/63)) lseek err Invalid argument
file_pread(6,1,buffer,2040254(126/254/63)) lseek err Invalid argument
Hard disk list
Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63, sector size=512 - ST3120026AS, S/N:4a35325452585842202020202020202020202020, FW:3.18
Disk /dev/sdb - 1010 MB / 963 MiB - CHS 122 255 63, sector size=512 - General USB Flash Disk, FW:0.00
Disk /dev/sdc - 1039 MB / 991 MiB - CHS 126 255 63, sector size=512 - S31B0711 USB DISK, FW:1100
Drive X: - 3162 KB / 3088 KiB - CHS 193 1 32, sector size=512 - Microsoft Corporation RamDisk

Partition table type (auto): Intel
Disk /dev/sda - 120 GB / 111 GiB - ST3120026AS
Partition table type: Intel

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
NTFS at 1275/0/1
Error: size boot_sector 234436482 > partition 213953670
check_part_i386 failed for partition type 07
get_geometry_from_list_part_aux head=255 nbr=4
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=4
 1 * HPFS - NTFS              0   1  1  1274 254 63   20482812 [exCST3120026AS]
     NTFS, 10487 MB / 10001 MiB
 2 P HPFS - NTFS           1275   0  1 14592 254 63  213953670
New options :
 Dump : No
 Cylinder boundary : No
 Allow partial last cylinder : Yes
 Expert mode : Yes
Computes LBA from CHS for Disk /dev/sda - 120 GB / 111 GiB - CHS 14594 255 63

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
NTFS at 1275/0/1
Error: size boot_sector 234436482 > partition 213953670
check_part_i386 failed for partition type 07
get_geometry_from_list_part_aux head=255 nbr=4
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=4
 1 * HPFS - NTFS              0   1  1  1274 254 63   20482812 [exCST3120026AS]
     NTFS, 10487 MB / 10001 MiB
 2 P HPFS - NTFS           1275   0  1 14592 254 63  213953670

Analyse Disk /dev/sda - 120 GB / 111 GiB - CHS 14594 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
NTFS at 1275/0/1
Error: size boot_sector 234436482 > partition 213953670
check_part_i386 failed for partition type 07
get_geometry_from_list_part_aux head=255 nbr=4
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=4
Current partition structure:
 1 * HPFS - NTFS              0   1  1  1274 254 63   20482812 [exCST3120026AS]
Error: size boot_sector 234436482 > partition 213953670
Invalid NTFS or EXFAT boot
 2 P HPFS - NTFS           1275   0  1 14592 254 63  213953670
 2 P HPFS - NTFS           1275   0  1 14592 254 63  213953670
The log can be downloaded here if needed: https://1fichier.com/?rq17dt8ttr
I'm not that good with all this, I hope I'll be able to understand explanations if any comes back.
Anyway, thanks you in advance for help & time spent.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Error: size boot_sector xxx > xxx

#2 Post by cgrenier »

Run TestDisk 7.0, Advanced, select the second partition, Boot, RebuildBS, List.
If you can see your files, choose Write, confirm, Quit and restart your computer.

Locked