source: MondoRescue/branches/3.3/mindi/README.uefi

Last change on this file was 3888, checked in by Bruno Cornec, 7 weeks ago

Remove lilo bootable iso images feature obsolete - Change mondo/mindi interface as a consequence + nonbootable

File size: 4.3 KB
Line 
1README for mondo/mindi usage on UEFI based systems
2
3A new replacement of the BIOS has emerged called UEFI.
4
5Depending on the boot mode you use (UEFI or BIOS), mondo and mindi will have to behave accordingly.
6Depending of your choice, software configuration, you may also use GPT or MBR as a file table format.
7
8The 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.
9
10So 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.
11
12Thus 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.
13
14The install.sh script will setup everything correctly for you.
15
16Note that mr-parted2fdisk supports currently only the -l and -s options as well as the commands p,n,d,w,t,a,q
17
18On SLES 10, fdisk is not provided anymore. You'll have to rebuild the util-linux package by desactivating fdisk removal in the spec file.
19In 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:
20When 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 !
21When using a distribution like RHEL7.x, or Debian 8, then grub 2.x will be used as boot loader for the restore media.
22
23If 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:
24
25Shell> FS0:
26FS0:\> CD EFI
27FS0:\EFI\> CD BOOT
28FS0:\EFI\BOOT\> grub
29
30This 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.
31
32Then you'll be at the standard boot menu to restore your system with the choice of options.
33You'll have to respect the case used in the example upper.
34
35For 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.
36We also do not support Secure Boot yet. So you'll have to boot the MondoRescue media with it disabled.
37
38Useful links:
39https://blog.uncooperative.org/blog/2014/02/06/the-efi-system-partition/
40https://wiki.debian.org/UEFI
41
42Useful commands:
43Shell> bcfg boot dump -v -b
44
45------------------------------
46From https://unix.stackexchange.com/questions/753773/create-a-uefi-bootable-cd-with-isolinux
47not specific to CD, but here is general guide how to make syslinux UEFI bootable medium:
48
49parted /dev/sdf mklabel gpt
50parted /dev/sdf mkpart boot fat32 0% 100%
51parted /dev/sdf set 1 esp on
52parted /dev/sdf set 1 boot on
53
54mkfs.vfat -F 32 /dev/sdf1
55
56mount /dev/sdf1 /mnt/tmp/
57
58mkdir -p /mnt/tmp/EFI/BOOT/
59
60cp /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi /mnt/tmp/EFI/BOOT/BOOTX64.EFI
61cp /usr/lib/syslinux/modules/efi64/menu.c32 /mnt/tmp/EFI/BOOT/
62cp /usr/lib/syslinux/modules/efi64/ldlinux.e64 /mnt/tmp/EFI/BOOT/
63cp /usr/lib/syslinux/modules/efi64/libutil.c32 /mnt/tmp/EFI/BOOT/
64
65umount /mnt/tmp/
66
67efibootmgr --create --disk /dev/sdf --part 1 --loader /EFI/BOOT/BOOTX64.EFI --label "syslinux" --unicode
68------------------------------
69
70
71
72Please report any problem around that tool to bruno@mondorescue.org
73Bruno.
74
752016-03-21 Make instructions more generic
762015-08-28 Initial file
772015-03-21 tool renamed to mr-parted2fdisk
782013-06-08 no binary made anymore, only perl scripts
792005-12-12 parted2fdisk used everywhere
802005-03-23 Explain compilation and backup/restore split
812004-09-16 Initial file
Note: See TracBrowser for help on using the repository browser.