How to Hide a Drive in Windows 7 and Make It Visible Again

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.

Table of Contents
  1. Check what depends on the drive letter
  2. Method 1. Remove and restore a letter in Disk Management
  3. Method 2. Use DiskPart with a verified volume number
  4. Method 3. Hide only the Explorer display with policy
  5. Keep a backup before reorganizing access

Check what depends on the drive letter

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.

  1. Open Computer and record the volume label, capacity, and current letter.
  2. Open diskmgmt.msc and match the volume to its physical disk.
  3. Close applications using it and check scheduled tasks or backup software for references to its path.
  4. Keep a record of the original letter so that you can restore the same mapping later.

If the purpose is protecting confidential files, use appropriate account permissions and encryption instead. A hidden icon is only a presentation change.

Method 1. Remove and restore a letter in Disk Management

  1. In Disk Management, right-click the verified data volume and choose Change Drive Letter and Paths.
  2. Select its existing letter and choose Remove. Read the application warning before confirming.
  3. Reopen Computer and confirm the letter has disappeared. The volume should still exist in Disk Management with the same capacity.
  4. To restore it, reopen the same dialog, choose Add, and assign the original unused letter.
  5. Open the restored drive and test the shortcuts and tasks that depended on it.

If Windows refuses the operation, inspect the reason. Do not delete or format the volume to get around the refusal.

Method 2. Use DiskPart with a verified volume number

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.

Method 3. Hide only the Explorer display with policy

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.

Keep a backup before reorganizing access

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.

Open File backup before hiding a data drive

Step 2. Select the required folders in the tree control and choose a destination outside the volume being hidden.

Select folders while the original drive letter is available

Step 3. Click Proceed after reviewing the task. Test a sample restore, then update future backup paths if the letter will stay removed.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it