Your browser isn't supported
It looks like you're using an old web browser. To get the most out of the site and to ensure guides display correctly, we suggest upgrading your browser now. Download the latest:

Welcome to the MSE Forums

We're home to a fantastic community of MoneySavers but anyone can post. Please exercise caution & report spam, illegal, offensive or libellous posts/messages: click "report" or email forumteam@. Skimlinks & other affiliated links are turned on

Search
  • FIRST POST
    • esuhl
    • By esuhl 9th Jul 17, 9:47 PM
    • 7,430Posts
    • 5,255Thanks
    esuhl
    Help!!! Undo a "diskpart clean" command...?
    • #1
    • 9th Jul 17, 9:47 PM
    Help!!! Undo a "diskpart clean" command...? 9th Jul 17 at 9:47 PM
    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...

    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?
Page 1
    • debitcardmayhem
    • By debitcardmayhem 9th Jul 17, 10:44 PM
    • 8,176 Posts
    • 6,163 Thanks
    debitcardmayhem
    • #2
    • 9th Jul 17, 10:44 PM
    • #2
    • 9th Jul 17, 10:44 PM
    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
    • debitcardmayhem
    • By debitcardmayhem 9th Jul 17, 10:48 PM
    • 8,176 Posts
    • 6,163 Thanks
    debitcardmayhem
    • #3
    • 9th Jul 17, 10:48 PM
    • #3
    • 9th Jul 17, 10:48 PM
    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.
    • were
    • By were 9th Jul 17, 10:52 PM
    • 479 Posts
    • 286 Thanks
    were
    • #4
    • 9th Jul 17, 10:52 PM
    • #4
    • 9th Jul 17, 10:52 PM
    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
    • By debitcardmayhem 9th Jul 17, 10:57 PM
    • 8,176 Posts
    • 6,163 Thanks
    debitcardmayhem
    • #5
    • 9th Jul 17, 10:57 PM
    • #5
    • 9th Jul 17, 10:57 PM
    I seem to remember that there "may" be a copy at sector 2048 but that takes me back years .....
    • were
    • By were 9th Jul 17, 11:16 PM
    • 479 Posts
    • 286 Thanks
    were
    • #6
    • 9th Jul 17, 11:16 PM
    • #6
    • 9th Jul 17, 11:16 PM
    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-command
    • esuhl
    • By esuhl 10th Jul 17, 6:32 PM
    • 7,430 Posts
    • 5,255 Thanks
    esuhl
    • #7
    • 10th Jul 17, 6:32 PM
    • #7
    • 10th Jul 17, 6:32 PM
    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.
    Originally posted by debitcardmayhem
    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
    • By spud17 10th Jul 17, 9:43 PM
    • 4,194 Posts
    • 1,927 Thanks
    spud17
    • #8
    • 10th Jul 17, 9:43 PM
    • #8
    • 10th Jul 17, 9:43 PM
    Doesn't TestDisk have the capability to do this?

    http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
    Last edited by spud17; 10-07-2017 at 9:54 PM.
    After 10+ years on here, for the first time, I've been forced to put 2 usernames on my ignore list, in reality it's just one person ignored.
    • esuhl
    • By esuhl 11th Jul 17, 3:23 AM
    • 7,430 Posts
    • 5,255 Thanks
    esuhl
    • #9
    • 11th Jul 17, 3:23 AM
    • #9
    • 11th Jul 17, 3:23 AM
    Was it is a paid feature, I never paid for that tool?
    Originally posted by DavidP24
    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.

    Doesn't TestDisk have the capability to do this?

    http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
    Originally posted by spud17
    Ahhh... yes. Curse my impatience! Still, at least it was a simple fix.
Welcome to our new Forum!

Our aim is to save you money quickly and easily. We hope you like it!

Forum Team Contact us

Live Stats

1,241Posts Today

7,049Users online

Martin's Twitter