How To Hide Drives In Windows 7 Using Command Prompt
Posted October 18, 2010 – 9:25 pm in: Windows 7 GuidesThe Command Prompt in Windows is a very powerful tool to accomplish certain tasks that usually can’t be done unless you have a third-party tool. We have already covered a few guides such as how to install Windows 7 via USB flash drive and how to add/delete/rename power plans using Command Prompt.
Today, we are going to share another interesting use of Command Line. One can use the Command Prompt to hide one or more drives in the explorer. Of course, you can use a free tool such as DriveHide to do the same. But, if you can remember a few commands, you can easily hide a drive in a few seconds without using a third-party software.
Here is how to do it:
1. Type CMD in Start menu search area and hit Enter to launch Command Prompt. You can also find the Command Prompt under Accessories category in Start menu.
2. In the Command Prompt, type Diskpart and hit enter key. Click Yes if you are prompted with UAC (User Account Control) dialog-box.
3. And then type List Volume and hit enter to see list of all drives.
4. Select the drive that you want to hide. To do this, type Select Volume G (here, G is the drive letter) or Select Volume 8 (here 8 is the volume number)
5. To hide a drive, type Remove Letter G. Here, G is the drive letter than you want to hide.
6. You are done.
To show the hidden drive, follow the steps given below:
1. Follow the procedure mentioned in step 1, 2, and 3.
2. Select the volume number for which you want to assign a drive letter and show in the explorer. Type Select Volume 8 (here, 8 is the volume number) and hit Enter key.
3. Once selected, type Assign Letter G and hit Enter key to see the drive in explorer(replace G with the drive letter that you have previously removed).
Tags: Command Prompt, explorer, Hide Drive Letters, Windows 7- How to get Windows 8 Start screen with live tiles in Windows 7
- How to get Windows 8 betta fish boot screen in Windows 7
- How to get Windows 8 Taskbar user picture tile in Windows 7
- How to get Windows 8 lock screen and sidebar menu in Windows 7
- How to get Windows 8 Start screen like home page web browsers
- How to get Windows 8 logon screen date and time in Windows 7
- 14 Excellent Windows 7 themes
- How to make bootable USB
- 27 Beautiful Vista logon screens
- How to install Windows 7 from USB
- Remove Watermark from Windows 7 desktop



7 Comments
Hello,
I just want to say that this is really unsafe ….
I agree with you. This method is not novice Windows users.
Will this (or a similar method) work with removable drives for all future times that the removable drive is plugged in? I have a USB drive with a TrueCrypt partition on it along with a regular unencrypted partition. The unmounted TrueCrypt partition shows up as an unformatted drive in Windows, which is really scary since Windows asks if you want to Format the partition any time you accidentally click on it. It also gives away that there’s something there, which is a slight security risk associated with the TrueCrypt partition. Any ideas on hiding this partition would be greatly appreciated.
thank you too much dear brother
Thanks a lot, its a nice tip !
Its dangerous, the most secure way is from the Local Group Policy Editor. But anyway, nice info. Great site.
well that was something helpful..keep it up