Latest Articles

Unhide the Recovery Partition on a Basic Disk with DiskPart.

This quick step guide describes how to unhide the OEM/Recovery partition on your hard drive. It was tested on a Windows Vista machine with a Basic disk.

  1. Start Disk Management (diskmgmt.msc) on your computer and take a closer look at your hard disk. Note the disk number and the partitions.
  2. Start DiskPart and select your disk: DISKPART> select disk 0
  3. List all partitions: DISKPART> list partition
  4. Now, select the hidden partition (see step 1) DISKPART> select partition 1
  5. Type DISKPART> detail partition and verify that it is hidden. Remember the Type value, this will be handy if something goes wrong.
  6. Set the type of the hidden partition to 07. Type DISKPART> set id = 07 override
  7. If everything goes ok, you will receive the following message “Diskpart successfully set the partition ID.
  8. All done. Type Exit to close DiskPart.
  9. Check the Disk Management to see witch drive letter has been assigned to the recovery partition.

List of partition types:

07 = Windows NT NTFS, 17 = Hidden, 27 = OEM Recovery


– Marek.Z

About Marek (240 Articles)
Marek Zdrojewski is an IT professional with 13+ years of experience in the IT industry. Marek currently works as Technical Consultant for SLTN - Inter Access in The Netherlands and specializes in Virtual Infrastructures, Server Virtualization/Consolidation, Cloud Solutions, Business Continuity/Disaster Recovery, Back-up Solutions, Server/Storage hardware and Storage Networking solutions.

34 Comments on Unhide the Recovery Partition on a Basic Disk with DiskPart.

  1. Thankyou for great tips.

  2. hi..
    i was unhiding oem recovery partition so i entered id 07 instead if id 27 in dispart.
    so now the window wont start it says press ctrl+alt+delete to restart always.
    what shou i do?

    • Hi,

      First, I’m sorry for late response and quite unfortunate you made that typo when unhiding the OEM partition. You can solve this issue with Bootrec.exe tool located on the Windows DVD. For detailed instructions please read the Microsoft KB927392 article.



  3. Very nice post, bro! May be next time you will discover topic deeper?

  4. NICE! You should train those IDIOTIC Sony support reps. They know nothing. They told me there is no way to do this without wiping my entire hard drive clean. They are morons.

  5. unfortunatly i deleted my recovery hdd how to recover this partion i don’t know what ar4 the things inside it??

  6. GREAT THANKS!!! Very helpful for dummies like me…

  7. Sourabh // 6 May, 2013 at 14:38 // Reply

    Hey i am following all these steps you told, but it is showing a message in the end ” The specified type is not in correct format”

    Plz help me out.

    thank u in advance

  8. “List of partition types:

    07 = Windows NT NTFS, 17 = Hidden, 27 = OEM Recovery”

    can you please tell me the GPT equivalents.

  9. My OEMBP partition isn’t showing up in “My PC” still. I’m trying to unhide it so I can delete it. I formatted my drive to get everything off it but the partition still remains, and it still hidden even after changing it to “07”.

    What should I do?

  10. i have resized my d drive and after that the recovery partition is not accessible and now i can’t re instal windows from it .
    is there is any tool can help my to get it work again.

  11. thanks. my dad gave me a 160GB hard drive which I use for torrent files, and there was a 20GB lenovo partition that had a whole whackload of exe files with random names, i’m currently in the process of formatting the partition to expand my torrent partition or my data partition. the files were from 2007!

  12. Dear Marek
    I Lost My 2 Partition,s From Diskpart Using clean command Plz Tell How To Recover These Partition,s With My Important Data……..PLz Help

  13. Will this work for asus laptop with windows 8?

    • Yes, I think so. Windows 8 comes with DISKPART so you should be able to do it. Just remember to run DISKPART as an administrator.


  14. Just what I was looking for to the point step by step instructions. Was able to recover my recovery partition and move to new drive. Not sure why I was not able to clone the drive but your article worked for me and now I have what I had before the problems started thanks.

  15. Hi Marek,

    after cloning from a 256GB SSD to the next bigger SSD and some partitioning to make it adopt the new size windows won’t boot.

    From a PE I can see that my drive C is marked “hidden”. I tried to run ‘set id=07 override’ but the console just throws me: “The specified type is not in the correct format. For more information on the command type: ‘HELP SET'”

    The SSD has GPT/GUID Layout and the Machine boot’s Linux&[M|H]ac(k)OS just fine in UEFI mode. It’s only Windows that refuses to boot!

    Can you give an hint?

  16. Fixed it using linux from USB, changed the type rebooted and after windows applied some fixes it works like a charm…

  17. Hey marek. I’m trying to upgrade a DELL laptop by replacing the 500GB HDD with a 120GB SSD. I’ve cloned over partitions from a PBD recovery image in EaseUs Todo created from the HDD; though in DISKPART the partitions are listed as Extended, Logical and Primary whereas the HDD had OEM, Recovery, etc; one of the partitions itself being a recovery image (~12GB large).

    My plan was to clone the OEM and recovery partitions to the SSD, use the remaining space on the SSD as the primary… reboot then execute recovery from the SSD… however when I attempt to boot into the Windows Boot Manager.

    I’m trying to figure out what the best way to proceed is.

    Do I…
    A) delete all the partitions on the SSD, launch diskpart in WinPE and create the partitions before attempting to restore to them? I don’t think this will work because the hidden partitions on the HDD would be flagged read-only?
    B) is there a way to set the ID’s using DISKPART and information from technet:

    EFI system partition: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
    Microsoft Reserved partition: e3c9e316-0b5c-4db8-817d-f92df00215ae
    Recovery partition: de94bba4-06d1-4d40-a16a-bfd50179d6ac

  18. Hi,

    Basically, do you need the data on the old partition? If not, I would clear the SSD and install Windows on it. The setup will create the partitions automatically.

    Hope this helps.

  19. Jose Orozco // 30 January, 2015 at 23:19 // Reply

    Marek, I’m using Diskpart version 5.1.3565 on Windows XP 32-bit w/ SP3. This version of the tool doesn’t have a set command. It details my partition as “Type: 17, Hidden: Yes” but “There is no volume associated with this partition.” – Do you know what options I might have to unhide this partition? Open-source? Or an updated diskpart that can work on WinXP?

Leave a reply...