DIsk too smal!! Linux partition table completely damaged

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
julioarguello
Posts: 5
Joined: 19 Jun 2014, 07:50

DIsk too smal!! Linux partition table completely damaged

#1 Post by julioarguello »

Hi all,

Thanks in advanced for your support.

Yesterdays morning, mi computer power off itself due to battery power gets down. After this no longer boot.

I have tried some thing by myself - error!!!!!!! - and at now it seems testdisk is unable to recover things.

I lose any hope of recovering it all, but unless home partition is important for me.

Find below the output of deep search within testdisk, could you give me any hint?
TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda - 320 GB / 298 GiB - CHS 38913 255 63

The harddisk (320 GB / 298 GiB) seems too small! (< 404 GB / 376 GiB)
Check the harddisk size: HD jumpers settings, BIOS detection...

The following partitions can't be recovered:
Partition Start End Size in sectors
> Linux 22630 93 56 49115 235 16 425490432 [home]
Linux 22638 4 23 49123 145 46 425490432 [home]
Linux 22639 74 28 49124 215 51 425490432 [home]








[ Continue ]
ext4 blocksize=4096 Large file Sparse superblock Recover, 217 GB / 202 GiB

julioarguello
Posts: 5
Joined: 19 Jun 2014, 07:50

Re: DIsk too smal!! Linux partition table completely damaged

#2 Post by julioarguello »

After hitting ENTER, following output is displayed:
TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda - 320 GB / 298 GiB - CHS 38913 255 63
Partition Start End Size in sectors
>* HPFS - NTFS 0 32 33 140 91 15 2252800 [system reserved]
P HPFS - NTFS 140 91 16 9460 16 28 149721088 [windows]
Linux 9460 48 61 10463 218 59 16123904 [NEW VOLUME]
Linux Swap 9460 81 30 10463 251 28 16123904
Linux 9460 81 30 10463 251 28 16123904 [NEW VOLUME]
Linux 10463 251 29 12427 86 11 31541248
Linux 10464 28 61 12427 118 43 31541248 [root]
Linux 10471 64 26 12434 154 8 31541248 [root]
Linux 10475 84 42 12438 174 24 31541248 [root]
Linux 10476 122 15 12439 211 60 31541248 [root]
Linux 10506 241 40 12470 76 22 31541248 [root]
Linux 12427 118 44 38913 5 4 425490432
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
Enter: to continue
NTFS found using backup sector, blocksize=4096, 1153 MB / 1100 MiB

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

Re: DIsk too smal!! Linux partition table completely damaged

#3 Post by Fiona »

Looks like that your partition is not listed anymore, because it ends after disk limit.
Did you already run a Deeper Seach?
In case, I've had a trick to have a try to list your files and folders and copy them off of your partition.
In case, increasing the amount of cylinders using the menu geometry helped, so that your partition which ends after disk limit will be displayed as recoverable
Then you can have a try to list your files.
Please note:
Accessing virtual space after disk limit will cause read errors.
This action will only increase the size of your disk virtually and if you close testdisk, nothing will be changed.
Don't use the menu "Write" to change/modify anything to your partition table.
You can go to the menu "Geometry and Cylinders".
Enter the value 49125.
Don't change anything else.
If testdisk displays all three home partitions, you can press enter to stop the scan.
So you'll not scan the virtual space, but your 3 home partitions should be listed.
In case, if it's necessary, try Deeper Search?
Check all three partitions after another and press p to have a try to list your files.
If your files are listed, you can copy them.
At the bottom of the display, you'll find all the commands.
Standard path will be the testdisk folder.
Here are some examples:
http://forum.cgsecurity.org/phpBB3/post ... nder#p7016
and here:
http://forum.cgsecurity.org/phpBB3/post3435.html#p3435

Please let me know.

Fiona

julioarguello
Posts: 5
Joined: 19 Jun 2014, 07:50

Re: DIsk too smal!! Linux partition table completely damaged

#4 Post by julioarguello »

Thanks indeed!. I will give it a try and feedback to you

julioarguello
Posts: 5
Joined: 19 Jun 2014, 07:50

Re: DIsk too smal!! Linux partition table completely damaged

#5 Post by julioarguello »

Excuse me.

At now, I have been able to localize the data thanks to your trick and currently it is copying files -more than 2.000.000 files- However Im facing that the destination disk is not refreshing the contents of the target directory. Used and remaining disk storage is updated, but however the number of files no, is it ok?

Please note the process is still being executed and I cannot take further action, could I?

Thanks indeed

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

Re: DIsk too smal!! Linux partition table completely damaged

#6 Post by Fiona »

Please wait until the copy process will be finished.
Then you can check the amount and content of your copied files.
Before it's difficult to judge.

Fiona

julioarguello
Posts: 5
Joined: 19 Jun 2014, 07:50

Re: DIsk too smal!! Linux partition table completely damaged

#7 Post by julioarguello »

OK, at now I have been able to copy files from Linux Home and Root partitions.

However whenever I try to see the files of the HPFS-NTFS filesystem testdisk crash, something I can do?

On other hand, I see that al linux partitions are KO within partition table but I know which are the right values to fix them, but I dont really know how to change them.

Im able to mount the home partition just adding it, but how can I make these changes permanent?

Thanks indeed for your support!

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

Re: DIsk too smal!! Linux partition table completely damaged

#8 Post by Fiona »

The length of your home partition was beyond your disk limit.
That's why, I recommended to copy your data.
It's not intended to write something to your partition table.
So your disk shouldn't be changed nor modified?
Now I've no idea why your windows partition crashes?
Is your windows partition still accesible through your OS?
Faulty file system?

Fiona

Locked