04 66 72 51 22

Disk or partition restore is refused

This page is intended for administrators restoring an entire disk or individual partitions from a disk image backup. It explains the most common refusals: running system disk, differing sector size, impossible partition size. It applies to the BeBackup 7 agent for Windows. Disk restores are started from the web interface, via the Restore disks button, or from the command line.

What you need to know before you start

  • Restoring a disk requires a Windows agent. On any other platform, the agent returns Restoring an entire disk requires a Windows agent.
  • Disks are restored to the endpoint machine, the one running its agent. The web wizard points this out: Restoring to another machine is not possible from this screen.
  • The entire contents of the target disk are replaced. An interrupted restore leaves the target unusable. It must then be carried out again in full.

The target disk holds the running system

Symptom

Disk … hosts the running system (C:): it cannot be the target of a restore. Boot from rescue media (Windows PE), or connect the disk to be restored to another machine.

In the web wizard, this disk is not offered as a target. The wizard indicates this with The disk holding the system is not offered.

Resolution

Windows cannot overwrite the disk it is running from. There are two options:

  • Boot the machine from Windows PE (Windows Preinstallation Environment) rescue media, then start the restore from that media.
  • Connect the disk to be restored to another machine running the agent, then restore it from that machine.

The sector size differs

Symptom

Restore not possible: the backed-up disk has … byte sectors and the target disk has … byte sectors. A partition table contains nothing but sector numbers: replaying it at a different scale would produce an inconsistent disk without raising any error. Choose a target disk with the same sector size.

In the web wizard, the target disk is flagged with This disk does not have the same sector size as the backup: the recorded locations will not match.

Cause and resolution

Current disks use either 512-byte or 4,096-byte sectors ("4Kn" disks). A backup taken from one type of disk can only be restored to a disk of the same type. Choose a target disk whose sector size matches that of the backed-up disk. The web wizard displays each disk's sector size, in bytes per sector.

The requested partition size is impossible

Shrinking below the minimum

Partition …: the requested size (…) is SMALLER than the minimum of …. Data would end up outside the partition. This minimum is imposed by the last occupied cluster on the volume, which cannot be moved without defragmentation…

The minimum does not depend on the space used, but on the position of the last data within the partition. Choose a size at least equal to the minimum displayed. The web wizard indicates this with At least … GB.

Growing beyond the available free space

Partition … cannot exceed … bytes without overlapping the next partition or extending beyond the disk.

A restore never moves partitions. A partition can only grow into the free space that follows it.

Exceeding the limit of an MBR disk

Size too large for an MBR table (2 TB per partition limit): this disk would need to be GPT.

An MBR (Master Boot Record) partition table cannot describe a partition larger than 2 TB. A GPT (GUID Partition Table) disk has no such limit.

For a data disk, the restore wizard offers Convert the partition table to GPT; from the command line, add D0.ToGpt=1 to the plan. This conversion is reserved for data disks.

The restore plan is inconsistent (command line)

From the command line, the plan describes each disk and each partition. The full syntax is given by bbAgent.exe -CommandLine -Help. Example:

bbAgent.exe -CommandLine -RestoreDisks -Profile=MyProfile "-Plan=D0.Source=3,D0.Target=4,D0.Table=1,D0.P1=R,D0.P2=R"

Common errors:

  • Unreadable size for partition …: "…". A size in BYTES is expected after the ':'. A new size is written in bytes: D0.P2=R:<bytes>.
  • … is designated by two different sources ("…" and "…"). The second would erase the first.: two backed-up disks target the same destination.
  • The file "…" already exists. Restoring to a virtual disk does not overwrite it automatically: choose another name, or delete this file deliberately.: the .vhdx target already exists. Add D0.TargetVhdOverwrite=1 to allow it to be replaced.

A partition not named in the plan is not restored.

The command waits, then gives up

No progress after 120 s. The restore has not started, OR it was refused immediately (invalid target, system disk, inconsistent plan, etc.). The exact reason is in the agent log (bbAgent-service.log), on the [Error] lines following the launch.

Open bbAgent-service.log and read the [Error] lines written after the launch. They contain one of the messages on this page.

Choosing what to restore

  • Restore the partition table recreates the disk layout exactly as it was. Leave it ticked for a blank disk. Only untick it if the target disk already has precisely the same layout. Otherwise, data is written to the wrong place, with no message whatsoever.
  • A partition marked Delete disappears from the table. If it is an EFI boot, reserved or recovery partition, the restored machine will not boot.

If the problem persists

Contact BeBackup support. Please include:

  • the plan sent, shown by the web wizard under Plan sent to the agent:, or the command used;
  • the complete error message;
  • the agent service log, bbAgent-service.log.

BeBackup is backup built for IT service providers

Backup and restore of workstations, servers, virtual machines and Microsoft 365, encrypted at source with a key we do not hold, on the hosting of your choice.