Method 1: (Using registry editing):
You can hide any drive or all drive by simple registry editing. Before editing your computer registry, it is good to back up it.
Ø Open Run command (Window key + ‘R’).
Ø Type: regedit , then click OK.
Ø From given registry editor, expand HKEY_CURRENT_USER.
Ø Then click on (Explorer).
In Windows 7, Vista and Windows 8 above steps are correct. But in Window XP, location is: HKEY_CURRENT_USER => Microsoft => Windows => CurrentVersion => Policies => Explorer.
Ø Right click on blank space in right panel, click New => DWORD Value.
Ø Give name or Rename as ‘NoDrives’.
Ø Double click on it.
Ø Change ‘Base’ to 'Decimal' from 'Hexadecimal'.
Ø In ‘Value data’ textbox, give a number corresponding to drive you want to hide from below table. That is if you want to hide D drive, give value as 8. Or, if you want to hide H drive, then give value as 128.
Ø If you want to hide more than one drive simultaneously, then give the sum of decimal numbers of drives as value. That is, to hide both D and H at same time, give value s 136. (Here 136 is the sum of decimal number of D and H: 8 + 128 = 136).
|Drive Letter||Decimal number|
Ø Then click OK.
Ø Now you have to restart your computer or explorer process to get hide your drives.
Note: Here if you open your Run command (Win key + R), and type hidden drive's letter with column (example: ‘D:’), then you can open that drive. This is the disadvantage of this method. But this method is applicable with someone who is not a familiar with computer. Also you can simply open drives by run command.
Ø To show hidden drives, just go to above location in your registry and just delete ‘NoDrive’ value.
Method 2: (Using disc management):
This method is more secure than first method. After hiding a drive, any one can't open that drive by Run command.
Ø Right click on Computer (My computer).
Ø Take ‘Manage'.
Ø From given computer management window, click on ‘Disc Management’ from lift menu.
Ø Now you can see a list of all your disc drives.
Ø Right click on a drive you want to hide.
Ø From given context menu, click on ‘Change Drive Letter and Paths…’.
Ø Now you will a small window with your drive letter. Click on ‘Remove’ button.
Ø Click on ‘Yes’ button from given warning message.
Ø Now your drive should be hid.
Ø To show hidden drive, open disc management. Right click on hidden drive name => ‘Change Drive Letter and Paths…’.
Ø From given small window, click on ‘Add’ button. Then select a drive letter, and then click ‘OK’.