Hide drive in windows 8 and 7

By
, ,

Well it is quite easy to hide a drive in windows system.You will need administrative rights to hide a drive through command prompt. There isn't much to explain on this topic, so here are the steps that you'll need to follow.

Steps to hide the drive via Command Prompt

  • Click on start type cmd, right click on the program cmd and select run as administrator. 
    running cmd as admin
  • Now type diskpart inside command prompt and press enter.
    executing diskpart command
  • Type list volume, on pressing enter a list of all the drives on your computer will appear in front of you.
  • list volume command execution
  • You can use either the volume Ltr or number in the next command. For example , if I want to remove my drive F then I will type either select volume F or select volume 5 and hit enter. After selecting the drive I will type another command remove letter F and then press enter.
  • select volume and remove letter commands
  • That's it the drive F: is no longer visible in explorer.
  • Final Result


To make the drive visible again follow the following steps.

  • Follow the first three steps up to list volume command as it is. Select the volume number of the drive you want to make visible again and type select volume volume_letter, since I want to make my drive F: to appear in the explorer I will type select volume 5. After selecting the drive type assign letter F (change F to your drive letter).
  • select volume and assign letter commands
  • My hidden drive is back in the explorer.
    Hidden Drive is Visibile Again

Steps to hide the drive via Windows Registry Editor

Another method for hiding the drives or partitions in Windows is by making changes in the Windows Registry using Registry Editor.
  1. To open Registry Editor, press Windows key + R and write regedit in the textbox.
  2. Press Enter.
  3. The Registry Editor window will appear as shown.
    Registry Editor

  4. Now locate the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer where you will create a new DWORD (32-bit) Value by Right Clicking in the Right Pane as Shown below in the Image
    Creating New DWORD(32 bit)
  5. Give a Name to the New Key i.e Hide Drives Or No Drives etc and Double Click on that a dialog box will appear.
  6. Now Switch to Decimal Mode and Type the Value to Hide the Specified Drive for example to Hide Drive B type 2 in the Value Field As Shown Below
  7. Enter value in decimal format corresponding to a Drive
  8. For other drive letters enter the decimal value according to the following table:-
    A: 1 E: 16 I: 256 M: 4096 Q: 65536 U: 1048576 Y: 16777216
    B: 2 F: 32 J: 512 N: 8192 R: 131072 V: 2097152 Z: 33554432
    C: 4 G: 64 K: 1024 O: 16384 S: 262144 W: 4194304 ALL: 67108863
    D: 8 H: 128 L: 2048 P: 32768 T: 524288 X: 8388608
Note:- If you want to hide more than one drive then enter the sum of all the values of the drives int value
For Example – If you Want to Hide Drive E,F then type 48 (16+32) in the value field

1 comment:

a