Reset your Lenovo Computer with Windows 8


If you have try Recover Lenovo One Key Rescue after Resizing Partitions and may boot to OneKey Recovery, you shall be able to boot to OneKey Recovery to reinstall to factory default.

But as Steve mentioned in Super User: Lenovo One-Key Recovery Feature broken after resizing partition, you may also follow the [Remove everything and reinstall Windows] in How to refresh, reset, or restore your PC. It’s not free, you need to have a Windows RE Flash Drive and have access to PBR_DRV partition.

What’s in PBR_DRV Partition

You may use GParted and mount PBR_DRV with Linux command in terminal.

sudo mount -o ro /dev/sda8 /mnt

-o ro to mount as read only.
Replace /dev/sda8 with your PBR_DRV partition.

You will see three folders [OKRBackup], [onekey], and [System Volume Information] in PBR_DRV partition. The key is the [Factory] folder in [OKRBackup] as below. They are the factory disk images.

user@debian:/mnt/OKRBackup/Factory$ ls -l
total 11196538
-rwxrwxrwx 1 root root    12055883 Apr 13  2013 Boot.okr
-rwxrwxrwx 1 root root        1481 Apr 13  2013 Info.ini
-rwxrwxrwx 1 root root 10789709990 Apr 13  2013 install.wim
-rwxrwxrwx 1 root root   305049354 Apr 13  2013 LrsEsp.okr
-rwxrwxrwx 1 root root         512 Apr 13  2013 MBR.okr
-rwxrwxrwx 2 root root        1107 Dec  5 05:35 $PBR_Diskpart.txt
-rwxrwxrwx 2 root root         523 Dec  5 05:35 $PBR_ResetConfig.xml
-rwxrwxrwx 1 root root   358422110 Apr 13  2013 Winre.okr

How to use PBR_DRV to Reset to Factory

You need to have access factory disk images in PRB_DRV to launch [create a recovery drive] with [Copy the recovery partition from the PC to the recovery drive] in [Recovery] in Windows 8 Control Panel. With this drive, you shall be able to reset your PC.

If you create recovery drive without [Copy the recovery partition from the PC to the recovery drive], you must have access to PBR_DRV partition or Windows RE won’t be able to read the disk image in it.

More Thoughts

If you cannot access PBR_DRV, please reference Recover Lenovo One Key Rescue after Resizing Partitions to fix your partition ID.

The info.ini configuration file in folder OKRBackup/Factory helps Windows to identify the original partition. Here is the content for my Lenovo C440. It helps to match partition image which has okr and wim extensions as mentioned in above section with partition name.

