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
esuhl Posts: 9,409 Forumite
Part of the Furniture 1,000 Posts Name Dropper
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?

Comments

  • debitcardmayhem
    debitcardmayhem Posts: 12,697 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    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 leccy
  • debitcardmayhem
    debitcardmayhem Posts: 12,697 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    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 leccy
  • were
    were Posts: 632 Forumite
    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/TestDisk
  • debitcardmayhem
    debitcardmayhem Posts: 12,697 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    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 leccy
  • esuhl
    esuhl Posts: 9,409 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Thanks, all.
    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. :-/
  • spud17
    spud17 Posts: 4,431 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    edited 10 July 2017 at 9:54PM
    Doesn't TestDisk have the capability to do this? :)

    http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
    Move along, nothing to see.
  • esuhl
    esuhl Posts: 9,409 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    DavidP24 wrote: »
    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:
    spud17 wrote: »
    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.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

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

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.