PC manufacturers often include recovery partitions. These are usually hidden, but sometimes become visible under This PC and elsewhere in Windows. Here’s how to hide a recovery partition—or any other drive.

We’ll be removing a partition’s drive letter to hide it. The partition will still be visible to disk management tools, but it won’t appear in Explorer and normal desktop applications. You can always reassign a drive letter to it in the future.

For many partitions, you can do this with the graphical Disk Management tool. To open it on Windows 10, right-click the Start button (or press Windows+X), and then click the “Disk Management” option.

To open it on Windows 7, open your Start menu, type “hard disk” into the search box, and then click the “Create and format hard disk partitions” shortcut.

Locate the partition you want to hide. For example, if you want to hide the drive that has the letter “D:” under File Explorer, look for the partition that has the letter “D:” under the Volume column in the Disk Management window.

Right-click that partition, and then select the “Change Drive Letter and Paths” command.

If you don’t see any options other than “Help “when you right-click a drive, continue to the next section instead. You’ll need to use the diskpart command to remove the drive letter. The graphical interface won’t let you.

Select the drive letter you want to remove in the window that appears, click the “Remove” button, and then click the “OK” button.

Each partition generally has only a single drive letter. If the partition has multiple drive letters assigned to it, you’ll probably want to remove each from here.

Windows warns you that programs may not run correctly if you remove the drive letter. For example, if you installed an application on this drive or stored important files on it, you won’t be able to access them while the drive doesn’t have a letter assigned to it.

Click “Yes” to continue.

If the drive is currently in use, you’re warned that you must restart your PC to finish the process. Click “Yes” again, and then restart your PC. The drive won’t be visible in Windows after you finish this process. 

If you want to make the drive visible again in the future, head back to the Disk Management tool, go to the Change Drive Letter and Paths window, and then click the “Add” button to add a drive letter to it.

Give the drive the same letter as it had before and everything should work properly, even if you installed applications on the drive before you removed its drive letter.