How to hide partitions in Windows 10,7 & 8 via command prompt

- Advertisment -

We store a lot of information on our computer, and sometimes we don’t want others to see them. The best way to hide such things from getting accessed by others is to move them to a particular partition, and encrypt it. But with encryption, you will have an additional headache to remember the password, and in case it is lost, you might see darkness everywhere. But you can always hide a partition, which contains some sensitive information quite easily. You will not need any hide drive software or Windows drive hider like Nodrives Manager for that purpose. You will just need to use some Command Prompt commands for this purpose.

You can use the tutorial to hide external hard drives, as well. So here I will show you how to hide drive partitions using CMD. This tutorial can be followed on any Windows operating systems, like Windows 7, 8, 10, and the older versions of Windows, as well. I will show you how to hide the drives and the way on how to access hidden hard drive partition after unhiding it. This tutorial can be helpful to hide some sensitive things, without the need of going through the BitLocker hassle.

But the process in this tutorial is just going to hide the partitions. They are not getting encrypted or you are not protecting it in any way. If you have some geeky friends who are expert in computers, it will be a piece of cake for them to find out the hidden partitions and see the contents. So never consider this method as a security measure. It can be enough to hide the partitions from your family members, who are not that expert in computers.

So let’s get started with this tutorial.

Hide partitions in Windows 10,7 & 8 via command line prompt

The steps to follow

    1. Here is a list of drives before I hide any drive. I will be hiding the ‘Audio CD’ drive. You can always use this tutorial on any other hard drive partitions, or other volumes as well. The steps are not different.Hide partitions in Windows 10
    2. Open ‘Command Prompt’ on your Windows. You can hit ‘Windows key + R’, type ‘cmd’, and hit the enter key to open it easily.
    3. Now type ‘diskpart’ and hit the enter key.diskpart
    4. Now a new Command Prompt window will open with the ‘DISKPART’ prompt.hide partition using command line windows
    5. Hiding a volume…
      1. Now type in ‘list volume’, and you will see the list of partitions and volumes attached to your computer. You can even find some connected flash drives, CD and DVD drives, etc.
      2. Each of the partitions that will be shown to you, will come with a volume number, a drive letter, volume label, disk type, partition size and different other details. You will have to choose the one that you want to hide.Hiding a volume windows
      3. Now type ‘select volume x’ and hit the enter key. You should replace ‘x’ with the volume number. I will be hiding the drive with the label ‘Audio CD’ in this tutorial. The number for me is ‘0’. So my command will be ‘select volume 0’ followed by hitting the enter volume
      4. Now type in the following ‘remove letter x’ and hit the enter key. The ‘x’ should be replaced by the drive letter. For me, the command will be ‘remove letter F’ followed by hitting the enter key.hide windows disk partitions
      5. Now the drive will be hidden from the list of drive in your Windows Explorer. hidden from the list of drive in your Windows

Now you might need to know how to access hidden hard drive partition. For that, you will have to unhide the drives. The process for that is as shown below.

How to unhide drive in windows 10, 7 & 8 using command line prompt tool

Step 1: The steps are pretty similar in case of unhiding volumes, as well. In case you have exited DISKPART and is unhiding the disk partition or volume in a new session, you will have to repeat all the steps until the command of ‘select volume x’.

Step 2: Still, I am just recapping the commands, if you do not want to scroll up.


DISKPART>list volume

DISKPART>select volume x

Note: Volume X- where X should replace with a value of drive like in my case it is 0.

Step 3: Now the next command will be ‘assign letter x’ followed by hitting the enter key. You should replace ‘x’ with the drive letter, which you have hidden. Thus, for me, the command will be ‘assign letter F’ followed by hitting the enter key.

unhide drive in windows 10

*In case you want to unhide the partition in the same session, just execute the last command.

Step 4: Now you will be able to find the hidden drive back in Windows Explorer or when you open ‘My Computer’.

Hope the information on how to hide a partition in Windows 10 or other Windows versions was helpful for you. If you wanted to know to hide OEM partition, this tutorial can also be helpful for you as well.

Do you have any questions in your mind about the following tutorial? Feel free to comment it down below.

You might also like to know about:


Sarbasish Basu
From B.Tech (Hons.) Electronics & Instrumentation Engineer to Photography and Writing blogs; he ultimately has answers to everything. Oh, and he's also quite good in rapidly building a relationship and set up the trust; his articles are proof of that...


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

Xbox Scarlett is now officially Xbox Series X

Ending every speculation and rumours, Microsoft named the next-gen console as Xbox Series X. Taking the opportunity of The...

What points one should look to get the best internet connection for gaming

Finding the right gaming computer of your choice might not be a difficult exercise today when you...

Microsoft’s next-generation 2020 console is Xbox Series X not Scarlett

At the stage of The Game Awards (TGA), Microsoft's vice-president of Gaming "Phil Spencer" announced that the new generation...

Now we can send and receive tabs on Firefox Reality VR Browser

Last year launched Firefox Reality browser especially meant for VR headsets has got some updates. This Mozilla VR browser's...
- Advertisement -

Best Way to find new Movies or TV series to Watch

Do you want to know how to discover something new to watch, I mean quality video content? If you...

What is Xbox Project Scarlett? Anaconda or Lockhart

Now the time of 9th gen gaming console is about to meet an end. Even the primary...
- Advertisement -

You might also likeRELATED
Recommended to you