[Info] 
BakTime=2013-04-13 10:26 
FacBak=1 
T12Layout=1 
VirtualC=0 
BootType=3 
DiskCount=1 
ImageCount=4 
DataPart=1 
MBR=MBR.okr 
PartStyle=1 
Success=1 
[Boot] 
Format=FAT32 
Lable=SYSTEM_DRV 
Begin=2050048 
Total=532480 
Used=56144 
Image=Boot.okr 
DiskIndex=0 
Index=2 
Id={44E369E0-8999-46B2-B8EE-543781AE1D9A} 
Type={C12A7328-F81F-11D2-BA4B-00A0C93EC93B} 
Attributes=8000000000000000 
[OS] 
Format=NTFS 
Lable=Windows8_OS 
Begin=3868672 
Total=204800000 
Used=66118712 
Image=Install.wim 
DiskIndex=0 
Index=5 
Id={4CC05C67-B961-4969-9E65-813676FED190} 
Type={EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
Attributes=0 
[WinRE] 
Format=NTFS 
Lable=WINRE_DRV 
Begin=2048 
Total=2048000 
Used=785608 
Image=Winre.okr 
DiskIndex=0 
Index=1 
Id={9A65E2B0-0A63-4E95-BD8A-BC926C746A5E} 
Type={DE94BBA4-06D1-4D40-A16A-BFD50179D6AC} 
Attributes=8000000000000001 
[LrsESP] 
Format=FAT32 
Lable=LRS_ESP 
Begin=2582528 
Total=1024000 
Used=673680 
Image=LrsEsp.okr 
DiskIndex=0 
Index=3 
Id={D91D5DC0-18FB-4050-8957-7DE63FA803E2} 
Type={BFBFAFE7-A34F-448A-9A5B-6213EB736C22} 
Attributes=8000000000000001 
[MSR] 
Begin=3606528 
Total=262144 
DiskIndex=0 
Index=4 
Id={1371C185-E102-414E-A90A-7992D0B2F362} 
Type={E3C9E316-0B5C-4DB8-817D-F92DF00215AE} 
Attributes=8000000000000000 
[Service] 
Format=NTFS 
Lable=PBR_DRV 
Begin=925573120 
Total=51200000 
DiskIndex=0 
Index=7 
Id={2B224D35-6471-45BC-8A25-639B949D2D66} 
Type={DE94BBA4-06D1-4D40-A16A-BFD50179D6AC} 
Attributes=8000000000000001

Reference

  1. GParted
  2. Introduction to Lenovo OneKey Recovery 8.0 for Notebooks
  3. Lenovo C440
  4. Microsoft: Windows: How to refresh, reset, or restore your PC
  5. Recover Lenovo One Key Rescue after Resizing Partitions
  6. Super User: Lenovo One-Key Recovery Feature broken after resizing partition
Advertisements

19 thoughts on “Reset your Lenovo Computer with Windows 8

  1. AT LAST PROBLEM WITH OEM IS SOLVED

    the only way to convert

    Unknown to OEM IS

    set id ****** (followed by THIS tutorial of amigo’s)

    and

    gpt attributes=0x8000000000000001

    makes the partition as OEM successfully

    thanks to amigo for this valuable post 🙂

    Liked by 1 person

  2. I Don’t know how to compare them so can you please help me here is my partitions

    Partition ### Type Size Offset
    ————- —————- ——- ——-
    Partition 1 Recovery 260 MB 1001 MB
    Partition 2 Reserved 128 MB 2261 MB
    Partition 3 Primary 225 GB 2389 MB
    Partition 4 Recovery 350 MB 227 GB
    Partition 5 Primary 97 GB 228 GB
    Partition 6 Primary 603 GB 328 GB

    Volume ### Ltr Label Fs Type Size Status Info
    ———- — ———– —– ———- ——- ——— ——–
    Volume 0 A DVD-ROM 0 B No Media
    Volume 1 C Windows8_OS NTFS Partition 225 GB Healthy Boot
    Volume 2 D Lenovo NTFS Partition 97 GB Healthy
    Volume 3 E Berry NTFS Partition 603 GB Healthy
    Volume 4 SYSTEM_DRV FAT32 Partition 260 MB Healthy Hidden
    Volume 5 NTFS Partition 350 MB Healthy Hidden

    I want you to tell me what to change i changed partition 1 to the partition 1 set id you set in there i don’t know if that is correct or not please help i bought a used lenovo p440 touch and i can’t recover the windows

    Liked by 1 person

    • Dear Omar,

      If you are not sure what to do, don’t do it. This is a little bit technical. Get your friends to help. Every model might be different. You need some background of Windows commands and partitions.

      Also, you should use LIST VOLUME to check the partition label to identify PBR_DRV partition. When you may access it, you may do a Windows reset as mentioned in this post to help you restore to factory default.

      BTW, I don’t like you use “I want you to” in your comments. I do not work for you.

      Have a nice day!

      Best regards,

      Amigo

      Like

  3. Dear Amigo,
    A friend of mine has a lenovo g580 laptop and recently she went to a PC technician because it had a boot matter and finally he formated the hdd without keeping backup file. He didn’t disabled secure boot, and as a result when my friend brought it to me to check it out I noticed that the partitions was not OK. Also I couldn’t get into BIOS because secure boot is enabled. When I push the OKR button it opens the menu for choosing NORMAL STARTUP, BIOS SETUP, BOOT MENU, START RECOVERY but nothing works. I removed the drive and I connected to my pc through a usb external adapter to see the condition of the drive. From 500Gb the 465 was unallocated and the rest was hidden as mentioned. I used Drive Rescue to search for partitions and volumes and now it shows WINRE_DRV volume of 999Mb, 418Gb free space, LRS_ESP 996Mb, Boot 3.01Mb, LENOVO 24.9Gb, PBR_DRV 19.9Gb. Now it start with LOADING files… and then show Lenovo logo. After that pop up a message saying that One Key recovery partition is in bad something bla bla.. I checked your posts and drago too so I saw the info.ini file and is:
    [Info]
    BakTime=2012-11-23 19:21
    FacBak=1
    T12Layout=1
    VirtualC=0
    BootType=3
    DiskCount=1
    ImageCount=4
    DataPart=1
    MBR=MBR.okr
    PartStyle=1
    Success=1
    [Boot]
    Format=FAT32
    Lable=SYSTEM_DRV
    Begin=2050048
    Total=532480
    Used=56144
    Image=Boot.okr
    DiskIndex=0
    Index=2
    Id={1AA8EF7B-BB99-4E51-AD68-AE0364EAB6E2}
    Type={C12A7328-F81F-11D2-BA4B-00A0C93EC93B}
    Attributes=8000000000000001
    [OS]
    Format=NTFS
    Lable=Windows8_OS
    Begin=4892672
    Total=877508608
    Used=48359416
    Image=Install.wim
    DiskIndex=0
    Index=5
    Id={091A2EEC-AC5A-4A3B-AAA1-EABC26B0A4C0}
    Type={EBD0A0A2-B9E5-4433-87C0-68B6B72699C7}
    Attributes=0
    [WinRE]
    Format=NTFS
    Lable=WINRE_DRV
    Begin=2048
    Total=2048000
    Used=995896
    Image=Winre.okr
    DiskIndex=0
    Index=1
    Id={B859E1EB-2A32-4BFA-9948-A66CA0CFD3F5}
    Type={DE94BBA4-06D1-4D40-A16A-BFD50179D6AC}
    Attributes=8000000000000001
    [LrsESP]
    Format=FAT32
    Lable=LRS_ESP
    Begin=2582528
    Total=2048000
    Used=1017328
    Image=LrsEsp.okr
    DiskIndex=0
    Index=3
    Id={1DE93E90-9D42-45A0-9E4C-1BFA36EB4C77}
    Type={BFBFAFE7-A34F-448A-9A5B-6213EB736C22}
    Attributes=8000000000000001
    [MSR]
    Begin=4630528
    Total=262144
    DiskIndex=0
    Index=4
    Id={6E08C13D-8CDB-4B6B-B710-C59EA0D8FF21}
    Type={E3C9E316-0B5C-4DB8-817D-F92DF00215AE}
    Attributes=8000000000000000
    [Service]
    Format=NTFS
    Lable=PBR_DRV
    Begin=934830080
    Total=41943040
    DiskIndex=0
    Index=7
    Id={7832F7BD-BF40-49A1-9D20-94FF7A97CE0B}
    Type={DE94BBA4-06D1-4D40-A16A-BFD50179D6AC}
    Attributes=8000000000000001

    Can you please guide me to resolve the boot and recover problem?
    Thank you in advance.

    Liked by 1 person

    • Dear Michael,

      A friend of mine has a lenovo g580 laptop and recently she went to a PC technician because it had a boot matter and finally he formated the hdd without keeping backup file. He didn’t disabled secure boot, and as a result when my friend brought it to me to check it out I noticed that the partitions was not OK. Also I couldn’t get into BIOS because secure boot is enabled. When I push the OKR button it opens the menu for choosing NORMAL STARTUP,
      BIOS SETUP, BOOT MENU, START RECOVERY but nothing works.

      From your detail description, I think the OKR partition has some issue therefore refused to launch. But your case might be more complex because it has been formatted and secure boot is enabled.

      I think if you may access PBR_DRV partitions, you may try to boot with a Windows RE flash and reset Windows. It will read image files from PBR_DRV partitions and restore to factory default. Every partition will be recreated as factory default.

      Because you can access PBR_DRV parition, I think you may ignore my another post Recover Lenovo One Key Rescue after Resizing Partitions and focus on restoring to factory default.

      Wish it helps!

      Best regards,

      Amigo

      Like

  4. I forgot!!
    I checked also PBR_DRV\OKRBackup\Factory folder. It has Boot.okr, Info.ini, install.wim, LrsEsp.okr, MBR.okr, md5.sum, Winre.okr ……. but it doesn’t have $PBR_Diskpart.txt, $PBR_ResetConfig.xml as you mention above.

    Liked by 1 person

    • Dear Michael,

      I am not sure why you don’t have $PBR_Diskpart.txt and $PBR_ResetConfig.xml in /OKRBackup/Factory folder. According to the files created date, I think it is generated automatically when I reset my Windows. If you may reset Windows correctly, just forget these two files. 🙂

      Have a nice day!

      Best regards,

      Amigo

      Like

  5. Hi. My lenovo shows a pop up message with title “TIP”, says “One Key Recovery partition has damaged, so do not launch main application.” and has one OK button. Can’t boot neither in Windows nor BIOS

    Liked by 1 person

    • Dear MGbio,

      When OKR fail to access partitions correctly, it fails to execute your commands. Usually it is related to partition type ID issue. The easiest way is to backup your data and reset your Windows to factory default as mentioned in this post.

      I used to have the same issue to launch OKR from Windows. Problem solved by resetting Windows with a Windows RE flash and accessible PBR_DRV partition.

      Wish it helps!

      Best regards,

      Amigo

      Like

  6. Hi, I have Lenovo Y510P, I installed 128 GB ssd for windows partition. I created a GPT based primary partition on it. Then I start OKR and wanted to recover windows on SSD’s partition, but every time it selects HDD’s partition. So,
    How do I configure OKR so that it will detect SSD’s partition instead of HDD’s partition for windows installation through recovery?

    I read the article and all comment, but none found relevant to above question.
    Kindly, Help

    Liked by 1 person

    • Dear Dhiraj,

      I have use OKR to backup to assigned partition and restore from it but not factory recovery images.

      If you just want to move Windows 8 from HDD to SSD, boot with your original HDD and create a recovery flash drive in windows as mentioned in Create a USB recovery drive. Then swap your HDD with SSD. Boot from your recovery flash drive and reset to factory default.

      I don’t use OKR for system transfer.

      Wish it helps!

      Best regards,

      Amigo

      Like

  7. Hello, I had to make a dispart clean to my HDD so I have nothing, how do I create partition for OneKey and everything for Lenovo S 400 that came with windows 8? Thanks for your help, I have the names and sizes of the partititions before the cleaning but not the id’s.

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s