Difference between pages "Boot Methods" and "Talk:Boot Methods"

(Difference between pages)
(Pure UEFI)
 
(Created page with "More info here : Kernel STUB : http://blog.realcomputerguy.com/2012/05/efi-stub-booting-without-bootloader.html UEFI stuff : http://www.rodsbooks.com/efi-bootloaders/ My F...")
 
Line 1: Line 1:
This page describes the various methods that can be used to set up a disk to boot Funtoo Linux. If you have more than one disk, choose a single disk to serve as your boot disk.
+
More info here :
 +
Kernel STUB :
 +
http://blog.realcomputerguy.com/2012/05/efi-stub-booting-without-bootloader.html
  
=== Pure MBR + GRUB ===
+
UEFI stuff :
 +
http://www.rodsbooks.com/efi-bootloaders/
  
This option is the "classic" way to boot Funtoo Linux and uses traditional MBR partitions, which have existed since the origin of the PC. Here is the typical disk layout:
+
My French version : https://www.funtoo-quebec.org/wiki/index.php/UEFI
 
+
* MBR at beginning of boot disk
+
* MBR partition 1, <tt>/dev/sda1</tt> is the <tt>/boot</tt> filesystem (typically ext2)
+
* MBR partition 2, <tt>/dev/sda2</tt> is ''swap''.
+
* MBR partition 3, <tt>/dev/sda3</tt> is the <tt>/</tt> (root) filesystem.
+
 
+
Here's how the boot process works:
+
 
+
# The system BIOS loads the MBR from your boot disk (containing stage1 of the GRUB boot loader) and runs it.
+
# Extra boot-related code is loaded by the GRUB stage1 from the <tt>/boot</tt> filesystem on the disk.
+
 
+
Now, the boot loader is able to run and load the Linux kernel and initramfs, and start Funtoo Linux.
+
 
+
=== GPT + GRUB ===
+
 
+
This is a more modern way to boot Linux. It uses MBR for booting but uses the more modern GPT partition scheme. Here's the disk layout:
+
 
+
* ''no MBR is installed or required''
+
* GPT partition 1, <tt>/dev/sda1</tt> is the <tt>/boot</tt> filesystem (typically ext2)
+
* GPT partition 2 type 0xEF02, <tt>/dev/sda2</tt> is the ''boot loader partition'' (this contains a fake MBR).
+
* GPT partition 3, <tt>/dev/sda3</tt> is ''swap''.
+
* GPT partition 4, <tt>/dev/sda4</tt> is the <tt>/</tt> (root) filesystem.
+
 
+
Here's how this hybrid scheme works:
+
 
+
# The system BIOS loads the fake MBR from your boot disk(/dev/sda2) (containing stage1 of the GRUB boot loader) and runs it.
+
# Extra boot-related code is loaded by the GRUB stage1 from a small (a few MB) GPT partition on the disk.
+
 
+
Now, the boot loader is able to run and load the Linux kernel and initramfs, and start Funtoo Linux.
+
 
+
=== UEFI + GRUB ===
+
 
+
UEFI is a new-style firmware that is used for booting. It is generally available on all new PCs (2012 and newer) and may be available on older systems as well. Here's the disk layout:
+
 
+
* ''no MBR is installed or required''
+
* GPT partition 1, <tt>/dev/sda1</tt> is the <tt>/boot</tt> filesystem (<tt>vfat</tt> aka "FAT32").
+
* GPT partition 2, <tt>/dev/sda2</tt> is ''swap''.
+
* GPT partition 3, <tt>/dev/sda3</tt> is the <tt>/</tt> (root) filesystem.
+
 
+
Here's how this boot scheme works:
+
 
+
# UEFI (contained in your motherboard's firmware) loads the Bootmanager entry from the RW NVRAM inside your motherboard.
+
# If there's a valid entry that contains Grub, then the GRUB boot loader code from your <tt>/boot</tt> filesystem will be loaded.
+
# UEFI can read from <tt>vfat</tt> partitions directly, which is why we use <tt>vfat</tt> instead of the normal <tt>ext2</tt> for <tt>/boot</tt>.
+
 
+
Now, the boot loader is able to run and load the Linux kernel and initramfs from the <tt>vfat</tt> <tt>/boot</tt> filesystem, and start Funtoo Linux.
+
 
+
=== Pure UEFI ===
+
 
+
A Pure UEFI boot is also possible. The partitioning scheme is the same as the UEFI + GRUB scheme, above.
+
 
+
Here's how this boot scheme works:
+
 
+
# UEFI (contained in your motherboard's firmware) loads the Bootmanager entry from the RW NVRAM inside your motherboard.
+
#  UEFI loads the Linux kernel STUB and initramfs directly, and runs the Linux kernel to start Funtoo Linux.
+

Latest revision as of 11:57, 23 January 2013

More info here : Kernel STUB : http://blog.realcomputerguy.com/2012/05/efi-stub-booting-without-bootloader.html

UEFI stuff : http://www.rodsbooks.com/efi-bootloaders/

My French version : https://www.funtoo-quebec.org/wiki/index.php/UEFI