Views:

Summary



Bare Metal Recovery could not prepare the target for recovery. To resolve the issue, display the existing partitions and delete them.

Symptoms



The following message is received:

"Bare Metal Recovery could not prepare the target for recovery. Manually remove all existing target partitions and reboot the machine before restarting this process."



Resolution



Use the following commands to display the existing partitions and delete them. The following example illustrates usage. Note that only relevant parts of the command outputs are shown.

>fdisk -l

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 17770 142224384 8e Linux LVM

>fdisk /dev/sda

Command (m for help): d
Partition number (1-4): 1

Command (m for help): d
Selected partition 2

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
>

Power off and power on the target machine to restart the BMR restore.