Hiding a drive can reduce accidental browsing or changes in Windows Explorer. It does not encrypt its files or prevent an administrator from finding the volume. Choose the method according to whether you want to remove its drive-letter path or simply hide the Explorer icon.
These steps are for an ordinary data volume. Do not remove the letter of the running Windows volume or experiment with boot, page-file, or manufacturer recovery partitions.
Before hiding D:, for example, look for installed programs, shortcuts, shared folders, and backup jobs using D:\ paths. Removing the letter makes those paths unavailable even though the files remain on disk.
diskmgmt.msc and match the volume to its physical disk.If the purpose is protecting confidential files, use appropriate account permissions and encryption instead. A hidden icon is only a presentation change.
If Windows refuses the operation, inspect the reason. Do not delete or format the volume to get around the refusal.
Open an administrator Command Prompt and enter diskpart. Run list volume, then select the correct volume using select volume N, where N is its actual number. Run detail volume and compare the result with your notes before changing anything.
For a confirmed data volume currently assigned D:, use remove letter=D, then exit. To restore it later, repeat identification and use assign letter=D only if D: is free. The number and letter in this example must match your disk.
Do not use clean, delete volume, or a guessed partition-type command. None is required to remove a normal drive letter.
On an edition that includes Local Group Policy Editor, open gpedit.msc and go to User Configuration > Administrative Templates > Windows Components > Windows Explorer. Open Hide these specified drives in My Computer, enable it, and choose an available restriction matching the intended drive.
Apply the policy and sign out and back in if necessary. The built-in choices may not offer every possible individual drive. Restore the policy to its previous state to undo the change. Home editions may not include this editor.
Other applications or a directly entered path can still access the data. On a managed computer, the administrator's policy takes precedence.
Back up important files while their paths are still available. Qiling Disk Master can preserve them separately before you hide or remap the volume.
Step 1. Open File backup with a separate backup disk connected.
Step 2. Select the required folders in the tree control and choose a destination outside the volume being hidden.
Step 3. Click Proceed after reviewing the task. Test a sample restore, then update future backup paths if the letter will stay removed.