Computers
Computer Parts
Custom PC Builder
DIY/ Maker
{$smarty.capture.menu}
Activity
Categories
Discussions
Computers
Computer Parts
Custom PC Builder
DIY/ Maker
How to use the Diskpart Utility preparing to install Windows - Micro Center
<main> <article class="userContent"> <p>This article will show you how to how to use Diskpart while installing a fresh installation of Windows 10. This is helpful if your drive is not showing up in the Windows installation partition screen and you cannot format it in any other way. This type of situation can also come up when trying to do a clean installation on a working drive that has been previously used with different formatting than is currently being used. This tool offers a way to work around this type of situation.</p><p><br></p><p>1. On the Windows installation screen, hold down <strong>Shift</strong> + <strong>F10</strong> on the keyboard to bring up the command prompt window. <em>In this example, you see a Windows 7 installation screen, but this process is the same for Windows 7, Windows 8, and Windows 10 to date</em>.</p><div class="embedExternal embedImage display-large float-none"> <div class="embedExternal-content"> <a class="embedImage-link" href="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image1.jpg" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image1.jpg" alt="Windows installation screen" height="180" width="320" loading="lazy"></img></a> </div> </div> <p></p><p><br></p><p>2. Type <strong>diskpart</strong> and then press <strong>Enter</strong> on the keyboard.</p><div class="embedExternal embedImage display-large float-none"> <div class="embedExternal-content"> <a class="embedImage-link" href="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image2.jpg" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image2.jpg" alt="command prompt, diskpart" height="180" width="320" loading="lazy"></img></a> </div> </div> <p></p><p><br></p><p>3. Type <strong>list disk</strong> and then press enter on the keyboard. This will show a list of numbered drives in the system starting at 0. Carefully check for the disk number that is to be cleaned.</p><div class="embedExternal embedImage display-large float-none"> <div class="embedExternal-content"> <a class="embedImage-link" href="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image3.jpg" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image3.jpg" alt="command prompt, diskpart, list disk" height="180" width="320" loading="lazy"></img></a> </div> </div> <p></p><p><br></p><p>4. Type <strong>select disk</strong> followed by the <strong>number of the drive</strong> that is to be cleaned and then press <strong>Enter </strong>on the keyboard - <strong>example</strong>: <em>select disk 1</em> .</p><p>There will be a confirmation message stating it is now the selected disk. Double check to be sure that this is the drive intended to be cleaned - a mistake at this point could easily wipe the wrong partition from the drive.</p><div class="embedExternal embedImage display-large float-none"> <div class="embedExternal-content"> <a class="embedImage-link" href="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image4.jpg" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image4.jpg" alt="command prompt, diskpart, select disk" height="180" width="320" loading="lazy"></img></a> </div> </div> <p></p><p><br></p><p>5. Type <strong>clean</strong> and press enter on the keyboard. <strong>This will completely remove any data</strong> or formatting on the drive.</p><div class="embedExternal embedImage display-large float-none"> <div class="embedExternal-content"> <a class="embedImage-link" href="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image5.jpg" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image5.jpg" alt="command prompt, diskpart, clean drive" height="180" width="320" loading="lazy"></img></a> </div> </div> <p></p><p><br></p><p>6. Type <strong>create partition primary</strong> and then press enter on the keyboard. This will add a partition to the drive and make it accessible.</p><div class="embedExternal embedImage display-large float-none"> <div class="embedExternal-content"> <a class="embedImage-link" href="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image6.jpg" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image6.jpg" alt="command prompt, diskpart, create partition on drive" height="180" width="320" loading="lazy"></img></a> </div> </div> <p></p><p><br></p><p>7. Format the drive by typing <strong>format fs=</strong> followed by the <strong>file system you want to use</strong>. Current Windows computers use <strong>NTFS</strong>, other devices typically use either FAT32 or exFAT. </p><p><strong>Example</strong>: <em>format fs=ntfs</em> .</p><div class="embedExternal embedImage display-large float-none"> <div class="embedExternal-content"> <a class="embedImage-link" href="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image7.jpg" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image7.jpg" alt="command prompt, diskpart, format drive" height="180" width="320" loading="lazy"></img></a> </div> </div> <p></p><p><br></p><p>8. Type <strong>assign</strong> and then press enter on the keyboard to assign a drive letter.</p><p>The drive will now show up with a drive letter.</p><div class="embedExternal embedImage display-large float-none"> <div class="embedExternal-content"> <a class="embedImage-link" href="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image8.jpg" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://60a99bedadae98078522-a9b6cded92292ef3bace063619038eb1.ssl.cf2.rackcdn.com/11405Image8.jpg" alt="command prompt, diskpart, assign a drive letter" height="180" width="320" loading="lazy"></img></a> </div> </div> <p></p><p><br></p><p>9. Type<strong> Exit </strong>and press<strong> Enter </strong>on the keyboard.</p><p>Your drive is now ready to use for installation.</p> </article> </main>