Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Recover Partitions from diskpart -> clean command

26 Oct 2014   #1
rgirish

Windows 8,1
 
 
Recover Partitions from diskpart -> clean command

Hi Guys,

I was trying to install windows 7 on my windows 8 laptop (UEFI) and when it didnt allow me to install win7 on partitioned drive I followed YouTube video foolishly and fired diskpart - clean command. everything gone after that. Luckily I didnt do anything after that and referred one of the thread here on sevenforums. followed some of the suggestions give by Kaktussoft and was able to see all the partitions using partition wizard and it showed me correct list of partitions including recovery partitions. I used partition wizard to restore them but I see the bootable drive letters are not restored. Now that when I try to boot the laptop doesnt boot.

How do I fix this? does it need to rebuild the MBR ? if yes how?


My System SpecsSystem Spec
.
26 Oct 2014   #2
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Hello and welcome rgirlish this might help if that is all you want.
MBR - Restore Windows 7 Master Boot Record

Just by the way have you just joined or read that answer by Kaktussoft as he has been in in here for a while - just curious.
My System SpecsSystem Spec
26 Oct 2014   #3
rgirish

Windows 8,1
 
 

Thanks for the link ICit2lol, I followed the instructions using usb win7 bootable but somehow it doesnt detect the windows installation because its windows 8. So these instruction did not work for me. something to do with windows 8 BCD on UEFI I guess.

I just joined but was reading some of the threads last couple of days and thats where I read Kaktussoft's postings.

I could not find the answer for my problem so I decided to open a new thread.



Quote   Quote: Originally Posted by ICit2lol View Post
Hello and welcome rgirlish this might help if that is all you want.
MBR - Restore Windows 7 Master Boot Record

Just by the way have you just joined or read that answer by Kaktussoft as he has been in in here for a while - just curious.
My System SpecsSystem Spec
.

26 Oct 2014   #4
rgirish

Windows 8,1
 
 

After restoring the volumes its giving me this error

Your PC needs to be repaired.

File:\Windows\System32\winload.efi
Error code: 0xc0000225

I found following instructions and I followed them, but it doesnt seems to work

