> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/restore/bare-metal-recovery.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Bare Metal Recovery

Bare Metal Recovery (BMR) is a Lina module. It recovers a complete Windows agent, including its system and data. BMR requires a specific protection policy during backup. This policy ensures every required file remains available for recovery. It prevents agent-side customization.

When you enable BMR, the workstation system is backed up hourly. Backups use restore points. Data can only be backed up when a protection zone is defined.

By default, BMR backs up the complete workstation system, including all local disks. Create a protection zone to back up a specific disk. You can back up the following content:

* **Specific disks:** Create a protection zone before enabling BMR.
* **Microsoft SQL Servers:** Backup frequency depends on the Maximum Acceptable Data Loss (MADL) value.
* **Bootstrap files:** These files are backed up hourly, regardless of the MADL value. A bootstrap file contains system partition information. BMR uses it to recreate the partition during recovery.

## Architecture

The BMR architecture includes (<mark style="color:blue;">Figure 34</mark>):

* **WinPE:** A lightweight operating system. It provides an emergency boot platform for the new workstation.
* **BMR Restore Wizard:** Lets you select the agent and source image from the Lina server.
* **BMR Disk Layout Editor:** A graphical interface for source and target disks or partitions. It lets you adapt the initial configuration to the new workstation.
* **Lina agent:** An embedded agent. It restores data from the Lina server through cross-recovery.

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FRdxelLKWfdorHNOSLkC0%2Fimage.png?alt=media&amp;token=3302ebdd-ec77-4f2f-aaa9-56ee5333b7d1" alt="" width="563"><figcaption><p><strong>Figure 34</strong>: BMR backup and recovery process</p></figcaption></figure>

## BMR prerequisites

* Use BMR with bootable media, such as CDs, DVDs, or USB drives. Store the product boot file securely. Keep it readily available for BMR operations.
* The source and destination machines must use identical firmware. This includes BIOS, EFI, and UEFI. Recovery is impossible when firmware types differ.

Before starting BMR, complete the following:

1. Enable **Protect system with BMR** in the protection plan.
2. Obtain a Cross-Recovery token for each agent to rebuild. For details, see [Restore tokens](https://github.com/atempodoc/gitbook/tree/main/lina/7.4/en/administration-guide/web-restore/README.md#restore-tokens).
3. Ensure the total source disk capacity matches the available destination disk capacity.
4. Identify the disk type to recreate: MBR or GPT.

## Configure Bare Metal Recovery

### Step 1: Define general BMR settings

1. Boot from the Atempo Lina BMR disk. Alternatively, launch the supplied ISO image.
2. Select the keyboard layout, then click **Apply**.
3. Select the time zone. This aligns instance analysis with Lina settings.
4. Optionally unlock or format encrypted partitions on the target Lina agent. Skip this step when no target partitions are encrypted.
   1. Select the partition to format or unlock. Unlock encrypted partitions with a password or recovery password.
   2. For formatting only, select the unlocking method used to lock the partition. Then enter a password.
   3. Validate and confirm your selection.
5. Click **Apply and quit**. The Lina Restore Wizard appears (<mark style="color:blue;">Figure 35</mark>).

### Step 2: Configure the new workstation

1. Enter the workstation server's fully qualified name or network address. Use the **Select Server** window. Then click **Continue**.

   <figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FVmNC6BjfPvs1MnxCtVI0%2Fselect_server.png?alt=media&amp;token=35161d4a-96d7-4d28-97ea-f76470cce4b6" alt=""><figcaption><p><strong>Figure 35</strong>: Select Server window</p></figcaption></figure>
2. Enter the Cross-Recovery password, then click **Continue**.

   <figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FaunjD8o4MykB9KzmEnaj%2Fenter_paswword.png?alt=media&amp;token=7cce08dc-c609-467f-8384-e9cc662990b7" alt=""><figcaption><p><strong>Figure 36</strong>: Cross-Recovery password prompt</p></figcaption></figure>
3. Select the workstation to restore, then click **Continue**. The list only shows workstations with recoverable data.

   <figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FsmQrP4jl2ulR3AuT0QJY%2Fselect_agent.png?alt=media&amp;token=573aba5f-d4a9-4a7f-aac2-331e02dc66d8" alt=""><figcaption><p><strong>Figure 37</strong>: Select the workstation to restore</p></figcaption></figure>
4. In **Available versions**, select one option (<mark style="color:blue;">Figure 38</mark>):
   * Select the file version to restore.
   * Select *Get Latest Version*. This shows the updated protection configuration and layout. It restores only the latest bootstrap files. You cannot select a version manually.

     <figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FgGpuZrmL8R5tDK78BzJm%2Fselect_version.png?alt=media&amp;token=eeba196c-ada5-4dfc-a632-6720f7f25b4b" alt=""><figcaption><p><strong>Figure 38</strong>: Select an available version</p></figcaption></figure>
5. Click **Continue**. The *Disk Layout Editor* appears with two sections:

* The source disk partition layout. This area contains backed-up data and its distribution. Hover over a partition for details.
* The target disk partition layout. Copy partitions from **Backed up** into this area.

Each section contains disks in black and partitions in blue. Existing target workstation disks appear in green.

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-fd0409ab94917ae4c2563e8d92dde33a856a8f6a%2Fdisk.png?alt=media" alt=""><figcaption><p><strong>Figure 39</strong>: Disk Layout Editor</p></figcaption></figure>

## Select data to restore

After configuring BMR, select the partitions or disks to restore.

Before restoring data, select the source partition and its destination. Use the **Current partitioning** area. Select partitions automatically or manually. You cannot restore the same partition more than once.

### Step 1: Select partitions to restore

When copying a source partition, sufficient space must remain on the target layout. It must be at least equal to the partition size.

If automatic layout causes BMR formatting issues, use `diskpart.exe`. You can format or clean the data with this utility.

#### Use automatic layout

Click **Automatic layout** at the lower-right corner.

This button automatically copies the partition layout from **Backed up** to **Current partitioning**.

If the target disk cannot fit the specified volume sizes, volumes resize proportionally. The minimum required space is preserved.

If the target disk is larger, volume sizes increase proportionally.

To use another disk, lock the target disk you do not want. Click its lock icon.

#### Select a partition manually

Edit the partition layout to select and manage partitions individually.

1. **Optionally modify the target disk.**

   To change the target disk type, click ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2F5PL3FiDVpitWaNYYGcB1%2Fimage.png?alt=media\&token=112c6d6f-4de0-4701-b3b9-b423d0c1bf6d). Select MBR, GPT, basic, or dynamic. Click **Apply**, then **Refresh**. This updates **Current partitioning**.
