How to erase a hard drive and start over?
Most computers have a system restore disc or built-in restore process on the hard drive to reset the computer to the original or default settings (factory reset). Resetting, formatting, or restoring, a computer helps eliminate issues with computer software, including corrupt program files and virus infections. Instructions on how to restore your computer back to the original software are provided below.
Restoring your computer erases all the information on the hard drive and makes it like new. Once the steps below are completed, you cannot restore any lost data. Back up any files you do not want to lose before proceeding with the restore process.
If you have an OEM (Original Equipment Manufacturer) computer (e.g., Acer, ASUS, Dell, or HP (Hewlett-Packard)), you likely have a hidden system recovery partition and don't need a disc to restore your computer.
Erasing the hard drive and reinstalling Windows
To erase your hard drive and reinstall Windows, select a link below for your version of Windows and follow the steps.
If you're erasing everything and reinstalling Windows, an administrator login name or password isn't needed.
Windows 11
Follow these instructions to erase or uninstall and reinstall Windows 11.
- Open the Start menu.
- Select the Settings app ().
If you don't see the Settings app in the Start menu, click the magnifying glass icon on the taskbar. In the text field at the top of the search window, type settings and press Enter.
- In the Settings window, click the System option in the left navigation menu.
- Scroll down on the right side of the window and select the Recovery option.
- On the right side of the Recovery window, under Recovery options, click the Reset PC button.
- Choose the Keep my files or Remove everything option to preserve your files or delete everything and start over.
- Follow the prompts to begin the recovery process.
Windows is reset, keeping your files intact or erasing everything, depending on the option you selected above in step 6.
Windows 10
Follow these instructions to erase or uninstall and reinstall Windows 10.
- Press the Windows key, type Settings, and press Enter.
- In the Settings window, select the Update & security option.
- Select the Recovery (A) option in the left navigation pane, and click the Get started button (B).
- Choose the Keep my files or Remove everything option to preserve your files or delete everything and start over.
- Follow the prompts to begin the recovery process. Once the process completes, Windows is reset.
Windows 8
Follow these instructions to erase and reinstall Windows 8.
- Press the Windows key+C to open the Charms menu.
- Select the Search option and type reinstall in the Search text field (do not press Enter).
- Select the Settings option.
- On the left side of the screen, select Remove everything and reinstall Windows.
- On the Reset your PC screen, click Next.
- On the Do you want to fully clean your drive screen, select Just remove my files to do a quick deletion or select Fully clean the drive to have all files erased.
- On the Ready to reset your PC screen, click Reset.
Your files or all files on the hard drive are removed, depending on the option you selected in step 6, and then Windows 8 is reinstalled.
Windows 7 and Vista
To restore a Windows 7 or Vista computer, you must have a set of restore discs for the computer or an original Windows 7 or Vista installation disc. If you do not have a set of restore discs, contact the computer manufacturer to order a new set or restore discs.
Before following the steps below, make sure the computer is set to boot from the CD-ROM (Compact Disc Read-Only Memory) drive.
- Insert the Windows 7 or Vista installation CD (Compact Disc) in the CD-ROM drive and restart the computer.
- When you see the message "Press any key to boot from CD," press a key on the keyboard.
- Press Enter at the Windows Setup welcome screen.
- When prompted, press any key on your keyboard.
- On the Install Windows screen, select your preferred language and other preferences, then click Next.
- On the License Agreement screen, accept the terms and agreements, and click Next.
- On the Installation Type screen, choose the Custom option.
- Select the Drive Options (advanced) option.
- For Disk 0, delete all partitions. When all partitions are deleted, a single entry named "Unallocated space" should be seen.
- Click Disk 0 and select Next.
The Windows installation process starts by creating a new partition, formatting the partition, and installing Windows on the hard drive. The formatting process erases the hard drive before installing Windows.
Windows XP and 2000
To restore a Windows XP or 2000 computer, you must have a set of restore discs for the computer or an original Windows XP or 2000 installation disc. If you do not have a set of restore discs, contact the computer manufacturer to order a new set or restore discs.
Before following the steps below, make sure the computer is set to boot from the CD-ROM drive.
- Insert the Windows XP/2000 installation CD in the CD-ROM drive and restart the computer.
- When you see the message "Press any key to boot from CD," press a key on the keyboard.
- Press the Enter key at the Windows XP Setup welcome screen, then press F8 to accept the Terms and Agreements.
- Follow the on-screen instructions to select a hard drive partition to format and install Windows XP.
- After formatting the hard drive, which erases all data, see our steps for reinstalling Windows.
Earlier versions of Windows and DOS
Follow these instructions to erase and reinstall MS-DOS 5.0+, Windows 3.x, 95, 98, Me, or NT 4.0.
Formatting the drive
- Place the bootable diskette or disc inside the computer and reboot to get to the DOS prompt. Sometimes, you may need to boot the computer with CD-ROM support or press a key to boot from the disk.
- At the MS-DOS prompt, type format c: /s and press Enter.
If the "format c: /s" command does not work, you may need to download the format.com file to your boot disk.
- The computer asks "Are you sure you want to erase everything on drive c:?" If you are ok with doing this, enter "Y" for yes and press Enter.
- The computer begins the formatting process. While the computer is formatting, make sure no errors are encountered.
- Once the format process is completed successfully, at the MS-DOS prompt, type fdisk /mbr and press Enter. After entering this command, it should return you to the MS-DOS prompt with no message. This step is not required, but recommended.
- Once back at the MS-DOS prompt, reboot the computer with the boot disk still inserted and follow the steps below to reinstall Windows on the hard drive.
Windows NT 4.0
Windows NT can be installed in different ways. We recommend Windows NT be installed using the steps below as we feel that these steps by far are the easiest way to install Windows NT 4.0.
First, we recommend all users wanting to install Windows NT use the /b switch, which allows the users to not need to create the diskettes. We do, however, recommend the user create the emergency recover diskettes if they have not already been created after the installation of Windows NT.
Finally, before the installation of Windows NT, we recommend you run smartdrv, which helps the installation of Windows NT run a lot faster.
- Place the CD into the computer.
- Type X: (where X is the CD-ROM drive, often the D:).
- Once at the appropriate drive, type cd winnt and press Enter to get to the Windows 95 directory.
- Once at the X:\WINNT> prompt, type winnt /b.
- Follow the on-screen instructions to complete the installation.
Windows 95 with a backup CD
- Place the CD in the computer.
- Type X: (where X is the CD-ROM drive, often the D:).
- Once at the appropriate drive, type cd win95 and press Enter to get to the Windows 95 directory.
- Once at the X:\WIN95> prompt, type setup to begin the installation.
- Follow the on-screen instructions to complete the installation.
If you are encountering issues during the setup process, add additional switches to the setup command line. These switches are on our Windows 95 setup switches page.
Windows 95 with floppy diskettes
- Place the first diskette of Windows 95 in the computer.
- At the A:\> prompt, type setup and press Enter to begin the installation.
- Follow the on-screen instructions to complete the installation.
Windows 3.x
- Place the first diskette of Windows 3.x in the computer.
- At the A:\> prompt, type setup and press Enter to begin the installation.
- Follow the on-screen instructions to complete the installation.
MS-DOS
- Place the first MS-DOS diskette into the computer.
- At the A:\> prompt, type setup and press Enter to being the installation.
- Follow the on-screen instructions to complete the installation.