I'm trying to recover a hard drive that somehow set itself to a RAW file system, crystaldiskinfo also said it had 199 pending sector count errors. I ran ddrescue on it to a new 1TB HDD, but at 97% it said there was one month remaining so I stopped the process there, knowing that there was a log file if I wanted to resume (not sure if this was a mistake).
The new HDD is now in RAW and I want to see if I can recover the clone that ddrescue made. Testdisk comes up with the error "Error: size boot_sector > partition".
I'm a little confused on how to proceed. Should I just let ddrescue run (I fear that the estimate to completion will keep growing)?
Any help would be much appreciated. The data on the hard drive isn't critical but would be nice to be able to recover.
Error: size boot_sector > partition on RAW file system
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
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
- cgrenier
- Site Admin
- Posts: 5441
- Joined: 18 Feb 2012, 15:08
- Location: Le Perreux Sur Marne, France
- Contact:
Re: Error: size boot_sector > partition on RAW file system
Please copy and paste the testdisk.log file content.
Re: Error: size boot_sector > partition on RAW file system
Code: Select all
Tue Mar 31 23:03:13 2020
Command line: TestDisk
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 5.3.0-40-generic (#32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020) x86_64
Compiler: GCC 7.2
ext2fs lib: 1.44.1, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.0
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 250069680 sectors
/dev/sda: user_max 250069680 sectors
/dev/sda: native_max 250069680 sectors
/dev/sda: dco 250069680 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/sda - 128 GB / 119 GiB - CHS 15566 255 63, sector size=512 - SAMSUNG MZ7TY128HDHP-000L1, S/N:S2YPNB0H897418, FW:MAT05L0Q
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - TOSHIBA External USB 3.0, FW:5438
Partition table type (auto): EFI GPT
Disk /dev/sdb - 1000 GB / 931 GiB - TOSHIBA External USB 3.0
Partition table type: EFI GPT
Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=1953458175 (expected 1953525163)
hdr_lba_start=34
hdr_lba_end=1953458142
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
check_part_gpt failed for partition
1 P MS Data 2048 1953456127 1953454080
Current partition structure:
Error: size boot_sector 1953520816 > partition 1953454080
No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker
1 P MS Data 2048 1953456127 1953454080
1 P MS Data 2048 1953456127 1953454080
search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
NTFS at 0/32/33
filesystem size 1953520816
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS part_offset=1048576, part_size=1000202657792, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
NTFS at 0/32/33
filesystem size 1953520816
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
MS Data 2048 1953522863 1953520816
NTFS, blocksize=4096, 1000 GB / 931 GiB
Results
P MS Data 2048 1953522863 1953520816
NTFS, blocksize=4096, 1000 GB / 931 GiB
Hint for advanced users. dmsetup may be used if you prefer to avoid to rewrite the partition table for the moment:
echo "0 1953520816 linear /dev/sdb 2048" | dmsetup create test0
interface_write()
1 P MS Data 2048 1953522863 1953520816
simulate write!
TestDisk exited normally.