Linux booting is a complex process as compared to booting processes in any other distribution. The Linux Kernel accepts a lot of parameters at booting, in command-line. This command-Line boot time parameter passes several kind of information to Linux Kernel at System Startup.
Booting a Linux kernel directly from BIOS using the kernel on cd (/dev/cdrom), don’t allow assigning parameter directly. For this we need a special program called bootloader. Two Most widely used Boot Loaders in Linux are:
- GNU GRUB (GNU GRand Unified Bootloader)
- LILO (LInux LOader)
GNU GRUB is a boot-loader package from the GNU project which is capable of booting one of the multiple kernel or any specific kernel configuration on Unix and Linux System.
LILO has the capability to boot various kernels and store their configuration in plain text file. LILO is capable of booting Windows, Unix, BSD, Linux and all other known platform with various options.
The Linux Kernel boot arguments are passed into a list of strings separated with white spaces. The conventional approach to pass boot arguments to kernel is in the form of:
Where ‘name=unique keyword‘ it defines the part of kernel where the value is to be associated. The value it can hold is 10, maximum. The present code only handles 10 comma separated parameters per keywords.
Here, in this article we are going to cover some of the common kernel boot-time parameters in Linux, that you should know.
This sets the initial command that needs to be executed by kernel. If ‘init‘ is not set, it searches for the ‘init‘ in the following respective locations before the kernel lands into panic mode.
The above parameter sets nfs boot address to a string which is useful in case of net boot.
The ‘nfsroot’ parameter sets nfs root name to a string which is useful in case of net boot. The string name is prefixed by ‘/tftpboot‘ if it does not begin with ‘/‘ , ‘,‘ or any digit.
Passing root parameter at booting time sets the system to be used as root file system.
The ‘single‘ parameter which guides ‘init‘ to the start computer in single user mode and disable starting all the daemons.
This parameter tells the boot loader to mount root file system in read-only mode. So, that fsck program can perform a file system scan, you do not issue fsck on a read/write file system.
This parameter forces bootloader to mount root file system in read-write mode.
Adjust IDE driver Geometry, the ‘Hdx‘ argument is very handy if BIOS is generating irrelevant and incorrect Information.
This argument is very useful in protecting I/O ports regions from probes.
Defines a serial port console to kernel with serial console support.
Defines the total amount of available system memory, helpful while using large RAM.
The Linux kernel accepts loads of parameters at boot. We would be covering the rest of parameters in upcoming article.
That’s all for now. I’ll soon be here with another article, till then stay tuned and connected to Tecmint.