The command prompt is one such powerful yet, mostly overlooked part of the Windows OS.
Methods to hide any drive:
Step 1:
First activate the command prompt.
In Windows 8.1 and 10, you could access it by hitting a right punch the start button.
Step 2:
Now that youre in the command prompt, typeDiskpart& hit enter.
If prompted with the User Account Control dialog box, click yes.
Step 3:
Once this is done, typeList Volumeinto the prompt and hit enter.
This will display a list of all the drives in the machine as shown below.
Step 4:
Next, you better choose the drive that you want hidden.
Now, we begin the steps to reverse this process.
pick 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 press the Enter key.
Now, typeAssign Letter Gand hit enter and you will be able to see the drive in the explorer.
source: www.techworm.net