Difference between revisions of "Kernel line"

From ArchWiki
Jump to: navigation, search
(rm gap)
(Appending parameters to the kernel line: consistency)
Line 6: Line 6:
 
For {{pkg|syslinux}}, edit {{ic|/boot/syslinux/syslinux.cfg}}:
 
For {{pkg|syslinux}}, edit {{ic|/boot/syslinux/syslinux.cfg}}:
  
{{bc|1=APPEND root=/dev/sda4 ro nmi_watchdog=0}}
+
{{bc|1=APPEND root=/dev/sda4 ro '''some_parameter=1'''}}
  
 
For {{pkg|grub}}, edit {{ic|/boot/grub.cfg}}:
 
For {{pkg|grub}}, edit {{ic|/boot/grub.cfg}}:
  
{{bc|1=linux  /vmlinuz-linux root=UUID=a3... ro '''some_parameter=1''' quiet}}
+
{{bc|1=linux  /vmlinuz-linux root=UUID=a3... ro '''some_parameter=1'''}}
  
 
For {{aur|grub-legacy}}, edit {{ic|/boot/grub/menu.lst}}:
 
For {{aur|grub-legacy}}, edit {{ic|/boot/grub/menu.lst}}:
  
{{bc|1=kernel /vmlinuz26 root=/dev/sda3 ro '''some_parameter=1''' quiet}}
+
{{bc|1=kernel /vmlinuz26 root=/dev/sda3 ro '''some_parameter=1'''}}
  
 
==See also==
 
==See also==
 
*[https://www.kernel.org/doc/Documentation/kernel-parameters.txt kernel.org documentation on kernel paramters]
 
*[https://www.kernel.org/doc/Documentation/kernel-parameters.txt kernel.org documentation on kernel paramters]

Revision as of 02:25, 27 September 2012

The kernel line can be used to pass various parameters to the kernel.

Appending parameters to the kernel line

For syslinux, edit /boot/syslinux/syslinux.cfg:

APPEND root=/dev/sda4 ro some_parameter=1

For grub, edit /boot/grub.cfg:

linux  /vmlinuz-linux root=UUID=a3... ro some_parameter=1

For grub-legacyAUR, edit /boot/grub/menu.lst:

kernel /vmlinuz26 root=/dev/sda3 ro some_parameter=1

See also