Last active
February 24, 2025 19:29
-
-
Save danielvcorreia/5f72a213b1ab4bcd38a7d58b5c2d565e to your computer and use it in GitHub Desktop.
Example of how to (exFAT) format disk on windows using diskpart in a command prompt running as administrator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Notes at end of file with some extra information and safety advice. | |
| Search in windows: 'cmd' and open command prompt as administrator. | |
| Microsoft Windows [Version 10.0.18362.657] | |
| (c) 2019 Microsoft Corporation. Todos os direitos reservados. | |
| C:\WINDOWS\system32>diskpart | |
| Microsoft DiskPart version 10.0.18362.1 | |
| Copyright (C) Microsoft Corporation. | |
| On computer: CORREIA-LAPTOP | |
| DISKPART> list disk | |
| Disk ### Status Size Free Dyn Gpt | |
| -------- ------------- ------- ------- --- --- | |
| Disk 0 Online 238 GB 1024 KB * | |
| Disk 1 Online 465 GB 0 B | |
| DISKPART> select disk 1 | |
| Disk 1 is now the selected disk. | |
| DISKPART> clean | |
| DiskPart succeeded in cleaning the disk. | |
| DISKPART> list disk | |
| Disk ### Status Size Free Dyn Gpt | |
| -------- ------------- ------- ------- --- --- | |
| Disk 0 Online 238 GB 1024 KB * | |
| * Disk 1 Online 465 GB 465 GB | |
| DISKPART> create partition primary | |
| DiskPart succeeded in creating the specified partition. | |
| DISKPART> active | |
| DiskPart marked the current partition as active. | |
| DISKPART> filesystems | |
| Current File System | |
| Type : RAW | |
| Allocation Unit Size : 512 | |
| Flags : 00000000 | |
| File Systems Supported for Formatting | |
| Type : NTFS (Default) | |
| Allocation Unit Sizes: 512, 1024, 2048, 4096 (Default), 8192, 16K, 32K, 64K, 128K, 256K, 512K, 1024K, 2048K | |
| Type : exFAT | |
| Allocation Unit Sizes: 32K, 64K, 128K (Default), 256K, 512K, 1024K, 2048K, 4096K, 8192K, 16384K, 32768K | |
| DISKPART> format fs=exfat label="CHANGE TO WANTED DRIVE NAME" quick | |
| 100 percent completed | |
| DiskPart successfully formatted the volume. | |
| DISKPART> assign letter=d | |
| DiskPart successfully assigned the drive letter or mount point. | |
| DISKPART> | |
| notes: | |
| - You can format in other diferent file systems like 'ntfs': | |
| DISKPART> format fs=ntfs label="CHANGE TO WANTED DRIVE NAME" quick | |
| - The command 'label="CHANGE TO WANTED DRIVE NAME"' sets the disk name of what is in the quotation marks. | |
| - Make sure you select the correct disk to format in command: | |
| DISKPART> select disk 1 | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment