From 818b4b1d30cee0a2a16e7262ff1342bd50e052ef Mon Sep 17 00:00:00 2001
From: Moritz Schlarb
-Playing with bootloader always brings the danger of leaving your system in
-unbootable state. Fortunately no data is lost in most cases and recovery is not
+Playing with your bootloader always brings the danger of leaving your system in an
+unbootable state. Fortunately, no data is lost in most cases and recovery is not
hard, but we recommend you to have a bootable CD, DVD or a USB flash disk with
Linux around (
-When something goes wrong, you can restore previous grub installation by
+When something goes wrong, you can restore the previous grub installation by
booting some Linux live media and issuing following commands.
Description of mostly used values for GRUB_PLATFORMS as of =sys-boot/grub-1.99:
-#
-
@@ -237,7 +237,7 @@ Replace
+
# gdisk -l
-
+
# parted -l
+# fdisk -l/dev/sda (...) @@ -343,7 +343,7 @@ partition where GRUB 2 EFI application is executed from-O platform to create image for - x86_64-efi replace with +i386-efi on 32bit systems (old Intel Macs)replace with i386-efi on 32-bit systems (old Intel Macs)@@ -357,14 +357,14 @@ shell available even in cases GRUB 2 cannot load other modules -When GRUB 2 image (EFI application) is made, you have to tell your firmware +
When the GRUB 2 image (EFI application) is made, you have to tell your firmware to execute it upon boot. There are two ways to achieve this. If there is already a default bootloader on your EFI System Partition that you don't want to overwrite, you have to use the second. Otherwise you can use the first and we encourage you to do so, since it is simpler.
-+# mkdir -p /boot/EFI/BOOT # cp /boot/grub2/grub.efi /boot/EFI/BOOT/BOOTX64.EFI@@ -373,11 +373,11 @@ we encourage you to do so, since it is simpler. EFI 2 specification says that the default bootloader location is[EFI System Partition]\EFI\BOOT\BOOTx64.EFI for x86_64 hardware. (and...\BOOTIA32.EFI on 32bit systems) While FAT32 filesystems should be -case-insesitive, it is recommended to use ALL-CAPS filenames in default +case-insensitive, it is recommended to use ALL-CAPS filenames in default bootloader path in order to be compatible with all vfat mount options. -+# efibootmgr TODO TODO TODO@@ -387,8 +387,8 @@ Various sources report that thebless command should be used instead.-Last, you should create a GRUB 2 environment file (where GRUB 2 stores -persistent variables such number of the last booted item) as it is not created +Last, you should create a GRUB 2 environment file (where GRUB 2 stores persistent +variables such as the number of the last booted item) as it is not created automatically:
@@ -398,7 +398,7 @@ automatically:When you update GRUB 2, be sure to execute all commands that are marked as -such. Failure to do so would result in you using the previously installed GRUB +such. Failure to do so would result in you using (parts of) the previously installed GRUB version. @@ -478,13 +478,13 @@ Remember to replace the <UUID> with your device UUID.-GRUB 2 itself detects the LVM correctly, with no aditional setup required. +GRUB 2 itself detects the LVM correctly, with no additional setup required.
If you placed your root and boot partitions inside LVM make sure that disk you plan to use as booting one has at least few MBs of space before first -partition, because GRUB 2 needs more space to store lvm loader. In other +partition, because GRUB 2 needs more space to store LVM loader. In other words: If you install it with not enough space it will just break your partition. -- cgit v1.2.3-65-gdbad