How To Hide And Unhide Drive In Windows 10

In this article, we will see two ways of hiding and unhide drive in windows operating system.

  1. Via user interface and
  2. Via console (Command prompt)

Before doing all these let’s understand why should we hide drive?

We hide the folders and files on the hard drive, so that others can’t see our personal data. But what if we have a whole drive of personal data.


So, in this situation if we hide files and folders one by one, it will take too much time, that’s why windows provide a feature using that you can hide a whole drive once instead of hiding one by one.

Via user interface

Hide drive

Follow the steps:

Step 1. Right-click on My Computer a and select manage.


Step 2. I will bring you on the computer management screen, over there on the right side click on Disk management.


Step 3. In the center, you will get a list of drive partitions that you had created in your hard drive, select the drive which you want to hide for example I want to hide my D drive.


Step 4. Right-click on the drive and select Change drive letter and 


Step 5. Now, click on remove.



Checkout from file explorer you will get your drive hidden.


drive hidden



Follow the steps:


Step 1. Follow the same steps 1,2,3,4 mentioned above.

Step 2. Click on add and then ok.


add drive

Via console(Command prompt)

Hide the drive

Step 1. Click on start and then run or hold on Windows + R and then type cmd in the run box.




Step 2. Type Diskpart in cmd and hit enter.


Step 3. Now you have to type List volume and hit enter, it will display all the drive partitions created in your hard drive.


Step 4. Select the drive by typing the command Select volume D and hit enter, it will display the message volume selected.


Step 5.  Now, to hide the selected drive type command Remove the letter D and hit enter.


Check out your file explorer your drive has hidden.


Unhide the drive


Step 1. Follow the steps 1,2,3,4 mentioned above.


Step 2. Type the command Assign letter D.


And you will get a drive back.


Abdullah is the founder of GamerAfter. He is passionate about blogging and wants to share knowledge with others. His passion, dedication, and quick decision-making quality make him stand from others.

Best Animation Software for Beginne... x
Best Animation Software for Beginners and Beyond

Leave a comment