logo elektroda
logo elektroda
X
logo elektroda

[Solved] Using dmde for Disk Formatting Error: Restoring and Rearranging Partitions on Windows

pandamix 13905 18
Best answers

How can I recover an old Windows data partition with DMDE after using the clean command, and restore the original drive letters?

Recover it from a sector-by-sector disk image, not from the live disk: make a cross-sector copy of the whole internal disk to a file on the external drive, then in DMDE delete the wrong 223 GB Basic Data Partition entry, select $Noname 06, choose Insert, click Apply, save the rollback file, and reboot; the partition should return with its data [#17002293][#17002968] If DMDE says there is not enough room to restore the old partition, shrink the current system partition by 1 MB in Disk Management first so the previous D: can fit again [#17002853][#17002900] The old data was visible in the copied volume ($Noname 07), which confirmed the partition content was still there [#17002884] After recovery, you can change drive letters in Disk Management by freeing the target letter first and then assigning it to the restored partition, but avoid changing letters for volumes used by applications [#17003134]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17001945
    pandamix
    Level 11  
    Posts: 25
    Help: 4
    Rate: 6
    Board Language: polish
    hello, I will start from the beginning, I wanted to format the disk you reinstall windows but when formatting the c: partition an error popped up so I read on the internet that you need to use the clean command but I had no idea that it would clean all disks, after all I took the risk and put windows on the c: partition which is about 50gb, I found the dmde program and a tutorial thanks to which I recovered the e: partition in complete safety and the same way I tried to recover the d: partition but on this computer it gave me the F: partition and windows asks for its format, or maybe someone to guide me by the hand what should I do? I will add that I have nothing to do with computer science :) adds screenshots may help to understand my problem, I will add that the disk is a portable disk, thank you very much in advance and I count on your help, I care about this partition I have some good years of my life saved there
    Attachments:
    • Using dmde for Disk Formatting Error: Restoring and Rearranging Partitions on Windows Clipboard01j.jpg (98.44 KB) You must be logged in to download this attachment.
    • Using dmde for Disk Formatting Error: Restoring and Rearranging Partitions on Windows Clipboard01.jpg (64.16 KB) You must be logged in to download this attachment.
  • ADVERTISEMENT
  • #2 17002056
    Prot
    Level 38  
    Posts: 2580
    Help: 574
    Rate: 297
    Board Language: polish
    Provide a screenshot from the system "Disk Management" :!:

    What partition did you have before the crash?
  • ADVERTISEMENT
  • #3 17002063
    pandamix
    Level 11  
    Posts: 25
    Help: 4
    Rate: 6
    Board Language: polish
    At the moment the system had to reset and it couldn't boot normally so I'm restoring it, I had three partitions c about 50gb, both about 200gb
  • #4 17002110
    Prot
    Level 38  
    Posts: 2580
    Help: 574
    Rate: 297
    Board Language: polish
    After clearing partitioning, the system changed the designation for the DVD drive (the first one was free - then with C alone it was D) :D . Now you cannot restore the partition previously marked as D - hence the system gave it another free letter of the designation :cry:
    This designation can be easily changed as long as there are no important connections or references in the system registers (if it is a newly installed system - nothing like that occurs).

    The more difficult thing that can be seen in DMDE is incorrect settings of the first sector of this Volumin 05 (old partition D :?: ).

    In your situation - having 740 GB of free space on the H disk - for full data security, I would make a cross-sector copy of the entire 0 (internal) disk with the DMDE to the external one and only there, using this disk image, I would try to "heal the patient" without stress. :D
  • #5 17002145
    pandamix
    Level 11  
    Posts: 25
    Help: 4
    Rate: 6
    Board Language: polish
    I am an ordinary simple person, can you guide me step by step how to get out of this swamp and not do more damage? Windows installation is clean again attached to the printscreen you asked for

    Then I will start with this sectional copy
    Attachments:
    • Using dmde for Disk Formatting Error: Restoring and Rearranging Partitions on Windows jgf.jpg (106.4 KB) You must be logged in to download this attachment.
  • ADVERTISEMENT
  • #6 17002169
    safbot1st
    Level 43  
    Posts: 21951
    Help: 2719
    Rate: 1583
    Board Language: polish
    @Prot In DMDE you can more or less see how he was supposed to be.
    Basic Data 472MB
    Noname 02 105MB
    Microsoft 16.8 MB
    Noname 03 53.1GB C: - system
    Basic data 223GB D:
    Noname 04 223GB E:
    10MB unallocated.

    @pandamix in order to "play" with this, it is best to make a sectoral copy of the entire disk (as advised by @Prot ).
    I assume that the partition you are interested in (was D :) is a "Basic Data Partition" with a "Data" file system. With such a system, of course, it cannot be seen. Should be NTFS, you should probably search for NTFS, but with this advice I would rather hold off until the download @ mati221p ...
    Well, describe it How did you get E: back?

    Prot wrote:
    The more difficult thing that can be seen in DMDE is incorrect settings of the first sector of this Volumin 05 (old D partition).

    This is a deleted entry, irrelevant to the topic.
  • #7 17002204
    pandamix
    Level 11  
    Posts: 25
    Help: 4
    Rate: 6
    Board Language: polish
    If I make a sector-by-sector copy, it will remove the data from the h: drive? I recovered the partition using the guide from programosy.pl I don't remember the regulations or I can paste the links, everything went practically as in the guide

    I am making a sector-by-sector copy using the video tutorial from the dmde.pl website
    What next steps should I take after the backup is completed to restore the D: partition?
  • Helpful post
    #8 17002293
    Prot
    Level 38  
    Posts: 2580
    Help: 574
    Rate: 297
    Board Language: polish
    pandamix wrote:
    if I make a sector-by-sector backup, it will delete the data from the h: drive?


    Not if you are making a cross-sector copy "to file" ie the entire internal disk is saved as one file - on the free space of this external disk. You will do the whole most confidently and safely DMDE.

    Explain what that means
    Quote:
    I recovered the partition using the guide
    ?

    Do you already have your data backed up from the old D partition?

    I suggest using the DMDE tutorial -as-you protect data
  • #9 17002796
    pandamix
    Level 11  
    Posts: 25
    Help: 4
    Rate: 6
    Board Language: polish
    I was able to successfully perform a sector-by-sector backup to a file on an external drive, how should I proceed further to recover the old D partition and data on it?
  • ADVERTISEMENT
  • #10 17002853
    mati211p
    HDD and data recovery specialist
    Posts: 16915
    Help: 2584
    Rate: 1129
    Board Language: polish
    In my opinion, this is the D partition (as attached). To make it more interesting earlier, the boot was from the system partition and the MBR partition style (this would explain the problems with the installation due to the wrong partition style and the reason you used the clean command). Previously, the missing partition was the logical partition just behind the system partition. The current system partition makes it impossible to restore the previous partition (as long as there is your data on $ Noname 07) because it is too big. Once you confirm that your data is there, we will continue. However, in this case (and since you have a copy), at the beginning of the system partition it would be good if you shrink it by 1MB and show the screen from the partition window again. Of course, the current D is only an entry in the table, so there is no chance that it will be visible.
    Using dmde for Disk Formatting Error: Restoring and Rearranging Partitions on Windows
    There is also a second option, but it's better to restore this partition completely.
  • #11 17002884
    pandamix
    Level 11  
    Posts: 25
    Help: 4
    Rate: 6
    Board Language: polish
    Mati, you were right about $ Noname 07, when I select it in the copy and click open volume, I can see my partition there. The fact that I have to shrink the system partition is unfortunately black magic for me
  • #12 17002900
    mati211p
    HDD and data recovery specialist
    Posts: 16915
    Help: 2584
    Rate: 1129
    Board Language: polish
    Try the option to reduce the volume in Disk Management to begin with (we have a copy anyway) and reduce it by 1 MB (so it shouldn't be much). The idea is to move the end of the system to make room for the previous D. Previously the system was even bigger because there were no extra partitions. Then show the same screen from DMDE again.
  • #13 17002937
    pandamix
    Level 11  
    Posts: 25
    Help: 4
    Rate: 6
    Board Language: polish
    I am asking you not to get angry with me but I am doing it for the first time and I prefer to ask twice than do it wrong once. In disk management a window pops up, what value should I give? 1mb?
    Attachments:
    • Using dmde for Disk Formatting Error: Restoring and Rearranging Partitions on Windows Clipboard01ttt.jpg (30.52 KB) You must be logged in to download this attachment.
  • #14 17002948
    mati211p
    HDD and data recovery specialist
    Posts: 16915
    Help: 2584
    Rate: 1129
    Board Language: polish
    Enter 1MB in the amount of space to be reduced, now you have 11GB instead of 1MB.
  • #15 17002954
    pandamix
    Level 11  
    Posts: 25
    Help: 4
    Rate: 6
    Board Language: polish
    I managed to shrink without any error, I am sending the screen after shrinking.
    Attachments:
    • Using dmde for Disk Formatting Error: Restoring and Rearranging Partitions on Windows zmiana w ten komputer.jpg (54.35 KB) You must be logged in to download this attachment.
    • Using dmde for Disk Formatting Error: Restoring and Rearranging Partitions on Windows po zmniejszeniu.jpg (64.76 KB) You must be logged in to download this attachment.
  • #16 17002968
    mati211p
    HDD and data recovery specialist
    Posts: 16915
    Help: 2584
    Rate: 1129
    Board Language: polish
    Delete the Basic Data Partition E 223 GB in DMDE. Then click on $ Noname 06 and select Insert. After inserting, click Apply, save the file to rollback and restart your computer. After rebooting, the partition should return with all the data.
  • #17 17003116
    pandamix
    Level 11  
    Posts: 25
    Help: 4
    Rate: 6
    Board Language: polish
    Thank you beautifully mati for your help, I was already losing hope that this miracle will be achieved, thank the rest for the step-by-step guidance and willingness to help, I have an additional question whether it is possible to change the letters of the disks as I had before? Or just to get used to it again to this layout?
    I will try to explain it in such a way that currently disk F: is the old disk D:
    the current H: drive is previously I:
    Attachments:
    • Using dmde for Disk Formatting Error: Restoring and Rearranging Partitions on Windows po naprawiee.jpg (58.58 KB) You must be logged in to download this attachment.
  • Helpful post
    #18 17003134
    mati211p
    HDD and data recovery specialist
    Posts: 16915
    Help: 2584
    Rate: 1129
    Board Language: polish
    Try to change as you like in disk management. The best thing to do is assign the device which uses another letter D to free it, then change the partition letter again from F to D. The only thing is not to change partition letters, which contain files used by applications, which may cause problems with operation application.
  • #19 17003146
    pandamix
    Level 11  
    Posts: 25
    Help: 4
    Rate: 6
    Board Language: polish
    The problem was solved with the help of my colleague Mati and guiding me step by step

Topic summary

✨ The discussion revolves around a user experiencing a disk formatting error while attempting to reinstall Windows. After using the clean command, the user lost access to several partitions, including the D: partition, which contained important data. The user successfully recovered the E: partition using the DMDE program but faced challenges with the D: partition. Participants in the forum provided step-by-step guidance on using DMDE to create a sector-by-sector backup of the disk, shrink the system partition to make space for the D: partition, and ultimately restore the lost data. The user expressed gratitude for the assistance received and inquired about changing drive letters back to their original configuration.
Generated by the language model.

FAQ

TL;DR: To fix a dmde/Windows partition mix‑up after diskpart clean, first image the drive, then shrink the system volume by 1 MB; “Enter 1MB in the amount of space to be reduced.” [Elektroda, mati211p, post #17002948]

Why it matters: This FAQ helps Windows users recover a lost D: partition and correct drive letters without risking data loss.

Quick Facts

How do I safely start recovery after running diskpart clean by mistake?

Start by making a full sector‑by‑sector image “to file” on an external drive. Work on the image, not the original disk. This preserves your data while you test fixes. Use DMDE to create the image and save it to free space on the external drive. Do not write anything to the problem disk until the image completes. This is the safest path for beginners and experts alike. [Elektroda, Prot, post #17002293]

Will a sector‑by‑sector copy erase data on my destination drive?

No, when you write the image “to file,” DMDE saves one big image file into free space on the destination. It does not wipe the destination disk. Verify that you have enough free space before starting. Keep the original disk disconnected after imaging if you want a cold backup. This workflow protects against accidental overwrites during recovery attempts. [Elektroda, Prot, post #17002293]

Why did my old D: become F: after reinstalling Windows?

Windows reassigns letters when partitioning changes. After clean/restore, the optical drive or the first free slot may take D:, pushing your former D: to F:. On a clean install, there are no registry bindings yet, so you can safely change letters later. Letter changes do not alter the data; they change only the mount point. [Elektroda, Prot, post #17002110]

How can I find my missing D: in DMDE?

Open DMDE, scan the disk, and examine found volumes. If you see $Noname 07, try Open Volume. Users reported seeing all their D: files there. This indicates the filesystem exists but the partition entry is missing or wrong. Confirm file integrity by browsing folders before writing any changes. Then proceed to restore the correct entry. [Elektroda, pandamix, post #17002884]

Why must I shrink the system partition by 1 MB?

Your current system partition may be slightly larger than before, overlapping space where D: used to live. Shrinking by 1 MB moves the end boundary, making room to reinsert the old D:. Edge case: Restoration fails if the system partition still overlaps the previous D: region. Perform the shrink first to avoid that block. [Elektroda, mati211p, post #17002853]

How do I restore the old D: partition in DMDE (step‑by‑step)?

  1. In DMDE, delete the incorrect 223 GB Basic Data Partition.
  2. Select $Noname 06, choose Insert, then Apply and save the rollback file.
  3. Reboot; Windows should mount the restored D: with files intact. This sequence rebuilds the correct partition entry and resolves the format prompt. “After rebooting, the partition should return with all the data.” [Elektroda, mati211p, post #17002968]

What should I expect after I apply changes and reboot?

Windows should detect the restored D: automatically, showing your files as before. Users confirmed success right after following the insert‑and‑reboot procedure. If D: appears with data, back it up immediately. If it does not, avoid formatting and review the prior steps on the image, not the live disk. [Elektroda, pandamix, post #17003116]

How do I change drive letters back to my old mapping?

Open Disk Management, right‑click the target volume, and choose Change Drive Letter and Paths. Free the desired letter by reassigning any device using it. Then assign your restored partition to the preferred letter. Avoid changing letters for volumes used by installed applications to prevent path errors. [Elektroda, mati211p, post #17003134]

What were the original partition sizes in this case?

DMDE showed: C: ≈53.1 GB (system), D: ≈223 GB, E: ≈223 GB, plus small system partitions. This helps validate which found volume matches your missing data. If your sizes differ, match by content using Open Volume. Statistic: two data partitions of about 223 GB each were present. [Elektroda, safbot1st, post #17002169]

What does “Basic Data Partition” with a “Data” filesystem mean in DMDE?

It indicates a generic data partition entry. If DMDE shows filesystem as “Data,” Windows will not mount it. The partition should present as NTFS for Windows to assign a letter. Searching for NTFS within DMDE helps locate the real filesystem for recovery. “Should be NTFS” is the key clue here. [Elektroda, safbot1st, post #17002169]

I imaged the disk; what are my next steps to bring D: back?

Shrink the system partition by 1 MB using Disk Management. Then, in DMDE, delete the wrong data partition entry, insert the correct found entry ($Noname 06), apply, and reboot. This resolves the overlap and restores the partition map. Work on the image until you confirm the process succeeds. [Elektroda, mati211p, post #17002968]

What if my external drive lacks enough free space for the image?

Your external must have free space at least equal to the source disk image size. In the example, there was 740 GB free on H:, which was sufficient. If you lack space, add another external drive or delete unneeded files on it. Do not image to the affected internal disk. [Elektroda, Prot, post #17002110]

Why did Windows ask to format a partition that DMDE found?

Windows prompts to format when the partition entry exists but its filesystem metadata is missing or mismatched. The fix is to restore the correct partition entry that points to the intact NTFS. After inserting the right $Noname volume, Windows mounts it without formatting. Decline format prompts during recovery. [Elektroda, mati211p, post #17002968]

Can I do this as a beginner without breaking more things?

Yes. Image first, then follow small, reversible steps in DMDE. Keep the rollback file DMDE offers when applying changes. One expert says, “After rebooting, the partition should return with all the data,” reflecting a tested procedure. Use the image to practice until confident. [Elektroda, mati211p, post #17002968]

How do I avoid data loss while experimenting with fixes?

Only edit the disk image and keep the original drive untouched. Make a cross‑sector copy and verify it opens in DMDE. This separates experimentation from your real data. Once you succeed on the image, repeat the steps on the live disk if needed. [Elektroda, Prot, post #17002110]
Generated by the language model.
ADVERTISEMENT