README for mondo/mindi usage on UEFI based systems A new replacement of the BIOS has emerged called UEFI. Depending on the boot mode you use (UEFI or BIOS), mondo and mindi will have to behave accordingly. Depending of your choice, software configuration, you may also use GPT or MBR as a file table format. The fdisk command used by mindi/mondo to determine all aspects related to the disc hasn't been adapted yet to handle GPT. Only the parted command is able to do it. So a perl script called mr-parted2fdisk was written that will take as input all the order that mindi/mondo pass to fdisk, translate them to be given to parted and print the result in fdisk format. So this is a filter allowing fdisk replacement. It's only used for GPT based disks. On BIOS based disks, mr-parted2fdisk is a link to fdisk. Thus mindi/mondorestore commands launched by root will pass all their call to mr-parted2fdisk on GPT based disks instead of the real fdisk, and be able to support the GPT format. It will call fdisk and parted for its work. The install.sh script will setup everything correctly for you. Note that mr-parted2fdisk supports currently only the -l and -s options as well as the commands p,n,d,w,t,a,q On SLES 10, fdisk is not provided anymore. You'll have to rebuild the util-linux package by desactivating fdisk removal in the spec file. In BIOS mode, mindi uses sylinux as boot loader for the restore media. As this doesn't work reliably yet with UEFI other strategies have been usd: When using a distribution like RHEL6.x, then grub 0.97 will be used as boot loader for the restore media. During tests, we had success with grub-0.97-93.el6.x86_64 part of RHEL 6.6. In particular, the version provided with RHEL 6.5 doesn't boot ! When using a distribution like RHEL7.x, or Debian 8, then grub 2.x will be used as boot loader for the restore media. If when booting in UEFI mode on a system, the current media made doesn't boot automatically, in order to restore your system, you'll have to go on the UEFI shell and do something like the following: Shell> FS0: FS0:\> CD EFI FS0:\EFI\> CD BOOT FS0:\EFI\BOOT\> grub This supposes that your drive is seen as first media (FS0), which can be confirmed using the map command at UEFI shell prompt. Search on the result line for CD related lines. Then you'll be at the standard boot menu to restore your system with the choice of options. You'll have to respect the case used in the example upper. For now, MondoRescue doesn't invoke efibootmgr to recreate menu entries, so you'll have to recreate them manually for now. Which also means that after the restore, during the next reboot, you may have to select on which device to boot as the menu may be worngly pointing to inexistant media. In some case the correct entry will automatically be added to your menu. If that's not the case, use efibootmgr from Linux to recreate it. We also do not support Secure Boot yet. So you'll have to boot the MondoRescue media with it disabled. Useful links: https://blog.uncooperative.org/blog/2014/02/06/the-efi-system-partition/ https://wiki.debian.org/UEFI Useful commands: Shell> bcfg boot dump -v -b ------------------------------ From https://unix.stackexchange.com/questions/753773/create-a-uefi-bootable-cd-with-isolinux not specific to CD, but here is general guide how to make syslinux UEFI bootable medium: parted /dev/sdf mklabel gpt parted /dev/sdf mkpart boot fat32 0% 100% parted /dev/sdf set 1 esp on parted /dev/sdf set 1 boot on mkfs.vfat -F 32 /dev/sdf1 mount /dev/sdf1 /mnt/tmp/ mkdir -p /mnt/tmp/EFI/BOOT/ cp /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi /mnt/tmp/EFI/BOOT/BOOTX64.EFI cp /usr/lib/syslinux/modules/efi64/menu.c32 /mnt/tmp/EFI/BOOT/ cp /usr/lib/syslinux/modules/efi64/ldlinux.e64 /mnt/tmp/EFI/BOOT/ cp /usr/lib/syslinux/modules/efi64/libutil.c32 /mnt/tmp/EFI/BOOT/ umount /mnt/tmp/ efibootmgr --create --disk /dev/sdf --part 1 --loader /EFI/BOOT/BOOTX64.EFI --label "syslinux" --unicode ------------------------------ Please report any problem around that tool to bruno@mondorescue.org Bruno. 2016-03-21 Make instructions more generic 2015-08-28 Initial file 2015-03-21 tool renamed to mr-parted2fdisk 2013-06-08 no binary made anymore, only perl scripts 2005-12-12 parted2fdisk used everywhere 2005-03-23 Explain compilation and backup/restore split 2004-09-16 Initial file