2. **Optionally modify partitions.**
   * To create a partition, click ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FXis7Fo2RhzJq4nOBfpDO%2Fimage.png?alt=media\&token=a39ba149-2b95-4aa0-86e1-193a5aa595d3).
   * To delete a partition, click ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2F5PL3FiDVpitWaNYYGcB1%2Fimage.png?alt=media\&token=112c6d6f-4de0-4701-b3b9-b423d0c1bf6d). Select **Delete**.
   * To resize a partition, click ![](https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2F5PL3FiDVpitWaNYYGcB1%2Fimage.png?alt=media\&token=112c6d6f-4de0-4701-b3b9-b423d0c1bf6d). Then define its size.
3. Click or right-click a disk in **Backed up**. Paste it into the corresponding partition in **Current partitioning**. Use the same method for individual partitions. Copied disks and partitions appear in green (<mark style="color:blue;">Figure 40</mark>).

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2Fgit-blob-0baaf90571412659e180f5f004d0aa636b50dd7a%2Feditor.png?alt=media" alt=""><figcaption><p><strong>Figure 40</strong>: Selecting a partition in the Disk Layout Editor</p></figcaption></figure>

### Step 2: Complete the recovery process

1. Click **Apply** to start recovery. The BMR status screen shows additional recovery information (<mark style="color:blue;">Figure 41</mark>). Recovery time depends on the data volume.

   <figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FkSJdDApshQ1uFn8H2jQq%2Frestoration_completed.png?alt=media&amp;token=9fe19fc8-508d-4fd5-9ffb-5f39004f328d" alt=""><figcaption><p><strong>Figure 41</strong>: BMR recovery status</p></figcaption></figure>
2. Optionally select **Reboot upon completion of restore**. The workstation then restarts automatically after recovery.
3. Click **Finish** to close the BMR wizard.

## Troubleshooting: Environment report

During the BMR Restore Wizard, click the BMR button to create an environment report. This report gathers logs related to the BMR procedure. Choose one of the following options:

<figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2F7kCjen6VRE6vvtx5mof4%2Faer%20(1).png?alt=media&amp;token=18d4ea7d-292f-49e2-ae64-e6293f5b6c5a" alt=""><figcaption><p><strong>Figure 42</strong>: Environment report options</p></figcaption></figure>

* **Generate the AER on the local machine:** Click **Generate AER**. The interface shows where the AER is stored.

  <figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2F1htfhmsjyPTUSD5Jyj7I%2Faer_generate%20(1).png?alt=media&amp;token=673f09b0-35ca-4cea-8fb4-5bdfc8d774b4" alt=""><figcaption><p><strong>Figure 43</strong>: Generate an environment report locally</p></figcaption></figure>
* **Upload the AER to the Atempo Support Site:** Click **Upload AER**. Enter your organization's Atempo Site ID. Add an incident number when applicable.

  <figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FCEMXVKLpuWbR7ZV83Vj1%2Faer_upload%20(1).png?alt=media&amp;token=28f51a78-7127-4724-8611-a0f90064bdc6" alt=""><figcaption><p><strong>Figure 44</strong>: Upload an environment report</p></figcaption></figure>

## Identify the new agent after data recovery

After recovery completes, Lina identifies the new workstation as a new agent.

* **When the Lina server uses automatic creation:**\
  The new agent is named `agentname-00n` by default.
* **When the Lina server does not use automatic creation:**\
  Give the new agent another name, such as `agentname-new`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/restore/bare-metal-recovery.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
