When formatting the SD card in CentOS, the operation is wrong and the Windows system C Drive is formatted incorrectly. the C- Drive is in ntf format and is now in the FAT32 format.
Reboot the system and find that you can still get to CentOS, but window won't enter. This proves that the partition table has not changed and that the grub of CentOS has not been destroyed.
Using pe to enter the system,PE has many, such as cabbage, old peaches,u start and so on. Can be entered into the pre-installation environment.
After entering, format the C Drive as NTFSanduse diskgenius for data recovery. the C Drive data is restored, but it cannot be set as the primary partition.
1.Windows
Because I do not want to re-install the system, I would like to repair the MBR,GRUB, partition table, etc. to repair the system, so has been tossing. It turns out I'm still too water, and I've formatted my entire hard drive. 500G of hard disk Ah, there is data ah. The format is gone, what to do, and after the restart in the Diskgenius can not find the hard disk.
On the PE Right-click Computer, select Manage.
Then select Disk Management, as shown below, format the 500G hard disk as NTFS (the partition is the partition from which I have finished loading).
Then in the Diskgenius to view, identify the 500G hard disk, in the format of NTFS.
1.1 rebuilding a partitioned table
In the diskgenius Select the following, the search process will show the search for the partition table, you can also view the data of this partition. You will need to select the results of the search, keep the partition, ignore or exit the search. Look at the data in the partition you are searching for, and confirm whether it is your own data and whether it is the partition you want.
1.2 recovery C Drive
After rebuilding the partition table, the C Drive and the D Drive are new, and the data is still there. Just put the C Drive:
A, adjust the primary partition
b. Set as active partition
C, repair MBR
Then Windows should be ready to start. But it was forgotten that the MBR also needs to be repaired. So the first 2 steps, it's useless.
As shown, in the C - Drive Right-click, select Convert to Primary partition, and activate the current partition.
After saving, reboot, still cannot enter Windows, and the original CentOS also does not exist, the disk format is in NTFS format. The master boot information record was destroyed, so it could not be entered, so the Windows reload .
Fix the MBR in the following way.
Select the hard disk and rebuild the master boot Record (MBR).
2.CentOS
The
was bent on Centos recovery, do not want to reload." So first fix the the Span style= "Font-family:times New Roman;" >grub ultraiso , centos The disc is added to the u pan to. Install Dual systems are also u disk. Then from u disk starts, it goes to Span style= "Font-family:times New Roman;" >centos Installation interface. Enter Rescue mode
All the way, and finally into the shell. Because the system is located in the drive letter has been formatted, so can not find the letter, but in the PE search sub-table when the search in addition to the boot partition, it is possible to repair.
Enter the shell to view the partition.
The ID is 0x83 the/boot partition of Linux. The time to fix this is to write the partition into grub.
you can also operate GRUB by determining the/boot partition. Enter Grub:
Sh#grub
This prompt will appear :
Grub>
We can then enter the following characters :
Grub>root (Hdx,y)
Grub>setup (HdX)
If successful there will be a successful ...
Here's x if it is The first dish is 0 If you installed linux x 1 is the linux The root partition where the system resides.
And after the operation of root (hdx,y), there will be output, the prompt is correct, pay attention to check, correct will explain the system ID in the drive letter is the linux,
Setup (HdX) is to write GRUB on the MBR of the hard disk . For example, in/dev/sda1 , you should enter hd0,0.
The setup (hdX) command is then manipulated.
And I was/dev/sdb6 after that, so it should be
Root (hd1,5)
Setup (HD1)
From the start, the CentOS grub interface will appear, but because the drive letter of the root partition is formatted, it does not enter the system.
Window,centos, the double decency is broken.