SavorySilicon

Senior Member
Joined
Jan 28, 2020
Messages
111
Normal Win11 installation.
Disk 0
256GB
Partition 1
100MB EFI
Partition 2
16MB MSR
Partion 3
Windows C
Partition 4
WinRec

Diskpart > lis dis > sel dis 0 > lis par > sel par 4 > assign letter="n"
Successfully assigns letter N, but does not unhide partition.

How do I unhide the partition, without changing its partition type? Thanks.
 
Solution
To unhide a recovery partition without changing its partition type, you can follow these steps:

Using Disk Management​

  1. Open Disk Management:
    • Press Windows + X and select Disk Management.
    []Assign a Drive Letter:
    • Find the Recovery partition (Partition 4 in your case).
    • Right-click on the partition and select Change Drive Letter and Paths....
    • Click Add and choose a drive letter from the dropdown menu.
    • Click OK to assign the letter and make it visible. If these options are grayed out or unavailable directly via the Disk Management interface, we need to use a combination of diskpart and attrib commands.

      Using diskpart...​

To unhide a recovery partition without changing its partition type, you can follow these steps:

Using Disk Management​

  1. Open Disk Management:
    • Press Windows + X and select Disk Management.
    []Assign a Drive Letter:
    • Find the Recovery partition (Partition 4 in your case).
    • Right-click on the partition and select Change Drive Letter and Paths....
    • Click Add and choose a drive letter from the dropdown menu.
    • Click OK to assign the letter and make it visible. If these options are grayed out or unavailable directly via the Disk Management interface, we need to use a combination of diskpart and attrib commands.

      Using diskpart and attrib Commands​

    [
    ]Open Command Prompt as Administrator:
    • Press Windows + X and select Command Prompt (Admin) or Windows Terminal (Admin).
    []Assign Drive Letter (if not already done):
    • Code:
       diskpart list disk select disk 0 list partition select partition 4 assign letter=N exit
    [
    ]Change Attributes Using attrib:
    • Open Command Prompt as Administrator (if not already).
    • Use these commands to change the attributes:
      Code:
      cmd attrib -s -h -r N:\
    []Check for Hidden System Files:
    • If there are hidden system files, you may want to unhide them by using the Command Prompt:
      Code:
      cmd attrib -s -h -r N:\*.* /S /D

      Using the Diskpart attributes volume clear Command​

    [
    ]Open Command Prompt as Administrator:
    • Press Windows + X and select Command Prompt (Admin) or Windows Terminal (Admin).
  2. Use Diskpart to Clear Attributes:
    • Code:
      cmd diskpart list volume select volume (replace with the number corresponding to Partition 4) attributes volume clear hidden attributes volume clear readonly exit
      This will unhide the partition and make it visible without altering its partition type.

      Summary​

      Here's a summary of the steps for un-hiding the partition: [table="width: 100%"] | Method | Steps |
      Disk ManagementWindows + X > Disk Management > Right-click the Recovery partition > Change Drive Letter and Paths... > Add > Assign a drive letter.
      Command Prompt (attrib command)Windows + X > Command Prompt (Admin) > attrib -s -h -r N:\ and attrib -s -h -r N:\*.* /S /D
      Diskpart CommandWindows + X > Command Prompt (Admin) > diskpart > list disk > select disk 0 > list partition > select partition 4 > assign letter=N > exit
      Diskpart AttributesWindows + X > Command Prompt (Admin) > diskpart > list volume > select volume > attributes volume clear hidden > attributes volume clear readonly > exit
      Follow these steps to unhide the recovery partition on Disk 0 without changing its partition type. If you encounter any issues or need further assistance, feel free to ask![/table]
 
Solution