Difference between revisions of "Boot loaders"

From ArchWiki
Jump to: navigation, search
m (Syslinux)
(77 intermediate revisions by 27 users not shown)
Line 1: Line 1:
[[Category:Boot loaders]]
#REDIRECT: [[:Category:Boot loaders]]
{{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]].
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.
== Configuration ==
=== Configuration files ===
Different boot loader use different files for configuration. Here is a short list:
* GRUB: {{ic|/boot/grub/grub.cfg}}
* GRUB Legacy: {{ic|/boot/grub/menu.lst}}
=== Kernel parameters ===
Kernel command line parameters are often supplied by the bootloader.
==== [[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 {{ic|/boot/grub/grub.cfg}} will be:
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]] ====
# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz-linux]
root  (hd0,0)
kernel /vmlinuz-linux root=/dev/sda3 ro
initrd /initramfs-linux.img
==== [[Syslinux]] ====
For [[Syslinux]] it's on the {{ic|APPEND}} line:
APPEND root=UUID=988d4e11-8237-4af3-5ab6-77627128g9d0 ro vga=current quiet splash

Latest revision as of 10:02, 6 July 2016