1. Home
  2. Windows Tips
  3. Set up a hard drive install windows 10

How To Set Up A Hard Drive For Installing Windows 10

When you buy a desktop or laptop that comes with Windows 10, or any other version of Windows pre-installed, a lot more goes into setting it up apart from installing the OS. For one, you need to set up the hard drive or SSD before anything else. This is something that you normally only have to do once. You can do a fresh install of Windows over and over, and you will never have to set up the hard drive again, unless you accidentally or purposely change the partitions. If you’ve done that, you will have to set up the hard drive again before you can install Windows 10. Here’s how.

There are multiple ways to set up a hard drive for installing Windows 10. However, we’re assuming that you have a hard drive with no OS installed and you’re trying to install Windows. Even if you aren’t trying to install Windows, these methods will still work, but you’ll need installation media for Windows. With that in mind, there are two ways to set up a hard drive.

If you plan on installing a Linux distribution, check out our guide for partitioning a hard drive on Linux.

how to set up hard drive for Windows 10 installation

How to Set Up a Hard Drive with an Install Disk

A few years ago, before Windows 10 was developed and Windows 7 was the popular version of Windows, the OS was installed via an installation disk — i.e., a CD. If you’re working with older hardware as part of a Windows 7 to 10 migration, you may still run into this setup method. If you happen to have one of those CDs lying around and your system has a DVD or CD drive, you can use it and it will set up the hard drive for you as part of the installation process. That said, optical-disc installation is a legacy path that most people will never use today.

The same core preparation concepts covered in this article apply to both Windows 10 and Windows 11. For modern installs, the recommended approach is to create a bootable USB drive using Microsoft’s official Media Creation Tool (for Windows 10) or the Windows 11 Installation Assistant. These tools are straightforward and produce reliable install media in minutes.

If your system does not have an optical drive — which is true of most modern laptops and many desktops — skip straight to the USB and DiskPart method below.

Set Up a Hard Drive Using Windows 10 USB & Diskpart

You’re going to need to create installation media for Windows 10 or Windows 11. It’s pretty easy to do, but you will need access to a working PC. Download the Media Creation Tool from Microsoft’s website, and use it to create a USB disk to install Windows 10 on a different system.

Connect the USB to your laptop and click the ‘Repair this computer’ option when you see it. On the repair options screen, you will see an option to open Command Prompt. Select it.

Once you’re in Command Prompt, run the following command:

diskpart

This will open the Diskpart utility. Next, enter the following command and tap the Enter key.

list disk

This will list all the disks connected to your system. You will likely see one very small drive that’s only a few MBs in size, and one large drive. You may see more than one large or more than one small drive — don’t worry about that.

Look closely at the list of disks and note down the number assigned to each one. Identify the disk you want to set up — for example, disk 0. Once you have confirmed the correct disk number, select it with the following command:

select disk 0

If your drive has a different number, replace the 0 with the correct number. This will select the drive, and all commands you run will be executed on it.

Before going further, you need to choose a partition style. For almost all modern Windows 10 and Windows 11 PCs using UEFI firmware, and for any disk larger than 2 TB, you should use GPT (GUID Partition Table). GPT is the current standard and is what Microsoft recommends. MBR (Master Boot Record) is an older format intended for legacy BIOS systems and disks under 2 TB — use it only if you know your system requires it.

Now, if you want to completely erase the selected disk and start fresh, run the following command. Warning: this permanently destroys all data on the selected disk. Only run this if you are certain you have selected the right disk and intend to erase it.

clean

After cleaning the disk, convert it to the appropriate partition style. For the vast majority of users on modern hardware:

convert gpt

If you are setting up an older legacy BIOS system, use this instead:

convert mbr

If your goal is to install Windows on this disk as a boot drive, the recommended approach at this point is to close DiskPart and let Windows Setup handle the rest. Windows Setup will automatically create the required system and recovery partitions from the unallocated space when you proceed with the installation. To exit DiskPart, type:

exit

Then close Command Prompt and continue with the Windows installation from the USB.

