netoops blog

Hide/Unhide any drive using CMD

You can hide/unhide any drive from my computer using cmd(command prompt.). But, you cant hide your drive that is running windows (Commonly C:). After hiding any drive, you wont be able to browse it. It will removed from your computer until you want it back. So, read this tutorial very carefully. 

Steps to hide:

  • Go to All Programs> Run (Win+r).
  • Type "diskpart" without "quotes" and hit enter.
  • Now type "list volume" without "quotes" and hit enter.
  • A screen like this will come:
  • Now type "select volume d" without "quotes" (Change d with the letter of the drive that you want to hide) and hit enter.
  • You will get a message like this "Volume _ is selected volume" , i.e. your volume is now selected.
  • Now type "remove letter d" without "quotes"(Change d with the letter of the drive that you want to hide) and hit enter. And now your drive is hidden.


  • Steps to unhide:

    • Go to All Programs> Run (Win+r).
    • Type "diskpart" without "quotes" and hit enter.
    • Now type "list volume" without "quotes" and hit enter.
    • A screen like this will come:
    • Now type "select volume d" without "quotes" (Change d with the letter of the drive that you want to unhide) and hit enter.
    • You will get a message like this "Volume _ is selected volume" , i.e. your volume is now selected.
    • Now type "assign letter d" without "quotes"(Change d with the letter of the drive that you want to unhide) and hit enter. And now your drive is available.

    Enjoy !

No comments: