Not able to recover a partition

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
jhaji2k6
Posts: 2
Joined: 21 Apr 2016, 21:46

Not able to recover a partition

#1 Post by jhaji2k6 »

Hi,

When I run testdisk then one partition is not listed there.

When i run it like below

Code: Select all

[root@localhost testdisk-7.0]# testdisk /dev/sda1
I get below screen:

Code: Select all

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

  TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.

Select a media (use Arrow keys, then press Enter):
>Disk /dev/sda1 - 104 MB / 100 MiB - Samsung SSD 850 EVO 500GB
I choose Proceed and then i get below one.

Code: Select all

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org


Disk /dev/sda1 - 104 MB / 100 MiB - Samsung SSD 850 EVO 500GB

Please select the partition table type, press Enter when done.
>[Intel  ] Intel/PC partition
 [EFI GPT] EFI GPT partition map (Mac i386, some x86_64...)
 [Humax  ] Humax partition table
 [Mac    ] Apple partition map
 [None   ] Non partitioned media
 [Sun    ] Sun Solaris partition
 [XBox   ] XBox partition
 [Return ] Return to disk selection



Hint: Intel partition table type has been detected.
Note: Do NOT select 'None' for media with only a single partition. It's very
rare for a disk to be 'Non-partitioned'.

In above screen i keep Intel selected and continue to next screen. where i get option to analyze.

Code: Select all

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org


Disk /dev/sda1 - 104 MB / 100 MiB - Samsung SSD 850 EVO 500GB
     CHS 12 255 63 - sector size=512

>[ Analyse  ] Analyse current partition structure and search for lost partitions
 [ Advanced ] Filesystem Utils
 [ Geometry ] Change disk geometry
 [ Options  ] Modify options
 [ MBR Code ] Write TestDisk MBR code to first sector
 [ Delete   ] Delete all data in the partition table
 [ Quit     ] Return to disk selection





Note: Correct disk geometry is required for a successful recovery. 'Analyse'
process may give some warnings if it thinks the logical geometry is mismatched

I choose Analyze and when i analyze it i get below error.

Code: Select all

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda1 - 104 MB / 100 MiB - CHS 12 255 63
Current partition structure:
     Partition                  Start        End    Size in sectors

 1 * Sys=4F               120527  49 53 234813 237 34 1836016416

Warning: Bad starting cylinder (CHS and LBA don't match)
 2 * Sys=73               119380 132 62 153270  41 37  544437093

Warning: Bad starting cylinder (CHS and LBA don't match)
 3 * Sys=2B               113201  29 24 147074 114 59  544175136

Warning: Bad starting cylinder (CHS and LBA don't match)
 4 * SpeedStor            177063 118 26 177066 225 63	   54974

Warning: Bad starting cylinder (CHS and LBA don't match)
Only one partition must be bootable
Space conflict between the following two partitions
 3 * Sys=2B               113201  29 24 147074 114 59  544175136
 2 * Sys=73               119380 132 62 153270  41 37  544437093
Space conflict between the following two partitions
 2 * Sys=73               119380 132 62 153270  41 37  544437093
 1 * Sys=4F               120527  49 53 234813 237 34 1836016416
Space conflict between the following two partitions
 1 * Sys=4F               120527  49 53 234813 237 34 1836016416
 4 * SpeedStor            177063 118 26 177066 225 63	   54974

Choosing quick search and then deeper search does not list any partition.

Any help is much appreciated.

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

Re: Not able to recover a partition

#2 Post by cgrenier »

/dev/sda1 is a partition. Why are you searching a partition inside a partition ? It's useless.
The disk is /dev/sda , not /dev/sda1. Please explain what the problem is, what error message you have...

jhaji2k6
Posts: 2
Joined: 21 Apr 2016, 21:46

Re: Not able to recover a partition

#3 Post by jhaji2k6 »

Hi,

Thanks for your reply! Sorry for late reply i was away from location.

/dev/sda1 is boot partition of windows 7 which is installed together with CentOS 7. When i boot windows 7 by choosing it from selection menu, it says "Boot device not found". I tried to repair the windows 7 boot partition using repair disk but it could not find the this partition for repair. I tried using chkdisk command and it says that this partition is corrupted. So I am trying to repair the partition using testdisk.

Please let me know if i can provide more information.

Locked