Are you searching for a way to hide a drive in windows PC? If yes is your answer then you have landed on the right page. In this tutorial, I am going to provide some simple steps to hide your drive in windows using command prompt.
You may probably know that you can hide your files and folders in your windows PC. But do you know that you can also hide a drive in your windows PC with the help of command prompt? If not follow the guide given below.
If you know some simple commands then command prompt can serve as a powerful tool that will help you in numerous ways rather than using a third-party software.
Steps To hide Drives Using Command Prompt:
Note: This method will work on all versions of Windows i.e., Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10.
Step 1: First open the command prompt. To open the command prompt press “Win + R” on your keyboard and type cmd in the “Run” box and hit “Enter”.
Alternatively, you can also open the command prompt using windows search option. Click windows button and type cmd in the search bar and hit “Enter”.
Step 2: The command prompt window will open up as shown in the screenshot below.
Step 3: Now to get into the Disk Partition menu type “diskpart” and hit “Enter”.
Step 4: To get the detailed list of all drives and volumes in your windows PC, type “list volume” and hit “Enter”.
Now you will be able to see the list of volumes and its associated volume numbers.
Step 5: From the list, select the drive that you wish to hide with the help of the following command “select volume F” (here “F” is the volume letter I have chosen).
You can also use the command “select volume 0” (here 0 is the corresponding volume number) and hit “Enter”.
Step 6: Now that the volume is selected, enter the following command: “remove letter f” (again f is the selected volume), to hide it.
That’s it. Your drive is successfully hidden now. Now close the command prompt and access your computer as you wish.
Steps To Get Back The Hidden Drives Using Command Prompt:
Step 1: Follow the steps mentioned above to open the command prompt and get into the diskpart.
Step 2: Type the command “select volume 0” (0 is the volume number) and hit “Enter” to select the volume for which you have to assign a drive letter (i.e, to get back the hidden drive).
Step 3: To assign the drive letter to the selected volume type “assign letter f” (“f” is the volume letter that I have hidden in the first part of the tutorial) and hit “Enter”.
Step 4: The drive letter is assigned now. Hit “Enter” again to save the changes.
That’s it. Now you have successfully got back the hidden drives in your computer.
If you encounter any issues while following these tutorials, do let us know in the comments section below.