Difference between revisions of "Boot loaders"

From ArchWiki
Jump to: navigation, search
m (Configuration files: Fix typo.)
(Kernel parameters: Move to new page.)
Line 31: Line 31:
  
 
=== Kernel parameters ===
 
=== Kernel parameters ===
Kernel command line parameters are often supplied by the bootloader. Here we are adding the parameters {{ic|quiet}} and {{ic|splash}} to GRUB, GRUB Legacy, LILO and Syslinux.
+
Kernel command line parameters are often supplied by the bootloader. See [[Kernel parameters]].
 
+
==== [[GRUB]] ====
+
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}}
+
 
+
The resulting line in {{ic|/boot/grub/grub.cfg}} will look like:
+
{{hc|/boot/grub/grub.cfg|2=
+
linux /vmlinuz-linux root=/dev/sda3 quiet splash}}
+
 
+
==== [[GRUB Legacy]] ====
+
Kernel parameters should be added to the kernel options of bootloader configuration file({{ic|/boot/grub/menu.lst}}).
+
{{hc|/boot/grub/menu.lst|2=
+
kernel /vmlinuz-linux root=/dev/sda3 ro quiet splash}}
+
 
+
==== [[LILO]] ====
+
{{hc|/etc/lilo.conf|2=
+
image=/boot/vmlinuz-linux
+
        [...]
+
        quiet splash}}
+
 
+
==== [[Syslinux]] ====
+
{{hc|/boot/syslinux/syslinux.cfg|2=
+
APPEND root=UUID=988d4e11-8237-4af3-5ab6-77627128g9d0 ro vga=current quiet splash}}
+

Revision as of 05:25, 20 July 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.

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.