Solved The system image restore failed with error 0x80042412, Windows 11


iko22

Well-known member
Power User
VIP
Local time
11:31 PM
Posts
1,128
Location
South West England
Visit site
OS
Windows 11
Hello, I am using Backup and Restore (Windows 7) to migrate my HDD OS drive to a NVME drive. The old HDD is a 1TB drive with two partitions of approx 500GB and the new drive is 4TB. A 2TB drive is used to store the backed up system image. The old HDD has been disconnected, for the purpose of forcing a system image restore upon boot.

I thought I could just create a system image and then use recovery options to reinstall the image to a new drive - but this does not work.
I am aware that the Backup and Restore service is being depreciated, but I still can access it from control panel - so, it should work?
I am sure this is what I have done in the past, what am I doing wrong now?
-----------------------------

The disks and partitions can be seen in Diskpart:
System image restore 1.png

System image restore 2.png

And the target drive can be seen in the 'exclude disks' section of Restore Options of the Recovery Drive, which is stored on a 16GB USB flash drive:

System image restore 3.png

Whether the 4TB NVME drive is pre-formatted or not, it still produces the same error:

System image restore 4.png

There is nothing else connected to the computer other than keyboard, mouse and monitor.
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 5600
    Motherboard
    MSI B550-A Pro
    Memory
    16 GB
    Graphics Card(s)
    Sapphire Radeon RX 6500XT (8 GB version)
    Monitor(s) Displays
    BenQ Mobuiz EX2710Q QHD, Iiyama ProLite X23377HDS
    Hard Drives
    MSI Spatium M461 4TB
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer A114
    CPU
    Intel Celeron N4020
What did you smoke?
1. The old HDD is a 2 TB disk and not a 1 TB disk!
2. disk 0 is a MBR disk
3. What happened to your Boot partition on disk 0
4. 16 GB for a recovery ?
5. The NVME (GPT) has been initialized!
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    HP ZBook
    CPU
    Intel 6700HQ
    Motherboard
    HP
    Memory
    24
    Graphics Card(s)
    AMD FirePro 5170M
    Hard Drives
    Samsung SSD 860 Pro
    Keyboard
    yes
    Mouse
    yes
    Other Info
    19045.3803
    some Red Hat workhorses
  • Like
Reactions: OAT
If you clean the target disk using diskpart/initialize to mbr it should go ahead and will be the same partition style as the image.

If you wanted to do the migration using image and restore one way is to convert the source to gpt before making the image. Another way is to restore the image and then convert the restored disk to gpt. If it is just two 500gb primaries it is expected that mbr2gpt.exe will be able do the conversion after restore.
 
Last edited:

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
@iko22


Do not use Backup and Restore (Windows 7), Microsoft is deprecating it.
Even MS recommends using 3rd party backup software.


System Image Backup (SIB) SolutionThis feature is also known as the Backup and Restore (Windows 7) legacy control panel. For full-disk backup solutions, look for a third-party product from another software vendor. You can also use OneDrive to sync data files with Microsoft 365.



With 3rd party backup software, you CAN take an image and restore it to anywhere you want.
I've done this... many times.


I'm not sure this is necessary, but I've always done it this way...
Make sure the Disk you're restoring to, matches the Disk type of the image.
Restore an MBR image to an MBR disk. Restore a GPT image to a GPT disk.
 

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦26100.2454 ♦♦♦♦♦♦♦24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE (BIOS 4702)
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    Cooler Master ATCS 840 Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    300/300
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® (not in use)
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    300/300
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?
What did you smoke?
1. The old HDD is a 2 TB disk and not a 1 TB disk!
2. disk 0 is a MBR disk
3. What happened to your Boot partition on disk 0
4. 16 GB for a recovery ?
5. The NVME (GPT) has been initialized!
1 - 3: Sorry for misleading you. I forgot to say that the original HDD was disconnected from the system, when the pictures were taken. Here is the Diskpart List Disk results with the original HDD in place:

Original HDD 2.png

It actually is one partition, not two as I stated in the O.P. (O.P. now corrected) And it shows as GPT, once you are looking at the right picture. And then the Partitions are correctly listed for a system drive.

The disk you are referring to is actually the disk containing the backed up system image.

4. It was a spare disk. I shall reformat it and reuse when done.

5. That is strange. I formatted the drive and the restore failed, so I deleted the drive formatting and it is now "unallocated" and no longer shows up in File Explorer. I tried again, and the restore still fails, and it still flags up as a GPT although it is no longer formatted. What could possibly be happening?

M461.png
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 5600
    Motherboard
    MSI B550-A Pro
    Memory
    16 GB
    Graphics Card(s)
    Sapphire Radeon RX 6500XT (8 GB version)
    Monitor(s) Displays
    BenQ Mobuiz EX2710Q QHD, Iiyama ProLite X23377HDS
    Hard Drives
    MSI Spatium M461 4TB
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer A114
    CPU
    Intel Celeron N4020
