There are many reasons why you might want to hide or remove a logical disk volume in Windows. Perhaps you are maintaining a backup partition and want to hide it to help ensure its integrity. In any case, removing a logical disk volume in Windows is a pretty simple procedure.
- Type diskmgmt.msc in the Run… dialog box and press enter to open the Disk Management MMC snap-in.
- In the lower half of the window, right-click the partition you wish to hide and choose Change Drive Letter and Paths…
- In the following dialog box, select all assigned drive letters and click the Remove button.
This will remove all logical disk assignments and Windows will no longer display the partitions in My Computer or Windows Explorer. Add drive letters back if you need to access the disk later.
You can accomplish the same thing from a command prompt or batch file using the DOS diskpart command. The following example demonstrates the removal of drive.
- Type cmd in the Run… dialog box to open a Command Prompt window.
- Type diskpart and press enter to start Microsoft DiskPart.
- Type list volumes and press enter to see a full list of volumes. Note the volume number associated with your drive letter such as Volume 3.
- Type select volume 3 and press enter substituting 3 with the volume number you noted in the last step.
- Now type remove letter E substituting E with the drive letter that you wish to hide.
You can perform this process again to substituting “assign” for “remove” in the last step to add a drive letter back.