"Disk too small" problem

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
Message
Author
Laski
Posts: 8
Joined: 27 Jul 2012, 09:00

"Disk too small" problem

#1 Post by Laski »

Hi and sorry for my bad english! I have used testdisk before with great results but now I have a bigger problem. It's kind of similar to this one here: http://forum.cgsecurity.org/phpBB3/reco ... d-t15.html but with different parameters, reasons and partition types, and I don't know exactly how to "transpolate" the solution. Long story made short, I used testdisk to recover a partition -that's called wineprefix, that haves windows games for use them in linux- but by inexpertise selected all the others partitions as deleted. When I realised the problem, I ran testdisk again, but heres the situation:
http://img525.imageshack.us/img525/7958/captura01j.png
http://img198.imageshack.us/img198/7489/captura02v.png
As you can see, I can't recover my "Home" partition, wich is very important for me. Other partitions are OK, and I've already made a backup of them so I can play with what is left.
What I've tried: set the cilinders artificially to 124604 so testdisk could try to read the partitions, and then I could copy the contents to another disk and then exit without actually writing the bad geometry to disk. But...

Code: Select all

Fri Jul 27 05:31:42 2012
Command line: TestDisk

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.0.0-22-generic (#36-Ubuntu SMP Tue Jun 12 17:13:04 UTC 2012)
Compiler: GCC 4.5 - Oct 17 2010 20:12:36
ext2fs lib: 1.41.14, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       312581808 sectors
/dev/sda: user_max   312581808 sectors
/dev/sda: native_max 312581808 sectors
/dev/sda: dco        312581808 sectors
/dev/sdb: LBA, HPA, LBA48, DCO support
/dev/sdb: size       1953525168 sectors
/dev/sdb: user_max   1953525168 sectors
/dev/sdb: native_max 1953525168 sectors
/dev/sdb: dco        1953525168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - CHS 1 1 1, sector size=512
/dev/sr0 is not an ATA disk
Hard disk list
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - ATA Maxtor 6V160E0
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - ATA ST31000333AS
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - Generic External
Disk /dev/sdd - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - WD 1600BEV External
Disk /dev/sr0 - 190 MB / 181 MiB - CHS 92867 1 1 (RO), sector size=2048 - HL-DT-ST DVDRAM GH20NS15

Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - ATA ST31000333AS
Partition table type: Intel
New geometry
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63 sector_size=512

Analyse Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
NTFS at 19582/1/1
get_geometry_from_list_part_aux head=255 nbr=3
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=3
Current partition structure:
 1 P HPFS - NTFS              0   1  1 19581 254 63  314584767
 2 P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
 3 P Linux                96145  88  8 98103 120  1   31457280
No partition is bootable
Backup partition structure
partition_save
Allow partial last cylinder : Yes
search_vista_part: 1

search_part()
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, 624 GB / 581 GiB
     Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, 5368 MB / 5119 MiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=9/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96145  88  8 98103 120  1   31457280
     EXT4 Large file Sparse superblock, 16 GB / 15 GiB
Search for partition aborted
get_geometry_from_list_part_aux head=255 nbr=3
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=3

Results
   * HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
   P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, 624 GB / 581 GiB
   P Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, 5368 MB / 5119 MiB
   L Linux                96145  88  8 98103 120  1   31457280
     EXT4 Large file Sparse superblock, 16 GB / 15 GiB

interface_write()
 1 * HPFS - NTFS              0   1  1 19581 254 63  314584767
 2 P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
 3 P Linux Swap           95492 162 31 96145  87 54   10485744
 4 E extended LBA         96145  88  1 124604 254 63  457204356
 5 L Linux                96145  88  8 98103 120  1   31457280

search_part()
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
Search for partition aborted
get_geometry_from_list_part_aux head=255 nbr=2
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=2

Results
   * HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB

interface_write()
 1 * HPFS - NTFS              0   1  1 19581 254 63  314584767
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition

Analyse Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
NTFS at 19582/1/1
get_geometry_from_list_part_aux head=255 nbr=3
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=3
Current partition structure:
 1 P HPFS - NTFS              0   1  1 19581 254 63  314584767
 2 P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
 3 P Linux                96145  88  8 98103 120  1   31457280
No partition is bootable
Allow partial last cylinder : Yes
search_vista_part: 1

search_part()
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, 624 GB / 581 GiB
     Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, 5368 MB / 5119 MiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=9/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96145  88  8 98103 120  1   31457280
     EXT4 Large file Sparse superblock, 16 GB / 15 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
get_geometry_from_list_part_aux head=255 nbr=3
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=3

Results
   * HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
   P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, 624 GB / 581 GiB
   P Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, 5368 MB / 5119 MiB
   L Linux                96145  88  8 98103 120  1   31457280
     EXT4 Large file Sparse superblock, 16 GB / 15 GiB
   L Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB


dir_partition inode=2
   L Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /

interface_write()
 1 * HPFS - NTFS              0   1  1 19581 254 63  314584767
 2 P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
 3 P Linux Swap           95492 162 31 96145  87 54   10485744
 4 E extended LBA         96145  88  1 124604 254 63  457204356
 5 L Linux                96145  88  8 98103 120  1   31457280
 6 L Linux                101060  74  7 124557 201 60  377487360 [Home]

search_part()
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
NTFS at 13055/15/16
filesystem size           209729465
sectors_per_cluster       8
mft_lcn                   4
mftmirr_lcn               19661547
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  9 13055  15 16  209729465
     NTFS found using backup sector!, 107 GB / 100 GiB

recover_EXT2: s_block_group_nr=0/399, s_mnt_count=17/35, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 13106432
recover_EXT2: part_size 104851456
     Linux                16207  79  1 22734   2 52  104851456 [wineprefix]
     EXT4 Large file Sparse superblock Recover, 53 GB / 49 GiB

recover_EXT2: s_block_group_nr=0/399, s_mnt_count=17/35, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 13106432
recover_EXT2: part_size 104851456
     Linux                16210   2  1 22736 180 52  104851456 [wineprefix]
     EXT4 Large file Sparse superblock Recover, 53 GB / 49 GiB
NTFS at 19581/254/63
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS found using backup sector!, 161 GB / 150 GiB
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, 624 GB / 581 GiB
NTFS at 94839/171/52
filesystem size           1209014457
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1 11 94839 171 52 1209014457
     NTFS found using backup sector!, 619 GB / 576 GiB
NTFS at 95492/129/61
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1 11 95492 129 61 1219502265
     NTFS found using backup sector!, 624 GB / 581 GiB
     Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, 5368 MB / 5119 MiB
NTFS at 96145/55/38
filesystem size           20971513
sectors_per_cluster       8
mft_lcn                   4
mftmirr_lcn               655648
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          94839 204 29 96145  55 38   20971513
     NTFS found using backup sector!, 10737 MB / 10239 MiB
NTFS at 96145/88/7
filesystem size           20973561
sectors_per_cluster       8
mft_lcn                   4
mftmirr_lcn               655648
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          94839 204 29 96145  88  7   20973561
     NTFS found using backup sector!, 10 GB / 10 GiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=9/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96145  88  8 98103 120  1   31457280
     EXT4 Large file Sparse superblock, 16 GB / 15 GiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=34/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96951 203 21 98909 235 14   31457280
     EXT4 Large file Sparse superblock Recover, 16 GB / 15 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux Swap           110949 247 19 111015  61  6    1048560
     SWAP2 version 1, 536 MB / 511 MiB
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
get_geometry_from_list_part_aux head=255 nbr=3
get_geometry_from_list_part_aux head=8 nbr=3
get_geometry_from_list_part_aux head=16 nbr=3
get_geometry_from_list_part_aux head=32 nbr=2
get_geometry_from_list_part_aux head=64 nbr=2
get_geometry_from_list_part_aux head=128 nbr=2
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=3

Results
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
     HPFS - NTFS              0   1  9 13055  15 16  209729465
     NTFS found using backup sector!, 107 GB / 100 GiB
     Linux                16207  79  1 22734   2 52  104851456 [wineprefix]
     EXT4 Large file Sparse superblock Recover, 53 GB / 49 GiB
     Linux                16210   2  1 22736 180 52  104851456 [wineprefix]
     EXT4 Large file Sparse superblock Recover, 53 GB / 49 GiB
     HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, 624 GB / 581 GiB
     HPFS - NTFS          19582   1 11 94839 171 52 1209014457
     NTFS found using backup sector!, 619 GB / 576 GiB
     HPFS - NTFS          19582   1 11 95492 129 61 1219502265
     NTFS found using backup sector!, 624 GB / 581 GiB
     HPFS - NTFS          94839 204 29 96145  55 38   20971513
     NTFS found using backup sector!, 10737 MB / 10239 MiB
     HPFS - NTFS          94839 204 29 96145  88  7   20973561
     NTFS found using backup sector!, 10 GB / 10 GiB
     Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, 5368 MB / 5119 MiB
     Linux                96145  88  8 98103 120  1   31457280
     EXT4 Large file Sparse superblock, 16 GB / 15 GiB
     Linux                96951 203 21 98909 235 14   31457280
     EXT4 Large file Sparse superblock Recover, 16 GB / 15 GiB
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux Swap           110949 247 19 111015  61  6    1048560
     SWAP2 version 1, 536 MB / 511 MiB


dir_partition inode=2
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /


dir_partition inode=2
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /


dir_partition inode=2
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /


dir_partition inode=2
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /

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

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
Partition table type (auto): Intel
Disk /dev/sda - 160 GB / 149 GiB - ATA Maxtor 6V160E0
Partition table type: Intel

Analyse Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
heads/cylinder 4 (NTFS) != 255 (HD)
sect/track 17 (NTFS) != 63 (HD)
NTFS at 13056/1/1
Info: size boot_sector 102835385, partition 102848067
get_geometry_from_list_part_aux head=255 nbr=6
get_geometry_from_list_part_aux head=8 nbr=4
get_geometry_from_list_part_aux head=16 nbr=4
get_geometry_from_list_part_aux head=32 nbr=4
get_geometry_from_list_part_aux head=64 nbr=4
get_geometry_from_list_part_aux head=128 nbr=4
get_geometry_from_list_part_aux head=240 nbr=4
get_geometry_from_list_part_aux head=255 nbr=6
Current partition structure:
Warning: Incorrect number of heads/cylinder 4 (NTFS) != 255 (HD)
Warning: Incorrect number of sectors per track 17 (NTFS) != 63 (HD)
 1 * HPFS - NTFS              0   1  1 13055 254 63  209744577 [Ex XP]
 2 E extended LBA         13056   0  1 19457 254 63  102848130
 5 L HPFS - NTFS          13056   1  1 19457 254 63  102848067
Ask the user for vista mode
Allow partial last cylinder : No
search_vista_part: 0

search_part()
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
NTFS at 0/1/1
heads/cylinder 4 (NTFS) != 255 (HD)
sect/track 17 (NTFS) != 63 (HD)
filesystem size           209744577
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 13055 254 63  209744577 [Ex XP]
     NTFS, 107 GB / 100 GiB
NTFS at 13056/1/1
filesystem size           102835385
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               6425996
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          13056   1  1 19457  53 44  102835385
     NTFS, 52 GB / 49 GiB
get_geometry_from_list_part_aux head=255 nbr=3
get_geometry_from_list_part_aux head=8 nbr=3
get_geometry_from_list_part_aux head=16 nbr=3
get_geometry_from_list_part_aux head=32 nbr=3
get_geometry_from_list_part_aux head=64 nbr=3
get_geometry_from_list_part_aux head=128 nbr=3
get_geometry_from_list_part_aux head=240 nbr=3
get_geometry_from_list_part_aux head=255 nbr=3

Results
   * HPFS - NTFS              0   1  1 13055 254 63  209744577 [Ex XP]
     NTFS, 107 GB / 100 GiB
   L HPFS - NTFS          13056   1  1 19457 254 63  102848067
     NTFS, 52 GB / 49 GiB

interface_write()
 1 P HPFS - NTFS              0   1  1 13055 254 63  209744577 [Ex XP]
 2 * HPFS - NTFS          13056   1  1 19457 254 63  102848067
write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
You will have to reboot for the change to take effect.
New options :
 Dump : No
 Cylinder boundary : Yes
 Allow partial last cylinder : No
 Expert mode : No

TestDisk exited normally.
It recognized the partitions but could read none. I'm very confused now, and I would aprecciate every hint that you can give to me. I know the files are there, I won't give up until I have recovered them. With your help, I hope we'll can.

Thank you so much!
Last edited by Laski on 30 Jul 2012, 12:05, edited 1 time in total.

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: "Disk too small" problem

#2 Post by Fiona »

Looks like your partition is somehow resized and ends after disk limit.
You can have a try to increase your size of cylinders to get access to your home partition.
But this is only intended for diagnose purposes and in case to copy your data from;
Example;
http://forum.cgsecurity.org/phpBB3/post ... imit#p3435
Please read all carefully.
Your value to get access to your partition would be 124604.
Please check each listed home partition and try to list your data.

Fiona

Laski
Posts: 8
Joined: 27 Jul 2012, 09:00

Re: "Disk too small" problem

#3 Post by Laski »

Fiona:
First, thank you for answering. Second, unfortunatly I've already tried that (and I took the idea from your posts in the thread you just linked to), but the 'new' partitions that testdisk find can't be read and thus there's no content to copy. I copy again the testdisk log (also in the first post on this thread) but with some garbage off.
Laski wrote: What I've tried: set the cilinders artificially to 124604 so testdisk could try to read the partitions, and then I could copy the contents to another disk and then exit without actually writing the bad geometry to disk. But...

Code: Select all

Fri Jul 27 05:31:42 2012
Command line: TestDisk

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.0.0-22-generic (#36-Ubuntu SMP Tue Jun 12 17:13:04 UTC 2012)
Compiler: GCC 4.5 - Oct 17 2010 20:12:36
ext2fs lib: 1.41.14, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       312581808 sectors
/dev/sda: user_max   312581808 sectors
/dev/sda: native_max 312581808 sectors
/dev/sda: dco        312581808 sectors
/dev/sdb: LBA, HPA, LBA48, DCO support
/dev/sdb: size       1953525168 sectors
/dev/sdb: user_max   1953525168 sectors
/dev/sdb: native_max 1953525168 sectors
/dev/sdb: dco        1953525168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - CHS 1 1 1, sector size=512
/dev/sr0 is not an ATA disk
Hard disk list
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - ATA Maxtor 6V160E0
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - ATA ST31000333AS
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - Generic External
Disk /dev/sdd - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - WD 1600BEV External
Disk /dev/sr0 - 190 MB / 181 MiB - CHS 92867 1 1 (RO), sector size=2048 - HL-DT-ST DVDRAM GH20NS15

Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - ATA ST31000333AS
Partition table type: Intel
New geometry
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63 sector_size=512

Analyse Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
NTFS at 19582/1/1
get_geometry_from_list_part_aux head=255 nbr=3
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=3
Current partition structure:
 1 P HPFS - NTFS              0   1  1 19581 254 63  314584767
 2 P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
 3 P Linux                96145  88  8 98103 120  1   31457280
No partition is bootable
Backup partition structure
partition_save
Allow partial last cylinder : Yes
search_vista_part: 1

search_part()
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, 624 GB / 581 GiB
     Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, 5368 MB / 5119 MiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=9/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96145  88  8 98103 120  1   31457280
     EXT4 Large file Sparse superblock, 16 GB / 15 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
get_geometry_from_list_part_aux head=255 nbr=3
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=3

Results
   * HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
   P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, 624 GB / 581 GiB
   P Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, 5368 MB / 5119 MiB
   L Linux                96145  88  8 98103 120  1   31457280
     EXT4 Large file Sparse superblock, 16 GB / 15 GiB
   L Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB


dir_partition inode=2
   L Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /

interface_write()
 1 * HPFS - NTFS              0   1  1 19581 254 63  314584767
 2 P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
 3 P Linux Swap           95492 162 31 96145  87 54   10485744
 4 E extended LBA         96145  88  1 124604 254 63  457204356
 5 L Linux                96145  88  8 98103 120  1   31457280
 6 L Linux                101060  74  7 124557 201 60  377487360 [Home]

search_part()
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124605 255 63
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
NTFS at 13055/15/16
filesystem size           209729465
sectors_per_cluster       8
mft_lcn                   4
mftmirr_lcn               19661547
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  9 13055  15 16  209729465
     NTFS found using backup sector!, 107 GB / 100 GiB

recover_EXT2: s_block_group_nr=0/399, s_mnt_count=17/35, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 13106432
recover_EXT2: part_size 104851456
     Linux                16207  79  1 22734   2 52  104851456 [wineprefix]
     EXT4 Large file Sparse superblock Recover, 53 GB / 49 GiB

recover_EXT2: s_block_group_nr=0/399, s_mnt_count=17/35, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 13106432
recover_EXT2: part_size 104851456
     Linux                16210   2  1 22736 180 52  104851456 [wineprefix]
     EXT4 Large file Sparse superblock Recover, 53 GB / 49 GiB
NTFS at 19581/254/63
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS found using backup sector!, 161 GB / 150 GiB
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, 624 GB / 581 GiB
NTFS at 94839/171/52
filesystem size           1209014457
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1 11 94839 171 52 1209014457
     NTFS found using backup sector!, 619 GB / 576 GiB
NTFS at 95492/129/61
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1 11 95492 129 61 1219502265
     NTFS found using backup sector!, 624 GB / 581 GiB
     Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, 5368 MB / 5119 MiB
NTFS at 96145/55/38
filesystem size           20971513
sectors_per_cluster       8
mft_lcn                   4
mftmirr_lcn               655648
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          94839 204 29 96145  55 38   20971513
     NTFS found using backup sector!, 10737 MB / 10239 MiB
NTFS at 96145/88/7
filesystem size           20973561
sectors_per_cluster       8
mft_lcn                   4
mftmirr_lcn               655648
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          94839 204 29 96145  88  7   20973561
     NTFS found using backup sector!, 10 GB / 10 GiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=9/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96145  88  8 98103 120  1   31457280
     EXT4 Large file Sparse superblock, 16 GB / 15 GiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=34/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96951 203 21 98909 235 14   31457280
     EXT4 Large file Sparse superblock Recover, 16 GB / 15 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux Swap           110949 247 19 111015  61  6    1048560
     SWAP2 version 1, 536 MB / 511 MiB
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
get_geometry_from_list_part_aux head=255 nbr=3
get_geometry_from_list_part_aux head=8 nbr=3
get_geometry_from_list_part_aux head=16 nbr=3
get_geometry_from_list_part_aux head=32 nbr=2
get_geometry_from_list_part_aux head=64 nbr=2
get_geometry_from_list_part_aux head=128 nbr=2
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=3

Results
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, 161 GB / 150 GiB
     HPFS - NTFS              0   1  9 13055  15 16  209729465
     NTFS found using backup sector!, 107 GB / 100 GiB
     Linux                16207  79  1 22734   2 52  104851456 [wineprefix]
     EXT4 Large file Sparse superblock Recover, 53 GB / 49 GiB
     Linux                16210   2  1 22736 180 52  104851456 [wineprefix]
     EXT4 Large file Sparse superblock Recover, 53 GB / 49 GiB
     HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, 624 GB / 581 GiB
     HPFS - NTFS          19582   1 11 94839 171 52 1209014457
     NTFS found using backup sector!, 619 GB / 576 GiB
     HPFS - NTFS          19582   1 11 95492 129 61 1219502265
     NTFS found using backup sector!, 624 GB / 581 GiB
     HPFS - NTFS          94839 204 29 96145  55 38   20971513
     NTFS found using backup sector!, 10737 MB / 10239 MiB
     HPFS - NTFS          94839 204 29 96145  88  7   20973561
     NTFS found using backup sector!, 10 GB / 10 GiB
     Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, 5368 MB / 5119 MiB
     Linux                96145  88  8 98103 120  1   31457280
     EXT4 Large file Sparse superblock, 16 GB / 15 GiB
     Linux                96951 203 21 98909 235 14   31457280
     EXT4 Large file Sparse superblock Recover, 16 GB / 15 GiB
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux Swap           110949 247 19 111015  61  6    1048560
     SWAP2 version 1, 536 MB / 511 MiB


dir_partition inode=2
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /


dir_partition inode=2
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /


dir_partition inode=2
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /


dir_partition inode=2
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     EXT4 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /

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

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
Partition table type (auto): Intel
Disk /dev/sda - 160 GB / 149 GiB - ATA Maxtor 6V160E0
Partition table type: Intel

Analyse Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
heads/cylinder 4 (NTFS) != 255 (HD)
sect/track 17 (NTFS) != 63 (HD)
NTFS at 13056/1/1
Info: size boot_sector 102835385, partition 102848067
get_geometry_from_list_part_aux head=255 nbr=6
get_geometry_from_list_part_aux head=8 nbr=4
get_geometry_from_list_part_aux head=16 nbr=4
get_geometry_from_list_part_aux head=32 nbr=4
get_geometry_from_list_part_aux head=64 nbr=4
get_geometry_from_list_part_aux head=128 nbr=4
get_geometry_from_list_part_aux head=240 nbr=4
get_geometry_from_list_part_aux head=255 nbr=6
Current partition structure:
Warning: Incorrect number of heads/cylinder 4 (NTFS) != 255 (HD)
Warning: Incorrect number of sectors per track 17 (NTFS) != 63 (HD)
 1 * HPFS - NTFS              0   1  1 13055 254 63  209744577 [Ex XP]
 2 E extended LBA         13056   0  1 19457 254 63  102848130
 5 L HPFS - NTFS          13056   1  1 19457 254 63  102848067
Ask the user for vista mode
Allow partial last cylinder : No
search_vista_part: 0

search_part()
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
NTFS at 0/1/1
heads/cylinder 4 (NTFS) != 255 (HD)
sect/track 17 (NTFS) != 63 (HD)
filesystem size           209744577
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 13055 254 63  209744577 [Ex XP]
     NTFS, 107 GB / 100 GiB
NTFS at 13056/1/1
filesystem size           102835385
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               6425996
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          13056   1  1 19457  53 44  102835385
     NTFS, 52 GB / 49 GiB
get_geometry_from_list_part_aux head=255 nbr=3
get_geometry_from_list_part_aux head=8 nbr=3
get_geometry_from_list_part_aux head=16 nbr=3
get_geometry_from_list_part_aux head=32 nbr=3
get_geometry_from_list_part_aux head=64 nbr=3
get_geometry_from_list_part_aux head=128 nbr=3
get_geometry_from_list_part_aux head=240 nbr=3
get_geometry_from_list_part_aux head=255 nbr=3

Results
   * HPFS - NTFS              0   1  1 13055 254 63  209744577 [Ex XP]
     NTFS, 107 GB / 100 GiB
   L HPFS - NTFS          13056   1  1 19457 254 63  102848067
     NTFS, 52 GB / 49 GiB

interface_write()
 1 P HPFS - NTFS              0   1  1 13055 254 63  209744577 [Ex XP]
 2 * HPFS - NTFS          13056   1  1 19457 254 63  102848067
write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
You will have to reboot for the change to take effect.
New options :
 Dump : No
 Cylinder boundary : Yes
 Allow partial last cylinder : No
 Expert mode : No

TestDisk exited normally.

Laski
Posts: 8
Joined: 27 Jul 2012, 09:00

Re: "Disk too small" problem

#4 Post by Laski »

I don't know if this is legal here but my problem isn't solved and my thread went very far away from first page so...

UP!

PD: If it's illegal and I must repost the thread please notify me.

Laski
Posts: 8
Joined: 27 Jul 2012, 09:00

Re: "Disk too small" problem

#5 Post by Laski »

Hi!

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

Re: "Disk too small" problem

#6 Post by cgrenier »

Can you try again using TestDisk 6.14-WIP ?

Code: Select all

wget -N http://www.cgsecurity.org/testdisk-6.14-WIP.linux26.tar.bz2
tar xjf testdisk-6.14-WIP.linux26.tar.bz2
cd testdisk-6.14-WIP
sudo ./testdisk_static

Laski
Posts: 8
Joined: 27 Jul 2012, 09:00

Re: "Disk too small" problem

#7 Post by Laski »

Of course.

Code: Select all

Mon Sep 10 00:01:13 2012
Command line: TestDisk

TestDisk 6.14-WIP, Data Recovery Utility, July 2012
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.0.0-22-generic (#36-Ubuntu SMP Tue Jun 12 17:13:04 UTC 2012) i686
Compiler: GCC 4.4
Compilation date: 2012-08-30T21:56:20
ext2fs lib: 1.41.12, ntfs lib: libntfs-3g, reiserfs lib: 0.3.1-rc8, ewf lib: 20100226
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       312581808 sectors
/dev/sda: user_max   312581808 sectors
/dev/sda: native_max 312581808 sectors
/dev/sda: dco        312581808 sectors
/dev/sdb: LBA, HPA, LBA48, DCO support
/dev/sdb: size       1953525168 sectors
/dev/sdb: user_max   1953525168 sectors
/dev/sdb: native_max 1953525168 sectors
/dev/sdb: dco        1953525168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 1 sectors, sector size=512
/dev/sr0 is not an ATA disk
Hard disk list
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - Maxtor 6V160E0, S/N:V40V0BKG, FW:VA111900
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - ST31000333AS, S/N:9TE20CF3, FW:CC1H
Disk /dev/sdc - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - WD 1600BEV External, FW:1.75
Disk /dev/sr0 - 190 MB / 181 MiB - 92867 sectors (RO), sector size=2048 - HL-DT-ST DVDRAM GH20NS15, S/N:K5685TA2619, FW:IL00

Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - ST31000333AS
Partition table type: Intel

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
NTFS at 19582/1/1
get_geometry_from_list_part_aux head=255 nbr=3
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=3
Current partition structure:
 1 P HPFS - NTFS              0   1  1 19581 254 63  314584767
 2 P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
 3 P Linux                96145  88  8 98103 120  1   31457280
No partition is bootable

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, blocksize=4096, 161 GB / 150 GiB
Error: size boot_sector 1219502265 > partition 1209014467
check_part_i386 failed for partition type 07
     HPFS - NTFS          19582   1  1 94839 171 52 1209014467
     Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, pagesize=4096, 5368 MB / 5119 MiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=20/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96145  88  8 98103 120  1   31457280
     ext4 blocksize=4096 Large file Sparse superblock, 16 GB / 15 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
This partition ends after the disk limits. (start=1623533568, size=377487360, end=2001020927, disk end=1953525168)

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
This partition ends after the disk limits. (start=1623547904, size=377487360, end=2001035263, disk end=1953525168)

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
This partition ends after the disk limits. (start=1623685120, size=377487360, end=2001172479, disk end=1953525168)

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
This partition ends after the disk limits. (start=1623857152, size=377487360, end=2001344511, disk end=1953525168)

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
This partition ends after the disk limits. (start=1624236032, size=377487360, end=2001723391, disk end=1953525168)

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
This partition ends after the disk limits. (start=1624260608, size=377487360, end=2001747967, disk end=1953525168)
     Linux Swap           110949 247 19 111015  61  6    1048560
     SWAP2 version 1, pagesize=4096, 536 MB / 511 MiB
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Check the harddisk size: HD jumpers settings, BIOS detection...
The harddisk (1000 GB / 931 GiB) seems too small! (< 1024 GB / 954 GiB)
The following partitions can't be recovered:
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
get_geometry_from_list_part_aux head=255 nbr=3
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=3

Results
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, blocksize=4096, 161 GB / 150 GiB
     HPFS - NTFS          19582   1  1 94839 254 63 1209019707
     Linux Swap           95492 162 31 96145  88  7   10485760
     SWAP2 version 1, pagesize=4096, 5368 MB / 5120 MiB
     Linux                96145  88  8 98103 120  1   31457280
     ext4 blocksize=4096 Large file Sparse superblock, 16 GB / 15 GiB
     Linux Swap           110949 247 19 111015  61 22    1048576
     SWAP2 version 1, pagesize=4096, 536 MB / 512 MiB

(...)

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

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
New geometry
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124604 255 63 sector_size=512

Analyse Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124604 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
NTFS at 19582/1/1
get_geometry_from_list_part_aux head=255 nbr=3
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=3
Current partition structure:
 1 P HPFS - NTFS              0   1  1 19581 254 63  314584767
 2 P HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
 3 P Linux                96145  88  8 98103 120  1   31457280
No partition is bootable

search_part()
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124604 255 63
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, blocksize=4096, 161 GB / 150 GiB
Error: size boot_sector 1219502265 > partition 1209014467
check_part_i386 failed for partition type 07
     HPFS - NTFS          19582   1  1 94839 171 52 1209014467
     Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, pagesize=4096, 5368 MB / 5119 MiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=20/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96145  88  8 98103 120  1   31457280
     ext4 blocksize=4096 Large file Sparse superblock, 16 GB / 15 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
get_geometry_from_list_part_aux head=255 nbr=3
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=3

Results
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, blocksize=4096, 161 GB / 150 GiB
     HPFS - NTFS          19582   1  1 94839 254 63 1209019707
     Linux Swap           95492 162 31 96145  88  7   10485760
     SWAP2 version 1, pagesize=4096, 5368 MB / 5120 MiB
     Linux                96145  88  8 98103 120  1   31457280
     ext4 blocksize=4096 Large file Sparse superblock, 16 GB / 15 GiB
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB


dir_partition inode=2
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                96145  88  8 98103 120  1   31457280
     ext4 blocksize=4096 Large file Sparse superblock, 16 GB / 15 GiB
Directory /
       2 drwxr-xr-x     0      0      4096 17-Nov-2011 23:04 .
       2 drwxr-xr-x     0      0      4096 17-Nov-2011 23:04 ..
      11 drwx------     0      0     16384 22-Sep-2011 02:30 lost+found
  131329 drwxr-xr-x     0      0      4096 26-Sep-2011 03:40 var
  525313 drwxr-xr-x     0      0      4096 24-Feb-2012 22:36 home
  787969 drwxr-xr-x     0      0     12288 24-Feb-2012 22:38 etc
  262657 drwxr-xr-x     0      0      4096 18-Nov-2011 00:12 media
  656641 drwxr-xr-x     0      0      4096  2-Nov-2011 23:25 bin
  393985 drwxr-xr-x     0      0      4096 17-Nov-2011 01:13 boot
  787971 drwxr-xr-x     0      0      4096 22-Feb-2012 18:34 dev
  262658 drwxr-xr-x     0      0      4096 28-Sep-2011 04:04 lib
      12 lrwxrwxrwx     0      0         4 22-Sep-2011 02:30 lib64
  393986 drwxr-xr-x     0      0      4096 21-Apr-2011 13:51 mnt
  525314 drwxr-xr-x     0      0      4096  5-Oct-2011 01:17 opt
  656642 drwxr-xr-x     0      0      4096 21-Apr-2011 13:51 proc
  525315 drwx------     0      0      4096 18-Nov-2011 02:08 root
  787972 drwxr-xr-x     0      0     12288 16-Nov-2011 16:43 sbin
  262659 drwxr-xr-x     0      0      4096 21-Mar-2011 05:35 selinux
      13 drwxr-xr-x     0      0      4096 25-Apr-2011 19:51 srv
  393987 drwxr-xr-x     0      0      4096 28-Mar-2011 17:21 sys
  656643 drwxrwxrwt     0      0     20480 24-Feb-2012 22:38 tmp
  262660 drwxr-xr-x     0      0      4096 22-Sep-2011 03:03 usr
   19128 lrwxrwxrwx     0      0        33 17-Nov-2011 01:13 initrd.img
      14 lrwxrwxrwx     0      0        30 17-Nov-2011 01:13 vmlinuz
X   1213 lrwxrwxrwx     0      0        30 28-Sep-2011 02:49 vmlinuz.15383
  413265 drwxr-xr-x     0      0     12288 26-Sep-2011 05:16 lib32
    1212 lrwxrwxrwx     0      0        33 28-Sep-2011 02:49 initrd.img.old
    1213 lrwxrwxrwx     0      0        30 28-Sep-2011 02:49 vmlinuz.old
X   2681 drwx------  1000   1000      4096 24-Feb-2012 22:37 device.map.rescatux
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_ucstoutf8: iconv_open failed

interface_write()
 
No partition found or selected for recovery

search_part()
Disk /dev/sdb - 1024 GB / 954 GiB - CHS 124604 255 63
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, blocksize=4096, 161 GB / 150 GiB
NTFS at 13055/15/16
filesystem size           209729465
sectors_per_cluster       8
mft_lcn                   4
mftmirr_lcn               19661547
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  9 13055  15 16  209729465
     NTFS found using backup sector, blocksize=4096, 107 GB / 100 GiB

recover_EXT2: s_block_group_nr=0/399, s_mnt_count=17/35, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 13106432
recover_EXT2: part_size 104851456
     Linux                16207  79  1 22734   2 52  104851456 [wineprefix]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 53 GB / 49 GiB
check_part_i386 failed for partition type 07
     HPFS - NTFS          19581  96 36 90923  75 32 1146107904
NTFS at 19581/254/63
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS found using backup sector, blocksize=4096, 161 GB / 150 GiB
Error: size boot_sector 1219502265 > partition 1209014467
check_part_i386 failed for partition type 07
     HPFS - NTFS          19582   1  1 94839 171 52 1209014467
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1  1 95492 129 51 1219502265 [shared]
     NTFS, blocksize=4096, 624 GB / 581 GiB
NTFS at 94839/171/52
filesystem size           1209014457
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1 11 94839 171 52 1209014457
     NTFS found using backup sector, blocksize=4096, 619 GB / 576 GiB
NTFS at 95492/129/61
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          19582   1 11 95492 129 61 1219502265
     NTFS found using backup sector, blocksize=4096, 624 GB / 581 GiB
     Linux Swap           95492 162 31 96145  87 54   10485744
     SWAP2 version 1, pagesize=4096, 5368 MB / 5119 MiB
NTFS at 96145/55/38
filesystem size           20971513
sectors_per_cluster       8
mft_lcn                   4
mftmirr_lcn               655648
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          94839 204 29 96145  55 38   20971513
     NTFS found using backup sector, blocksize=4096, 10737 MB / 10239 MiB
NTFS at 96145/88/7
filesystem size           20973561
sectors_per_cluster       8
mft_lcn                   4
mftmirr_lcn               655648
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS          94839 204 29 96145  88  7   20973561
     NTFS found using backup sector, blocksize=4096, 10 GB / 10 GiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=20/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96145  88  8 98103 120  1   31457280
     ext4 blocksize=4096 Large file Sparse superblock, 16 GB / 15 GiB

recover_EXT2: s_block_group_nr=0/120, s_mnt_count=34/37, s_blocks_per_group=32768, s_inodes_per_group=8208
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3932160
recover_EXT2: part_size 31457280
     Linux                96951 203 21 98909 235 14   31457280
     ext4 blocksize=4096 Large file Sparse superblock Recover, 16 GB / 15 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB

recover_EXT2: s_block_group_nr=0/1440, s_mnt_count=10/31, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 47185920
recover_EXT2: part_size 377487360
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux Swap           110949 247 19 111015  61  6    1048560
     SWAP2 version 1, pagesize=4096, 536 MB / 511 MiB
NTFS at 0/1/1
filesystem size           314584767
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
NTFS at 19582/1/1
filesystem size           1219502265
sectors_per_cluster       8
mft_lcn                   88146816
mftmirr_lcn               4411315
clusters_per_mft_record   -10
clusters_per_index_record 1
get_geometry_from_list_part_aux head=255 nbr=4
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=2
get_geometry_from_list_part_aux head=32 nbr=2
get_geometry_from_list_part_aux head=64 nbr=2
get_geometry_from_list_part_aux head=128 nbr=2
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=4

Results
     HPFS - NTFS              0   1  1 19581 254 63  314584767
     NTFS, blocksize=4096, 161 GB / 150 GiB
     HPFS - NTFS              0   1  9 13055  15 16  209729465
     NTFS found using backup sector, blocksize=4096, 107 GB / 100 GiB
     Linux                16207  79  1 22734   2 52  104851456 [wineprefix]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 53 GB / 49 GiB
     HPFS - NTFS          19581  96 36 90923  75 32 1146107904
     HPFS - NTFS          19582   1  1 94839 254 63 1209019707
     HPFS - NTFS          19582   1  1 95492 254 63 1219510152 [shared]
     NTFS, blocksize=4096, 624 GB / 581 GiB
     HPFS - NTFS          19582   1 11 94839 171 52 1209014457
     NTFS found using backup sector, blocksize=4096, 619 GB / 576 GiB
     HPFS - NTFS          19582   1 11 95492 129 61 1219502265
     NTFS found using backup sector, blocksize=4096, 624 GB / 581 GiB
     HPFS - NTFS          94839 204 29 96145  55 38   20971513
     NTFS found using backup sector, blocksize=4096, 10737 MB / 10239 MiB
     HPFS - NTFS          94839 204 29 96145  88  7   20973561
     NTFS found using backup sector, blocksize=4096, 10 GB / 10 GiB
     Linux Swap           95492 162 31 96145  88  7   10485760
     SWAP2 version 1, pagesize=4096, 5368 MB / 5120 MiB
     Linux                96145  88  8 98103 120  1   31457280
     ext4 blocksize=4096 Large file Sparse superblock, 16 GB / 15 GiB
     Linux                96951 203 21 98909 235 14   31457280
     ext4 blocksize=4096 Large file Sparse superblock Recover, 16 GB / 15 GiB
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
     Linux Swap           110949 247 19 111015  61 22    1048576
     SWAP2 version 1, pagesize=4096, 536 MB / 512 MiB


dir_partition inode=2
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /


dir_partition inode=2
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /


dir_partition inode=2
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                96951 203 21 98909 235 14   31457280
     ext4 blocksize=4096 Large file Sparse superblock Recover, 16 GB / 15 GiB
ext2fs_dir_iterate failed with error 1.
Directory /

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

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition

TestDisk exited normally.
Thank you very much for answering!

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

Re: "Disk too small" problem

#8 Post by cgrenier »

After Deeper Search, several Home partitions are listed. For each partition, use 'p' to list its content.
This way you should be able to find which one is correct. Use the arrow keys to switch this partition from D(eleted) to P(rimary). Do the same for the other partitions you want to keep/recover. On next screen, if all your partitions are listed, choose Write, confirm, Quit and restart your computer.

Laski
Posts: 8
Joined: 27 Jul 2012, 09:00

Re: "Disk too small" problem

#9 Post by Laski »

cgrenier wrote:After Deeper Search, several Home partitions are listed. For each partition, use 'p' to list its content.
This way you should be able to find which one is correct. Use the arrow keys to switch this partition from D(eleted) to P(rimary). Do the same for the other partitions you want to keep/recover. On next screen, if all your partitions are listed, choose Write, confirm, Quit and restart your computer.
Hey, I'm not a total n00b :lol:. That was, as you say, the first thing I tried. Were that worked, I woudn't have posted the log and in replace will be a very big "Thank you" :). But the situation was the same as with the 6.11 version. As you can see in this part of the log

Code: Select all

dir_partition inode=2
     Linux                101105 139 27 124603  12 17  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /


dir_partition inode=2
     Linux                101104   4 21 124601 132 11  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571402.
Directory /


dir_partition inode=2
     Linux                101080 110 23 124577 238 13  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101069 184 44 124567  57 34  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 1.
Directory /


dir_partition inode=2
     Linux                101061  46 42 124558 174 32  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                101060  74  7 124557 201 60  377487360 [Home]
     ext4 blocksize=4096 Large file Sparse superblock Recover, 193 GB / 180 GiB
ext2fs_dir_iterate failed with error 2133571387.
Directory /


dir_partition inode=2
     Linux                96951 203 21 98909 235 14   31457280
     ext4 blocksize=4096 Large file Sparse superblock Recover, 16 GB / 15 GiB
ext2fs_dir_iterate failed with error 1.
Directory /
they all showed an error when I tried to list files. I think I need to do something with the start and end block data, but I don't know exactly what and I don't wanna mess things up playing around with commands that nobody told me how to use. I already did enough damage :?.

Thank you again!

raichu21
Posts: 4
Joined: 18 Oct 2012, 08:50

Re: "Disk too small" problem

#10 Post by raichu21 »

Image

Image


Image


Image

Image


hi I'm using WD 3TB HDD

first, my file was lost.

so, I found this testdisk program and I try to fix it.


suddenly, my file capacity was bigger than ever.




how can I find my files and original capacity?


seems to too big..

I want to find my files and orginal capacity. too big now

Locked