If you clean the target disk using diskpart/initialize to mbr it should go ahead and will be the same partition style as the image.

If you wanted to do the migration using image and restore one way is to convert the source to gpt before making the image. Another way is to restore the image and then convert the restored disk to gpt. If it is just two 500gb primaries it is expected that mbr2gpt.exe will be able do the conversion after restore.
Sorry I got some details wrong in the O.P. Please read post #5. Thank you.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 5600
    Motherboard
    MSI B550-A Pro
    Memory
    16 GB
    Graphics Card(s)
    Sapphire Radeon RX 6500XT (8 GB version)
    Monitor(s) Displays
    BenQ Mobuiz EX2710Q QHD, Iiyama ProLite X23377HDS
    Hard Drives
    MSI Spatium M461 4TB
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer A114
    CPU
    Intel Celeron N4020
Go for a 3rd party Backup & Recovery tool!
A MSR-Partition (16 MB) as 1st partition can cause serious problems when running a recovery. Beside that BIOS updates can fail with the error message: ESP not found.
In post #1 you ran from PE-Mode. There you can select the disk and in diskpart you type
sel disk #
clean
convert gpt
create partition EFI size=260
format quick fs=fat32 label="System"
assign letter="S"
exit


According MS: Never initalize a OS disk from Windows!
You can't see a MSR-partition in diskmanagement
Convert disk 1 to gpt as well
MBR-disks don't have the MSR-partition.
A (C:)-partition that size (930 GB) is not a good idea.

What I would do is this:
in the above diskpart commands instead of exit
type
create partition msr size=16
create partition primary size=614400
format quick fs=ntfs label="Windows"
assign letter="W"
create partition primary size=1000
format quick fs=ntfs label="Recovery"
assign letter="R"
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
create partition primary
format quick fs=ntfs label="Data"
assign letter="E"
list volume
exit
reboot


Run a backup of your current C-Disk.
When ready immediately run a recovery to W:
target your new NVMe-disk
wenn ready type cmd (admin)
bcdboot W:\Windows
reboot and check if your NVMe is working ok.
The rest can be done later

Change drive letters according your situation
hint: copy the diskpart commands to notepad and save as partition.txt.
When in PE-Mode navigate to the file and use copy & paste!
 
Last edited:

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    HP ZBook
    CPU
    Intel 6700HQ
    Motherboard
    HP
    Memory
    24
    Graphics Card(s)
    AMD FirePro 5170M
    Hard Drives
    Samsung SSD 860 Pro
    Keyboard
    yes
    Mouse
    yes
    Other Info
    19045.3803
    some Red Hat workhorses
So many years this has been depreciating. Even if they do, that won’t stop bootong into a system recovery and restoring it, at least not until Windows Twelve would be my uneducated guess
 

My Computers

System One System Two

  • OS
    Windows Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
1 - 3: Sorry for misleading you. I forgot to say that the original HDD was disconnected from the system, when the pictures were taken. Here is the Diskpart List Disk results with the original HDD in place:

5. That is strange. I formatted the drive and the restore failed, so I deleted the drive formatting and it is now "unallocated" and no longer shows up in File Explorer. I tried again, and the restore still fails, and it still flags up as a GPT although it is no longer formatted. What could possibly be happening?

View attachment 79510

The disk is intialized to a partition style. For a disk to be any use, partitions would have to be created and then formattted with a filesystem.

Formatting partition(s) does not change the partition style of the disk.

Deleting existing partition(s) does not change the partition style of the disk.

Unallocated space is not inside a partition.

There must be something about the disk that bmrui doesn't like.

At this point I suggest returning the new disk to uninitialized by using diskpart clean command. Then try running the bare metal restore
 
Last edited:

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
In post #1 you ran from PE-Mode. There you can select the disk and in diskpart you type
sel disk #
clean

There must be something about the disk that bmrui doesn't like.

At this point I suggest returning the new disk to uninitialized by using diskpart clean command. Then try running the bare metal restore
Success! I did DISKPART SELECT, followed by CLEAN, and it worked. I didn't bother with manually setting up partitions, I just let the restore process take care of the details. Took about half an hour. It created a 1TB system drive, which I was then able to shrink from within Windows.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 5600
    Motherboard
    MSI B550-A Pro
    Memory
    16 GB
    Graphics Card(s)
    Sapphire Radeon RX 6500XT (8 GB version)
    Monitor(s) Displays
    BenQ Mobuiz EX2710Q QHD, Iiyama ProLite X23377HDS
    Hard Drives
    MSI Spatium M461 4TB
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer A114
    CPU
    Intel Celeron N4020
:-)
Probably there was something not right about the way disk had been initialized previously.

I have come across several situations when diskmgmt and diskpart didnt pick up anomalies.
 
Last edited:

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Back
Top Bottom