ext4 - This partition ends after the disk limits.

How to use TestDisk to recover lost partition
Post Reply
Message
Author
x58hack
Posts: 1
Joined: 05 Apr 2012, 04:23

ext4 - This partition ends after the disk limits.

#1 Post by x58hack » 05 Apr 2012, 04:39

Hello,

I am trying to recover 550 movies archive (2TB) lost due to bad HD sectors. I always maintained backup copy, but when I was moving files around when reorganizing storage I used WD MyBook Studio in raid0 as a temporary storage. It gave me no indication of problems when I was moving files on it only to realize, that when I wanted to get data off it they were corrupted due to bad sectors on one of the drives....

So here I am, a week into the process and my head is going nuts. First I did ddrescue with no retries and I could then reassemble raid0 and read data off it. They were, however, still corrupted where part of files on bad sectors were filled with zeros.

So I did second ddrescue to a different 2TB drive with retries. Error file size decreased from 32MB to about 1MB however when I put disks together into raid0 array in the MyBook I was missing partition. And to make it worse none of superblocks were available, not even backup ones.

I tried number of tools in Ubuntu with no result. Then I tried testdisk running on OSX (my main system) which discovered some partition but the disk was still unreadable in Linux and the partition was only in size of the data, not the entire disk (I think this is part of the problem).

So I tried testdisk again in Linux and specified in Advanced mode correct number of cylinders. Testdisk discovered partition but gave me this:

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.0.0-17-generic (#30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012)
Compiler: GCC 4.5 - Oct 17 2010 19:13:58
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 390721968 sectors
/dev/sda: user_max 390721968 sectors
/dev/sda: native_max 390721968 sectors
/dev/sda: dco 390721968 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
/dev/sdc: LBA, LBA48 support
/dev/sdc: size 7814025568 sectors
/dev/sdc: user_max 7814025568 sectors
/dev/sdd: LBA, HPA, LBA48, DCO support
/dev/sdd: size 1953525168 sectors
/dev/sdd: user_max 1953525168 sectors
/dev/sdd: native_max 1953525168 sectors
/dev/sdd: dco 1953525168 sectors
/dev/sde: LBA, HPA, LBA48, DCO support
/dev/sde: size 1953525168 sectors
/dev/sde: user_max 1953525168 sectors
/dev/sde: native_max 1953525168 sectors
/dev/sde: dco 1953525168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - CHS 1 1 1, sector size=512
Hard disk list
Disk /dev/sda - 200 GB / 186 GiB - CHS 24321 255 63, sector size=512 - ATA FUJITSU MHY2200B
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - ATA SAMSUNG HD103UJ
Disk /dev/sdc - 4000 GB / 3726 GiB - CHS 486400 255 63, sector size=512 - ATA WD My Book
Disk /dev/sdd - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - ATA WDC WD10EACS-00C
Disk /dev/sde - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - ATA WDC WD10EACS-00D

Partition table type (auto): Intel
Disk /dev/sdc - 4000 GB / 3726 GiB - ATA WD My Book
Partition table type: Intel
New geometry
Disk /dev/sdc - 4000 GB / 3726 GiB - CHS 486400 255 63 sector_size=512

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
check_part_i386 failed for partition type 83
1 P Linux 0 4 6 267349 93 8 4294967295

Analyse Disk /dev/sdc - 4000 GB / 3726 GiB - CHS 486400 255 63
Geometry from i386 MBR: head=255 sector=63
check_part_i386 failed for partition type 83
Current partition structure:
No EXT2, JFS, Reiser, cramfs or XFS marker
1 P Linux 0 4 6 267349 93 8 4294967295
1 P Linux 0 4 6 267349 93 8 4294967295
No partition is bootable
Ask the user for vista mode
Allow partial last cylinder : No
search_vista_part: 0

search_part()
Disk /dev/sdc - 4000 GB / 3726 GiB - CHS 486400 255 63

recover_EXT2: s_block_group_nr=0/29808, s_mnt_count=21/39, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 976751968
recover_EXT2: part_size 7814015744
Linux 0 4 6 486400 0 1 7814015744 [1.41.12-2198]
EXT4 Large file Sparse superblock, 4000 GB / 3726 GiB
This partition ends after the disk limits. (start=257, size=7814015744, end=7814016000, disk end=7814016000)
Disk /dev/sdc - 4000 GB / 3726 GiB - CHS 486400 255 63
Check the harddisk size: HD jumpers settings, BIOS detection...
The harddisk (4000 GB / 3726 GiB) seems too small! (< 4000 GB / 3726 GiB)
The following partition can't be recovered:
Linux 0 4 6 486400 0 1 7814015744 [1.41.12-2198]
EXT4 Large file Sparse superblock, 4000 GB / 3726 GiB

Results

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.

I am at loos as what to change to make partition smaller then disc size or what shall I do? Many thanks!

Sponsored links

User avatar
remy
Posts: 457
Joined: 25 Mar 2012, 10:21
Location: Strasbourg, France.
Contact:

Re: ext4 - This partition ends after the disk limits.

#2 Post by remy » 12 Apr 2012, 22:10

Please give feedback about :

Your ddrescue log (using [ code ] for easier reading, or by mail), and, with original disks connected :

Code: Select all

sudo sfdisk -luS
Is it a logical raid using mdadm or is it a fake-raid, or a full hardware raid ?
J'ai pour habitude d'aller au bout de l'aide que j'apporte. Si vous pensez que je vous ai abandonné, et que je ne l'ai pas fait explicitement, c'est que votre message est enfoui avec d'autres. Relancez-moi (modérément) par mail.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests