Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore fails due to invalid parted mkpart command #1770

Closed
ritzmann opened this issue Apr 7, 2018 · 3 comments
Closed

Restore fails due to invalid parted mkpart command #1770

ritzmann opened this issue Apr 7, 2018 · 3 comments

Comments

@ritzmann
Copy link

ritzmann commented Apr 7, 2018

  • ReaR version ("/usr/sbin/rear -V"):
    Relax-and-Recover 2.3 / 2017-12-20

  • OS version ("cat /etc/rear/os.conf" or "lsb_release -a" or "cat /etc/os-release"):
    Debian GNU/Linux 8.10 (jessie)

  • ReaR configuration files ("cat /etc/rear/site.conf" or "cat /etc/rear/local.conf"):
    OUTPUT=USB
    USB_DEVICE=/dev/disk/by-label/REAR-000
    USB_DEVICE_FILESYSTEM=ext4
    BACKUP=REQUESTRESTORE
    TIMESYNC=NTP
    CLONE_ALL_USERS_GROUPS="yes"

  • System architecture (x86 compatible or POWER and/or what kind of virtual machine):
    amd64 (backup)
    amd64 (restore vbox 4.3.36)

  • Are you using BIOS or UEFI or another way to boot?
    vbox BIOS

  • Brief description of the issue:
    I am testing restoration and created a simple VirtualBox machine with one hard drive (the backed up machine has multiple hard drives with various LVM volumes and partitions). The restore fails with a parted mkpart command that is called with the wrong parameter ('BIOS boot partition' instead of a valid partition type).

Here is a screenshot from the VM with the end of the rear.log:
parted

Steps to reproduce:

  1. Create USB rescue image with rear mkrescue.
  2. Create VirtualBox machine with hard disk and second disk that maps to USB stick.
  3. Boot VBox image with USB stick and select rescue image in Grub menu.
  4. Confirm a few questions to map partition layout to single disk.
  5. From command line, invoke rear restore.
@gozora
Copy link
Member

gozora commented Apr 7, 2018

Hello @ritzmann,

Could you please paste here how does your /var/lib/rear/layout/disklayout.conf looks like ?

V.

@ritzmann
Copy link
Author

ritzmann commented Apr 7, 2018

Renamed to disklayout.txt so that I could attach it instead of pasting.
disklayout.txt

@gozora
Copy link
Member

gozora commented Apr 8, 2018

You've been hit by #1563.
The problem of yours is fixed by 491548a, which is unfortunately not included in ReaR 2.3.
In general downloading latest ReaR upstream code will fix your problem.

V.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants