Skip to content
Home » Microsoft » Windows » How to Hide a Drive in Windows 11, 10, 8 and 7

How to Hide a Drive in Windows 11, 10, 8 and 7

Many Windows users would know how to hide a file or a folder. It’s quite a common practice and it makes sense. Some people also simply lock a folder or file that contains confidential data. It can be a real task though if you have several such files or folders that you’d want to prevent from being discovered. You can always create just one secret folder in which you keep all your secrets. Alternatively, you could instead dedicate an entire drive to the cause. Of course, then you’d have to hide the drive somehow. Yes, it’s possible and we’re going to show you here how to hide a drive in Windows 11, 10, 8, and 7.

Why hide a drive?

As we just mentioned, you can create a hidden folder and hide all your files inside that. However, as we also mentioned, this is a pretty common practice. Just as many people know how to view hidden files and folders on Windows as many know how to hide them. Thus, hiding an entire drive solves that problem. Not only does anyone suspect you to have a hidden drive, there is also no way for others to check a box in the ribbon bar and view the drive. To access the drive, you can either use the command prompt or simply type in the drive address in the address bar of the file explorer.

Since you can change the drive letter, and not tell anybody about it, it would be difficult for any Sherlock to figure out if there is a hidden drive and how to access it.

How to hide a drive in Windows 11, 10, 8 and 7

There are at least four ways to do this on Windows via Disk Management, using Group Policy, through Windows Registry, and using Diskpart. Since Group Policy is not available on all versions of Windows 10 we’ll skip that for now. Furthermore, modifying the Windows registry is not recommended, especially when it can be done via other, safer methods. Not to mention this is just a tad bit more complicated than your general registry hacks.

Must read: How to Backup and Restore Drivers on Windows 10

Hide a drive using Disk Management

  1. Hit the Windows button and type computer management to search for it and open it. Alternatively, launch the file explorer and click on Manage from the ribbon bar at the top. Now, I don’t have the need to create a drive specifically for hiding files, therefore I’ll simply hide my main storage drive for demonstration.  How To Hide A Drive In Windows 10, 8 and 7
  2. In the Computer Management console, select Disk Management under Storage from the left column.
  3. The Disk Management console will now open up showing you all the disk drives attached to your PC.  How To Hide A Drive In Windows 10, 8 and 7
  4. Right-click on the drive you wish to hide and select Change Letter and Paths. Make sure you only try this on a drive that you don’t install programs to, like the C: drive. Also, ensure that any files you may have opened from the drive must be saved and closed.  How To Hide A Drive In Windows 10, 8 and 7
  5. In the pop-up window that opens up, click on Remove and then click OK. You may be warned now of the potential errors this may cause and the need to reboot your PC. Unless you install your programs on the drive you’re trying to hide you should be good. Simply click Yes wherever asked but do make sure you read the warning carefully.  How To Hide A Drive In Windows 10, 8 and 7
  6. Close the Computer Management console and open your file explorer again. You’ll notice your selected drive is no longer shown. How To Hide A Drive In Windows 10, 8 and 7
  7. If you need to access files in the hidden drive, simply enter the drive letter followed by  :\ and you can still use it. The drive and all its files are safe but simply hidden. For example, E:\
  8. If you want to unhide the drive ever, repeat steps 1 to 4, and in the pop-up, click Add, instead of Remove and assign a letter to the drive.

Hide a drive using Diskpart

Diskpart, if you’re unaware, is a command line-based tool. Therefore, to use it, you will need to launch the command prompt and type in commands. Some people are more comfortable with commands than others and might prefer this way.

  1. Open a command prompt window with elevated privileges (right-click > Run as administrator).
  2. Enter Diskpart to launch the command line tool.
  3. Type in List Volume and hit Enter. This will list all of your drives.
  4. Type select and then after space, type the numeral shown against the letter of the drive you want to hide. For instance,
    select volume 3
  5. Remove the drive letter now, which is what we did earlier using the Computer Management console. To do this, enter the following command.
    remove letter E
  6. This will hide your drive and you can see the result by opening the file explorer.
  7. In case you want to unhide the drive later, follow steps 1 to 4 and then enter this command:
    assign letter E

    You need not necessarily assign the letter E. You can assign any acceptable letter to the drive.

Don’t miss: How to Format USB Drive on Windows 10 Using Command Prompt

Vivek Tiwari

Vivek Tiwari

Blogger, Android nerd, Cosmic geek (yes, geek and nerd are not the same, see I know), certified Superman encyclopedia (bragging), local Tech guru. I have been contributing for Technastic and its sister sites for a decade.View Author posts