If you want to partition and format the disk manually (for example, to prepare a data drive rather than a boot drive), continue with the steps below. To create a single primary partition using the entire disk, run:

create partition primary

Omitting the size parameter uses all available space. If you do need to specify a size, note that the value must be entered in megabytes (MB) — for example, to create a 100 GB partition, you would use size=102400.

Now that the disk has been partitioned, you need to create volumes and format the disk. Enter the following command:

list partition

This will list all partitions available on the current disk. Determine which is the largest one, and then select it with the following command. Replace the 0 with the number of the partition you want to select.

select partition 0

Now that you’ve selected the partition, it’s time to format it. We’re going to do a quick format using the NTFS file system.

format fs=ntfs quick

This will create volumes, and they should automatically be assigned a drive letter. Run the following command to view the volumes.

list volume

If the volumes have not been assigned a letter, you can assign one with the following commands. First, select the volume.

select volume 0

Next, assign the letter:

assign letter=C

Take care not to use a letter that is already in use. Repeat for all unassigned volumes.

Note: Do not run the active command on a GPT disk — it is not valid for GPT/UEFI setups and does not apply. The active command is only relevant for MBR/legacy BIOS configurations where you need to flag a partition as bootable for an older system.

That’s all. You can close the Command Prompt window and install Windows from the USB. Following these steps is the most reliable way to set up a hard drive from scratch using only built-in Windows tools.

Set Up a New Hard Drive in Disk Management

If you already have a working Windows PC and you simply need to prepare a new internal or external drive — without reinstalling Windows — Disk Management is the easiest route. It gives you a graphical interface to initialize, partition, and format drives without typing a single command.

Here is how to do it:

  1. Press the Windows key + X and select Disk Management from the menu. Alternatively, right-click the Start button and choose Disk Management. You may be prompted for administrator permission.
  2. Locate your new disk in the lower pane. It will typically appear as Disk 1 or higher, with its space shown as Unallocated.
  3. If the disk shows a status of Offline, right-click the disk label on the left and select Online to bring it online.
  4. Right-click the disk label and choose Initialize Disk. A dialog box will appear asking you to choose a partition style.
  5. Select GPT (GUID Partition Table) for most modern systems, drives larger than 2 TB, and any drive that will be used with a UEFI-based PC. Choose MBR only if the drive will be used with an older legacy BIOS system. Click OK.
  6. Right-click the Unallocated space on the newly initialized disk and select New Simple Volume. This opens the New Simple Volume Wizard.
  7. Follow the wizard prompts. You can use the full disk size or specify a smaller partition size if you want to split the drive later.
  8. Assign a drive letter when prompted — choose any available letter from the dropdown.
  9. On the format screen, choose your file system:

    • Use NTFS for a drive that will be used primarily with Windows.

    • Use exFAT if the drive will be shared between Windows and macOS, or used as a cross-platform external drive.


    Give the volume a label if you like, ensure Quick Format is checked, and click Next, then Finish.


Windows will format the drive and it will immediately appear in File Explorer, ready to use. This is the simplest and most straightforward method for anyone who needs to prepare a new drive on an already-running Windows system.

Other Tools

Diskpart may seem intimidating for users who have never worked with the command prompt. If you’re uncomfortable using it, there are third-party tools that let you manage partitions through a graphical interface. These tools are typically loaded onto a bootable USB drive, and they will load even if you do not have an OS installed on your system, giving you a GUI to set up a hard drive without typing a single command. The apps may or may not be free, so search for a reputable partition tool and always check the reviews before you use one.

3 Comments

  1. Brilliant and clear instructions that have revived my old Acer hdd ready for a new install. Yes, as Tilman mentioned,…..

    ‘May I correct just one thing in your description: The command “select drive 0” didn’t work. “select disk 0” worked for me.’

    Much Appreciated,

    Rod

  2. Hey, thanks for that useful tip. Now I’ve got another clean install of Win10 on my Thinkpad X250 (formerly KDE Neon).

    May I correct just one thing in your description: The command “select drive 0” didn’t work. “select disk 0” worked for me.

    Have a great day
    Tilman