0

Here is a list http://redsymbol.net/linux-kernel-boot-parameters/

The current used parameters are visible :

cat /proc/cmdline

I have many servers which different kernels. How can I check on each one if a specific boot parameter is available ?

If the parameters are handled by modules : how can I know the loaded modules and their parameters ?

note : know in realtime, if possible to automate

1

Kernel parameters as just keys that could be used by kernel and its modules (and some user-space processes like init (runlevels) or "systemd" (targets). I can create module that accepts unicorn parameter. You may pass unicorn=42 to your current kernel (try it!) without any harm. But nothing will happen because there is no module to read it.

So, there is no such thing as "list of all parameters". They depend on kernel features and its modules.

Correct approach is to read kernel documentation for each feature/module to find list of available parameters.

Some of them like root, quiet and init are widely used: https://www.cyberciti.biz/tips/10-boot-time-parameters-you-should-know-about-the-linux-kernel.html

vga=... is good example too: https://www.kernel.org/doc/Documentation/fb/vesafb.txt (read framebuffer manual below to know more about it)

If you are familiar with Windows, kernel parameters are like registry: there is no "all registry keys" but each application/subsystems has some. But kernel parameters are much better documented;)

Systemd (user level daemon!) uses systemd.unit= parameter and you may know about it by reading its documentation.

  • theory : ok. so, can I use 'nousb noautogroup' with every kernel from 2.4 to 4.x and be sure no kernel panic due to ... unicorns ? – Massimo Jun 30 '17 at 18:15
  • If kernel does not know this parameter it should simply ignore it. Unknown parameter should not lead to kernel panic. – user996142 Jun 30 '17 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.