Files
Johan Sandoval a5c0a5210e Knowledge base: /docs/<title> permalinks, search, categories, count, better PDF
Articles get their own address (shareable, back/forward work); the list is
searchable by title and text, shows the article count, and is grouped into
Applications and Troubleshooting & Guides via a hidden category line set
from the editor. PDF export lays out at page width with page breaks, a title
block and page numbers; Print uses the browser's vector print. Inline code
is a pill that glows blue on hover, blockquotes no longer squeeze, and
GitHub-style [!NOTE] alerts render. [[Badge]] syntax inside code spans is
left alone.
2026-10-06 19:31:19 +00:00

29 lines
682 B
Markdown

<!-- category: Troubleshooting & Guides -->
[[Red:Destructive]]
# Diskpart: Wipe and Re-partition a Disk (UEFI/GPT)
> [!CAUTION]
> **This erases the disk.** Only use it on a device whose backup is complete, or on new hardware.
1. Boot into WinPE or the task sequence wizard and press **F8** for a command prompt.
2. Type `diskpart`.
3. Enter each line and press Enter after each:
```
list disk
select disk 0
clean
convert gpt
create partition efi size=300
format quick fs=fat32 label="System"
assign letter=S
create partition msr size=128
create partition primary
format quick fs=ntfs label="Windows"
assign letter=C
exit
```
4. Close the prompt and restart the task sequence.