From the course: Exploring Linux Internals: Advanced Insights and Practical Applications

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Initializing devices automatically or manually

Initializing devices automatically or manually

- So in this video we are going to talk about the way how devices are initialized. There are different methods for initializing Linux devices. It can happen statically through the initrd or initramfs. You already know that the initrd or initramfs is created while you install your Linux system. And it contains all the drivers that are necessary for your system to function. It can happen dynamically through systemd-udevd. Systemd-udevd is like the plug and play manager, which detects devices and will make sure that everything is loaded to access the device. You can also manually create devices using mknod. Now using mknod is not very commonly used anymore and only needed in exceptional cases. That's because nowadays this udevd process has become such a solid process and takes care of all your device initialization for you. But nevertheless, it's nice to know about mknod and I'll show you in a bit how it works. So we already know that initramfs initializes the known devices and…

Contents