How to Hide Drives/Partitions in Windows 10/11: Explorer, Search, Permissions, and Hidden Shares

The Practical Guide to Hiding Drives on Windows 10/11 (and How to Unhide Them)



When you need a whole drive to “disappear,” Windows gives you several safe, reversible options. You can remove the drive letter, mount the volume only to a folder, stop Windows from auto‑assigning letters, set a “hidden” metadata flag, or even take a secondary disk fully offline. This guide walks through each method, with GUI and command options, what it hides, when to use it, and exactly how to bring everything back.

Before you start: safety and scope

  • Back up anything important before making changes.
  • Double‑check you’re targeting the correct disk/volume by name, size, and number.
  • Hiding changes access paths (letters/mount points); it does not erase data. Everything here is reversible when done carefully.

Quick navigation: Win+X > Disk Management (diskmgmt.msc). In commands, use diskpart for disk/volume tasks and mountvol for mount points.




Way 01: Remove the drive letter (most common, reversible)

Hides from: File Explorer and most apps that expect a letter (like E:). Data stays intact.

Disk Management (GUI)

  1. Win+X > Disk Management (diskmgmt.msc)
  2. Right‑click the volume > Change Drive Letter and Paths…
  3. Remove > Yes
  4. Unhide later: Change Drive Letter and Paths… > Add… > pick a letter

Command line (diskpart)

# Open an elevated Command Prompt
diskpart
list volume
select volume N      # replace N with the correct volume number
remove letter=E      # replace E with the current letter

# Undo
select volume N
assign letter=E

Notes: Apps with hardcoded paths like E:\ will fail until you reassign a letter. Advanced users can still access the volume via its Volume GUID path (rare).




Way 02: Mount only to an NTFS folder (no drive letter)

Hides from: Explorer’s “This PC” (no letter), while remaining accessible via a path you choose.

Disk Management (GUI)

  1. Create an empty folder on an NTFS drive (e.g., C:\Mounts\Hidden).
  2. Right‑click the target volume > Change Drive Letter and Paths…
  3. Add… > Mount in the following empty NTFS folder > select your folder > OK
  4. If the volume currently has a letter, remove it to keep it hidden from Explorer.

Command line (mountvol)

# List volume GUIDs
mountvol

# Prepare an empty NTFS folder
mkdir C:\Mounts\Hidden

# Mount the volume to that folder (replace {GUID})
mountvol C:\Mounts\Hidden \\?\Volume{GUID}\

# Unmount later
mountvol C:\Mounts\Hidden /D

Tip: For extra obscurity, hide or ACL‑restrict the mount folder using the folder techniques from your previous post.




Way 03: Prevent auto letters (nodefaultdriveletter + automount)

Hides from: Future automatic letter assignment after reboots or when re‑attaching drives.

Per volume: nodefaultdriveletter

diskpart
list volume
select volume N
attributes volume set nodefaultdriveletter

# Undo
attributes volume clear nodefaultdriveletter

System‑wide automount (use carefully)

# Disable automount (new volumes won't get letters automatically)
mountvol /N

# Re-enable automount
mountvol /E

# Alternative via diskpart:
diskpart
automount disable
automount enable

Existing letters stay as‑is. This mainly affects newly discovered volumes.




Way 04: Mark the volume “hidden” (metadata flag)

Hides from: Some tools and automount scenarios. Best used together with removing the letter.

diskpart
list volume
select volume N
attributes volume set hidden

# Undo
attributes volume clear hidden



Way 05: Take the disk offline (strongest for secondary disks)

Hides from: The entire OS, no volumes on that disk show up. Not allowed on the system/boot disk.

Disk Management (GUI)

  1. In the lower pane, right‑click the disk label (e.g., “Disk 2”) > Offline
  2. Unhide: right‑click the same disk > Online

Command line (diskpart)

diskpart
list disk
select disk N
offline disk

# Undo
online disk

Notes: This affects the whole disk (all volumes). Great for detachable/archival drives. Any apps/VMs/backups relying on the disk will fail until it’s back online.




Optional: PowerShell equivalents

# List volumes and partitions
Get-Volume
Get-Partition

# Remove a drive letter
$p = Get-Partition -DriveLetter E
Remove-PartitionAccessPath -Partition $p -AccessPath "E:\"

# Assign a drive letter
$p = Get-Partition -DiskNumber 2 -PartitionNumber 3
Set-Partition -InputObject $p -NewDriveLetter E

# Add/remove a folder mount point
Add-PartitionAccessPath -DiskNumber 2 -PartitionNumber 3 -AccessPath "C:\Mounts\Hidden"
Remove-PartitionAccessPath -DiskNumber 2 -PartitionNumber 3 -AccessPath "C:\Mounts\Hidden"

# Prevent auto letters on a partition
Get-Partition -DiskNumber 2 -PartitionNumber 3 | Set-Partition -NoDefaultDriveLetter $true

# Offline/online a disk
Set-Disk -Number 2 -IsOffline $true
Set-Disk -Number 2 -IsOffline $false



What not to touch (unless you’re expert)

  • Do not reveal or modify Windows system partitions: EFI, MSR, Recovery. They’re intentionally hidden; changing them can break boot or recovery.
  • Avoid changing partition type IDs or GPT attribute bits unless you know exactly what they do, wrong values can make disks unbootable.



Which method should you choose?

  • Hide from Explorer quickly: remove the drive letter.
  • Keep it accessible only via a path: mount to an NTFS folder (no letter).
  • Stop Windows from reassigning letters: set nodefaultdriveletter (and optionally disable automount).
  • Make a secondary disk disappear completely: take the disk offline.
  • Extra caution: also set the volume “hidden” flag (with no letter).



Pro tip: hiding ≠ protecting

Hiding controls visibility, not access. If confidentiality matters, use encryption:

  • BitLocker: Full‑drive encryption that protects data at rest. Keep your recovery key safe.
  • EFS: Encrypts files/folders at the NTFS level (good for single‑user scenarios). Back up your certificate/keys.



Wrap up

You now have a toolkit to make entire volumes vanish, without touching the data, and to bring them back just as easily. Start with the least invasive step (remove the letter), and add mount‑point or attribute tweaks as needed. For true confidentiality, enable BitLocker and keep your recovery key safe.