Command prompt is one of the most powerful component of MS Windows . By giving right commands in command prompt we can accomplish many task for which we are using third party utility software. Third party utility software makes the task easy but one should know the real process : “How to do it manually without using any softwares”. Here in this post I am going to show you how you can easily hide your drive and again show your drives. However there are many methods by which we can do this but in this post I am using command window to perform this task.
If you are interested you can check out the other ways. Read : How to hide drives in windows by using Registry editor.
How to Hide Any Drive in Windows Using Command Prompt
Method 1 of 2
Step 1: Type CMD in Start menu .You can also find the Command Prompt under Accessories category in Start menu. In Windows 10 and 8.1, you can right-click on the Start button, and then click Command Prompt to open the same.
Step 2: In the Command Prompt, type Diskpart and hit enter key. Click Yes if you are prompted with UAC (User Account Control) dialog-box.
Step 3: And then type List Volume and hit enter to see list of all drives.
Step 4: Select the drive that you want to hide. To do this, type Select Volume G (here, G is the drive letter) orSelect Volume 8 (here 8 is the volume number)
Step 5: To hide a drive, type Remove Letter G. Here, G is the drive letter than you want to hide.
Step 6: You are done. Close the Command Prompt.
To show the hidden drive, follow the steps given below:
Step 1: Follow the procedure mentioned in step 1, 2, and 3 of Method 1.
Step 2: Select the volume number for which you want to assign a drive letter and show in the explorer. TypeSelect Volume 8 (here, 8 is the volume number) and hit Enter key.
Step 3: Once selected, type Assign Letter G and hit Enter key to see the drive in explorer(replace G with the drive letter that you have previously removed).