SD Clean/Windows: Difference between revisions

From Hacks Guide Wiki
(Removed disk management steps, they are unnessecary since the sd format guide already partitions the sd card, also added a warning about disk 0)
m (replace wiki list with html list (fixes warning box breaking the list order))
Line 7: Line 7:
{{warning|Before beginning these steps, copy all of your SD card's contents to a folder on your computer.}}
{{warning|Before beginning these steps, copy all of your SD card's contents to a folder on your computer.}}


# Launch <code>diskpart</code> by searching for <code>diskpart</code> in the Windows search bar.
<ol>
# Once diskpart is active in the new Command Prompt window, type <code>list disk</code>.
<li>Launch <code>diskpart</code> by searching for <code>diskpart</code> in the Windows search bar.</li>
# Find your SD card in the list of disks (hint: look for the size of your card), then type <code>select disk #</code>, where # is the disk number of your SD card.{{Warning
<li>Once diskpart is active in the new Command Prompt window, type <code>list disk</code>.</li>
| text = Never select disk 0! This will always be your main windows drive.
<li>Find your SD card in the list of disks (hint: look for the size of your card), then type <code>select disk #</code>, where # is the disk number of your SD card. {{Warning|text=Never select disk 0! This will always be your main windows drive.}}</li>
}}
<li>Type <code>list disk</code> again. You should now see a * next to your SD card.</li>
# Type <code>list disk</code> again. You should now see a * next to your SD card.
<li>Once you are absolutely sure that you have selected the right disk, type <code>clean</code>, then type <code>convert mbr</code>.</li>
# Once you are absolutely sure that you have selected the right disk, type <code>clean</code>, then type <code>convert mbr</code>.
<li>Close the diskpart window.</li>
# Close the diskpart window.
<li>[[Formatting an SD card/Windows|Format the SD card]].</li>
# [[Formatting an SD card/Windows|Format the SD card]].
<li>Once the format is complete, copy your data back onto the SD card.</li>
# Once the format is complete, copy your data back onto the SD card.
</ol>


[[Category:General guides]]
[[Category:General guides]]

Revision as of 03:58, 15 August 2023

This is an add-on section for completely recreating an SD card's filesystem using diskpart. This should only be done if formatting does not fix your issue or is not possible for some reason.

This page is for Windows users only. If you are not on Windows, see the Mac and/or Linux pages instead.

Instructions

OOjs UI icon information-warning.svg Before beginning these steps, copy all of your SD card's contents to a folder on your computer.
  1. Launch diskpart by searching for diskpart in the Windows search bar.
  2. Once diskpart is active in the new Command Prompt window, type list disk.
  3. Find your SD card in the list of disks (hint: look for the size of your card), then type select disk #, where # is the disk number of your SD card.
    OOjs UI icon information-warning.svg Never select disk 0! This will always be your main windows drive.
  4. Type list disk again. You should now see a * next to your SD card.
  5. Once you are absolutely sure that you have selected the right disk, type clean, then type convert mbr.
  6. Close the diskpart window.
  7. Format the SD card.
  8. Once the format is complete, copy your data back onto the SD card.