Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Understanding /boot/config file

In /boot/config-$kernel_version I see things like:

CONFIG_X86_TSC=y
CONFIG_CAN_TSCAN1=m

Now, I thought that y stood for yes, which means the option is set. But how about m?

like image 205
Ricky Robinson Avatar asked Jan 29 '13 16:01

Ricky Robinson


People also ask

What is config file in boot?

The configuration file (/boot/grub/grub. conf), which is used to create the list of operating systems to boot in GRUB's menu interface, essentially allows the user to select a pre-set group of commands to execute.

What does the boot directory contains?

/boot or 'Boot' folder contains the linux boot configuration files. This is one of the MOST important folder. Removing anything from this directory or a file getting corrupted will result in a OS crash after reboot. You system won't be able to boot without files in the /boot directory.

Where are boot related configurations stored?

Configuration files for boot loaders are placed in /etc. The system kernel is located in either / or /boot (or as under Debian in /boot but is actually a symbolically linked at / in accordance with the FSSTND).

What is a GRUB CFG file?

cfg file. The grub. cfg file is the GRUB configuration file. It is generated by the grub2-mkconfig program using a set of primary configuration files and the grub default file as a source for user configuration specifications.


1 Answers

Y = Module is compiled directly in kernel. 

Notes: Some drivers should be ready all the time in kernel functionality, without them system can't function like Unix domain sockets (CONFIG_UNIX) which should be Y

N = Don't compile module in kernel. do nothing. 

Notes: Its your choice whether you want it or not.

M = Compile module as loadable module. Kernel will load this module On **Demand**. 

Notes: M means loadable module which they don't need to stay up all the time, Like Sound Driver which you can load when you want to play music. It will make your system more efficient.

like image 171
Satish Avatar answered Oct 13 '22 12:10

Satish