-----------------------------------------------------
Diskpart
List Volume
Select Volume=2 (change the "2" with a number that shows the ESP value.
Assign letter=Z
Exit
Bcdboot C:\windows /s Z: /f UEFI (change the C: with the drive letler of your OS)
4. Restart your computer.
------------------------------------------------------------------
My System SpecsSystem Spec
27 Oct 2014   #5
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Sorry late reply rgirlish have been busy with the tax man etc

Now that looks to be a significant problem you have there see this https://neosmart.net/wiki/0xc0000225/ if you can follow this it may help and what we need to know is have you backed up all your data because if worst comes to the worst then you may have to reinstall. As a general rule I image my machines with Macrium the main machines once every two or three weeks - takes a few minutes but worth it for times like this.
Imaging with free Macrium

But if you have not then there are other ways of retrieving the data by not using Windows ie a Ubuntu boot disk. But first let us know the situation with the data.
My System SpecsSystem Spec
29 Oct 2014   #6
rgirish

Windows 8,1
 
 

Thanks for the reply again ICit2lol and dont worry about that. I also have been busy and using my another laptop.

Thanks for the direction and I will update the outcome once I perform these steps.

cheers

Quote   Quote: Originally Posted by ICit2lol View Post
Sorry late reply rgirlish have been busy with the tax man etc

Now that looks to be a significant problem you have there see this https://neosmart.net/wiki/0xc0000225/ if you can follow this it may help and what we need to know is have you backed up all your data because if worst comes to the worst then you may have to reinstall. As a general rule I image my machines with Macrium the main machines once every two or three weeks - takes a few minutes but worth it for times like this.
Imaging with free Macrium

But if you have not then there are other ways of retrieving the data by not using Windows ie a Ubuntu boot disk. But first let us know the situation with the data.
My System SpecsSystem Spec
30 Oct 2014   #7
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Good stuff please do
My System SpecsSystem Spec
30 Oct 2014   #8
rgirish

Windows 8,1
 
 

Okay, So I followed the instructions on the link you have provided in last message ICit2lol, After that I restarted and it still did not boot in.

Then I learnt that one can rebuild MBR using partition wizard tool , I tried that and rebooted, it didn't boot up.

I then reboot the system using USB win 8 recovery disk and fired following commands that I mentioned in my previous message.
-----------------------------------------------------
Diskpart
List Volume
Select Volume=2 (change the "2" with a number that shows the ESP value.
Assign letter=Z
Exit
Bcdboot C:\windows /s Z: /f UEFI (change the C: with the drive letler of your OS)
4. Restart your computer.
------------------------------------------------------------------

checked bcdedit and saw windows entry init but system still could not boot and gave me the same 0xc0000225 error.

but meanwhile I was going through the BIOS settings and I noticed that there are two options in the boot order. I changed the boot order from windows boot manager to the option that is showing HDD name and bingo the system booted into my previous state.

Now I am not sure which one of MBR rebuild from above worked because obviously my boot order was wrong and thats why system was not booting into windows.

Now here is my problem
with Fast BIOS disabled , Secure boot disabled, OS mode is CSM and UEFI and HDD in boot order system perfectly boots into the windows 8.1

But then it does not boot with Fast BIOS enabled, Secure boot enable, OS mode UEFI and default windows boot manager in boot order for UEFI.

Because of this I am unable to go back to the factory build state.

Any suggestions or help would appreciated.
My System SpecsSystem Spec
31 Oct 2014   #9
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Ok rgirlish seems like most of the searches I have done up typically with results like this https://social.technet.microsoft.com...w8itproinstall
I would guess it is as in that link the files are really corrupted and I can only think that if it were me I would wipe that partition (you can do that with Partition Wizard) and reinstall the 7.

So I have it right you are doing a dual boot?? or have I got that part wrong??
My System SpecsSystem Spec
03 Feb 2016   #10
humsearshad

Windows 8 Single Language
 
 

im facing the same situation right now
i was installing windows 8 Single language in UEFI boot and it didnt let me install saying ''UEFI can only install on GPT partitions
cleaned the disk accidentally while converting it to GPT partition using diskpart 'clean' command, now all the partitions got deleted, is there any way i could recover my data from the deleted/cleaned partitions?
My System SpecsSystem Spec
Reply

 Recover Partitions from diskpart -> clean command




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Disk - Clean and Clean All with Diskpart Command
How to "Clean" or "Clean All" a Disk with the Diskpart Command This will show you how to use the clean or clean all command on a selected disk to delete all of it's MBR or GPT partitions, volumes, and any hidden sector information on MBR disks is overwritten. The data on the HDD is not...
Tutorials
Recover data from a diskpart > clean command
This must be my one time blunder but I did manage to clean my 2TB backup external HDD in an attempt to clean a pendrive to make a bootable pendrive for installing Windows 8. Now the help file for the diskpart > clean command says only the MBR partitioning information and hidden sector...
Backup and Restore
diskpart/clean by accident....need to recover partitions,begging :'(
Hi everyone, 1st of all I am sorry if this the wrong section to post this and, im BEGGING you to please help me. As the title says, i lost my partition table. Here is what i did and help me please, For past couple of weeks my hp g6(spec is filled on my profile. See below if it is necesory...
Backup and Restore
Should I clean my HDD with Parted Magic or Diskpart clean all command?
Hi everyone i have a question about HDD Clean and also question about Win 7 64 bit :) I want to wiped out my all HDD data inside i want to delete all information like a brand new HDD. I heard that there is a program called Parted Magic can do this and also Diskpart clean all command too. ...
General Discussion
How to recover partitions lost due to usage of 'clean' command in win7
As the title says, I've mistakenly used 'clean' command on my backup drive which is on my Imation external hdd, after the command used, all the partitions on the disk were deleted & the disk went to uninitialized state, I did initialized the disk but there are no partitions on that. Please suggest...
Backup and Restore


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 22:03.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App