We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 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!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

Help!!! Undo a "diskpart clean" command...?

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: 13,409 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

    CEC Email energyclub@moneysavingexpert.com
  • debitcardmayhem
    debitcardmayhem Posts: 13,409 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

    CEC Email energyclub@moneysavingexpert.com
  • 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: 13,409 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

    CEC Email energyclub@moneysavingexpert.com
  • 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,451 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    edited 10 July 2017 at 8: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
  • 353.5K Banking & Borrowing
  • 254.1K Reduce Debt & Boost Income
  • 455K Spending & Discounts
  • 246.5K Work, Benefits & Business
  • 602.8K Mortgages, Homes & Bills
  • 178K Life & Family
  • 260.5K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K 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.