Difference between revisions of "Boot loaders"

From ArchWiki
Jump to: navigation, search
(Configuration files: Add file name.)
m (Kynikos moved page Bootloader installation to Boot Loader over redirect: restore previous title, this article serves as an introduction to our supported boot loaders in a comparative way; besides, each boot loader has its own installation proce...)
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
[[Category:Boot loaders]]
 
[[Category:Boot loaders]]
 
{{Stub|This page is created to ease the transition from Grub to Grub2.}}
 
{{Stub|This page is created to ease the transition from Grub to Grub2.}}
The boot loader is responsible for loading the kernel and [[mkinitcpio|initial ramdisk]] before initiating the [[Arch Boot Process|boot process]]. You can use [[:Category:Boot loaders|different kinds]] of bootloaders in Arch, such as [[GRUB]](2), [[Syslinux]], [[LILO]] or [[GRUB Legacy]].
+
The boot loader is responsible for loading the kernel and [[mkinitcpio|initial RAM disk]] before initiating the [[Arch Boot Process|boot process]]. You can use [[:Category:Boot loaders|different kinds]] of bootloaders in Arch, such as [[GRUB2|GRUB(2)]], [[Syslinux]], [[LILO]] or [[GRUB Legacy]]. For UEFI Bootloaders, please see [[UEFI Bootloaders|this]] page.
  
This page will only contain short introduction and most used configurations users will touch. For detailed information, please see corresponding pages of each boot loader.
+
This page will only contain a short introduction and the most used configurations that users will encounter. For detailed information, please see the corresponding pages of each boot loader.
 
+
== Introduction ==
+
=== GRUB ===
+
 
+
=== GRUB Legacy ===
+
 
+
=== Syslinux ===
+
 
+
=== LILO ===
+
  
 
== Configuration ==
 
== Configuration ==
 
=== Configuration files ===
 
=== Configuration files ===
* GRUB: {{ic|/boot/grub/grub.cfg}}
+
Different boot loader use different files for configuration.
* GRUB Legacy: {{ic|/boot/grub/menu.lst}}
+
 
 +
{|border=1 width="70%" class="wikitable"
 +
!Boot Loader!!Configuration File
 +
|-
 +
|
 +
GRUB
 +
|{{ic|/boot/grub/grub.cfg}}
 +
|-
 +
|
 +
GRUB Legacy
 +
|{{ic|/boot/grub/menu.lst}}
 +
|-
 +
|
 +
LILO
 +
|{{ic|/etc/lilo.conf}}
 +
|-
 +
|
 +
Syslinux
 +
|{{ic|/boot/syslinux/syslinux.cfg}}
 +
|-
 +
|}
  
 
=== Kernel parameters ===
 
=== Kernel parameters ===
The following is an example for [[GRUB]] (see the [[GRUB Legacy]], [[LILO]] or [[Syslinux]] articles accordingly):
+
Kernel command line parameters are often supplied by the bootloader. See [[Kernel parameters]].
 
+
==== GRUB(2) ====
+
Edit the file {{ic|/etc/default/grub}} and append your kernel options to the line {{ic|1=GRUB_CMDLINE_LINUX_DEFAULT=""}}:
+
{{hc|/etc/default/grub|2=GRUB_CMDLINE_LINUX_DEFAULT="ro quiet splash"}}
+
 
+
Re-generate {{ic|grub.cfg}} with:
+
{{bc|# grub-mkconfig -o /boot/grub/grub.cfg}}
+

Revision as of 13:36, 12 September 2012

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: This page is created to ease the transition from Grub to Grub2. (Discuss in Talk:Boot loaders#)

The boot loader is responsible for loading the kernel and initial RAM disk before initiating the boot process. You can use different kinds of bootloaders in Arch, such as GRUB(2), Syslinux, LILO or GRUB Legacy. For UEFI Bootloaders, please see this page.

This page will only contain a short introduction and the most used configurations that users will encounter. For detailed information, please see the corresponding pages of each boot loader.

Configuration

Configuration files

Different boot loader use different files for configuration.

Boot Loader Configuration File

GRUB

/boot/grub/grub.cfg

GRUB Legacy

/boot/grub/menu.lst

LILO

/etc/lilo.conf

Syslinux

/boot/syslinux/syslinux.cfg

Kernel parameters

Kernel command line parameters are often supplied by the bootloader. See Kernel parameters.