Difference between revisions of "Boot loaders"

From ArchWiki
Jump to: navigation, search
(Kernel parameters: Merge in info from Mkinitcpio.)
(Kernel parameters)
Line 20: Line 20:
  
 
=== 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.
  
 
==== GRUB(2) ====
 
==== GRUB(2) ====

Revision as of 09:26, 16 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 ramdisk 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 short introduction and most used configurations users will touch. For detailed information, please see corresponding pages of each boot loader.

Introduction

GRUB

GRUB Legacy

Syslinux

LILO

Configuration

Configuration files

  • GRUB: /boot/grub/grub.cfg
  • GRUB Legacy: /boot/grub/menu.lst

Kernel parameters

Kernel command line parameters are often supplied by the bootloader.

GRUB(2)

Edit the file /etc/default/grub and append your kernel options to the line GRUB_CMDLINE_LINUX_DEFAULT="":

/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="ro quiet splash"

Re-generate grub.cfg with:

# grub-mkconfig -o /boot/grub/grub.cfg

The resulting /boot/grub/grub.cfg will be:

/boot/grub/grub.cfg
[...]

menuentry 'Arch GNU/Linux, with Linux core repo kernel' [...] {
[...]
set root='hd0,msdos1'
[...]
linux	/vmlinuz-linux root=/dev/sda3 quiet splash
initrd	/initramfs-linux.img

[...]

GRUB Legacy

/boot/grub/menu.lst
...

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz-linux]
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/sda3 ro
initrd /initramfs-linux.img

...