Page 1 of 1

Not able to recover a partition

Posted: 21 Apr 2016, 21:56
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.

Re: Not able to recover a partition

Posted: 22 Apr 2016, 06:12
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...

Re: Not able to recover a partition

Posted: 22 May 2016, 15:27
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.