We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Help!!! Undo a "diskpart clean" command...?
Options

esuhl
Posts: 9,409 Forumite


in Techie Stuff
I have a dual-boot PC with Windows 7 and Arch Linux.
Whilst trying to wipe and reinstall Windows 7, I accidentally used the "diskpart clean" command on a disk... :eek:
Anyway, I tried to boot into Linux and it can't find any of the partitions on that drive. It had a combination of NTFS, ext4 and FAT32 partitions.
Is there an easy/reliable way to restore the "cleaned" disk partitions?
Whilst trying to wipe and reinstall Windows 7, I accidentally used the "diskpart clean" command on a disk... :eek:
Anyway, I tried to boot into Linux and it can't find any of the partitions on that drive. It had a combination of NTFS, ext4 and FAT32 partitions.
Is there an easy/reliable way to restore the "cleaned" disk partitions?
0
Comments
-
Use a live disk of your linux flavour and use gparted and grub can't do too much explanation at the mo I had a fag break sorting a totally borked disk on the wife's PC:eek:4.8kWp 12x400W Longhi 9.6 kWh battery Giv-hy 5.0 Inverter, WSW facing Essex . Aint no sunshine ☀️ Octopus gas fixed dec 24 @ 5.74 tracker again+ Octopus Intelligent Flux leccy0
-
Oh gparted may help with it's recovery option .... but you have totally wiped your mbr ...maybe later I can think clearly more about it.4.8kWp 12x400W Longhi 9.6 kWh battery Giv-hy 5.0 Inverter, WSW facing Essex . Aint no sunshine ☀️ Octopus gas fixed dec 24 @ 5.74 tracker again+ Octopus Intelligent Flux leccy0
-
if the disk is small enough, it may be possible to back up the drive. One prog was hxd, but it worked only on windows xp only and had a disk mode. Either way I would back up the beginning and end sectors of the drive, and blank partition start and end as you will probably be modifying them.
All my experience is with windows regarding this, but if I were you would look at TestDisk
http://www.cgsecurity.org/wiki/TestDisk0 -
I seem to remember that there "may" be a copy at sector 2048 but that takes me back years .....4.8kWp 12x400W Longhi 9.6 kWh battery Giv-hy 5.0 Inverter, WSW facing Essex . Aint no sunshine ☀️ Octopus gas fixed dec 24 @ 5.74 tracker again+ Octopus Intelligent Flux leccy0
-
this is not a fix, but is a way to get your data off
https://superuser.com/questions/900468/how-to-restore-partitions-and-data-after-diskpart-clean-command0 -
Thanks, all.debitcardmayhem wrote: »Oh gparted may help with it's recovery option .... but you have totally wiped your mbr ...maybe later I can think clearly more about it.
I don't think the affected disk had an MBR to start with -- it's just a data drive that I'd set the PC to boot from temporarily so that Windows wouldn't overwrite the working MBR I already have on my OS drive.
Anyway, after spending ages trying to find a free fix, I ended up shelling out $39 for MiniTool Partition Wizard. It took about 5 seconds to repair the disk.
Hmph. I bet there was really easy and free way to fix it myself. :-/0 -
Doesn't TestDisk have the capability to do this?
http://www.cgsecurity.org/wiki/TestDisk_Step_By_StepMove along, nothing to see.0 -
Was it is a paid feature, I never paid for that tool?
Yeah. As with many of the free programs I saw, it's advertised as a completely free feature! Until you install the software and it tells you that it's not available until you upgrade. :mad:Doesn't TestDisk have the capability to do this?
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
Ahhh... yes. Curse my impatience! Still, at least it was a simple fix.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.8K Banking & Borrowing
- 253.1K Reduce Debt & Boost Income
- 453.5K Spending & Discounts
- 243.8K Work, Benefits & Business
- 598.7K Mortgages, Homes & Bills
- 176.8K Life & Family
- 257.1K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards