BLOG08a: Linux GRUB Parameters
BLOG18: Linux GRUB Parameters (Initialization), Runtime Behavior (sysctl Tunables), Dynamic Modules (modprobe)
What are the differences between GRUB kernel boot parameters, sysctl parameters, and modprobe kernel modules?
1. Kernel Parameters in GRUB (Boot-time Kernel Arguments)
Examples:
cgroup_enable=memory
systemd.unified_cgroup_hierarchy=1
iptables=legacy
swapaccount=1
ipv6.disable=1Where they live?
When applied?
Purpose:
2. sysctl Parameters (Runtime Kernel Tunables)
Location:
When applied?
Purpose:
3. modprobe (Kernel Modules)
Examples:
Purpose:
When applied?
How All Three Interact
GRUB Parameters
modprobe Kernel Modules
sysctl Runtime Parameters
Example to Understand the Difference
1. GRUB parameter (boot-time)
2. modprobe (module load)
3. sysctl parameter (runtime behavior)
Simple Analogy
Category
Analogy
Kubernetes Example
Layer
Example
Why
Summary Table
Feature
GRUB Kernel Args
modprobe
sysctl
1. List All LOADED Kernel Modules
Command
Better readable output:
Check if a specific module is loaded:
2. List All AVAILABLE Kernel Modules (Installed but NOT loaded)
Command
To see only module names (clean list):
To compare:
3. List All GRUB Kernel Parameters
See parameters used by the currently running kernel
See configured GRUB file (what will apply after reboot)
See all menu entries (grub.cfg)
To get ONLY kernel parameters from grub.cfg
4. List ALL sysctl tunables
A. Show all CURRENT sysctl kernel settings
B. Show only network sysctl values
C. Show only modified (active) sysctl values
D. Show sysctl configurations applied from files
1. Global config:
2. Drop-in configs:
5. List All sysctl Parameters Available in the Kernel
Directory listing:
Clean list:
SUMMARY (For Quick Use)
Category
Command
Last updated