How To Hide Any Drive Easily In Windows Using CMD

Command-line User Interface is always more powerful than the Graphical UI. There are a lot of tasks you can do easily using command prompt which is not possible to do in Graphical UI.  Using Command Prompt you can accomplish certain tasks that usually can’t be done without any third-party software. In this article, I am going to share the easiest way to hide one or more drives in the explorer using CMD.

Hide Any Drive in Windows Using Command Prompt

Read: How to Recover Deleted Data from Hard Drives ?

Step 1: Press win+R, Type CMD in a run and hit Enter to launch Command Prompt. In Windows 10 and 8.1, you can right-click on the Start button, and then click Command Prompt to open CMD.

Step 2: In the CMD, type Diskpart and hit the enter key. Click Yes if you are prompted with User Account Control dialog box.

Diskpart-Command

Step 3: And then type List Volume and hit enter to see a list of all drives.

List-of-Hide-Drives

Step 4: Select the drive that you want to hide. To do this, type Select Volume G (here, G is the drive letter)

List of Hide Drives

Step 5: To hide a drive, type Remove Letter G. Here, G is the drive letter then you want to hide.

List-of-Hide-Drives-3

Step 6: You are done. Close the Command Prompt.

How to show Hidden Drive again?

To show off the drive, do the same till Step 4 & fifth step command will be assign letter G & see that you’ve assigned the drive letter “G” successfully.

15 thoughts on “How To Hide Any Drive Easily In Windows Using CMD”

    • Simply do the same thing again and write the 5th command as .. “Assign letter…(G,F,E)” whatever u wanna unhide and press Enter.

      Reply
    • to show the drive again you have to write step No. 4 accurately as mentioned below:
      perform step 1 to 3 as same described above.
      in step 4
      type select volume 0 (if you have hidden C drive)
      or
      type select volume 1 (if you have hidden D drive)
      or
      type select volume 2 ,(if you have hidden E drive)
      or
      type select volume 3 ,(if you have hidden F drive)

      it depends on what drive you have hidden. you can also note drive No. while hiding drive.

      then perform last step no.5 as described above. i.e type assign letter D or assign letter E or assign letter F whatever you have hidden
      your hidden drive will be show…..

      Reply
    • Don’t worry,

      I got the solution. Go to computer management -> disk management ->right click on your hidden drive in below area->select change drive letter and path and finally assign name to it.
      That’s all <3

      Reply
  1. for me show this message: “The arguments specified for this command are not valid. For more information on the command type: HELP REMOVE”

    Reply
  2. For those who cant re show the drive use the GUI method – (can also be used to remove drive letters)
    right click my computer on desktop (or run computer management)
    select Manage > Storage > Disk Management >
    Select the drive Right click Select Change Drive letter and paths

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.