[SOLVED] what is difference between /etc/modules and /etc/initramfs-tools/modules ?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
what is difference between /etc/modules and /etc/initramfs-tools/modules ?
Hi,
Could please somebody explain me or put some URL here what is the difference between /etc/modules and /etc/initramfs-tools/modules in Ubuntu | Debian (like debian distribution) ?
In which booting time within the booting process is which applied ?
/etc/modules : kernel modules to load at boot time
This file is used - if new hardware is added after installation and the hardware requires a kernel module, the system must be configured to load the proper kernel module for the new hardware.
/etc/initramfs-tools/modules : List of modules that you want to include in your initramfs.
But when you include, you should run following command to make sure changes take effect.
/etc/modules : kernel modules to load at boot time
This file is used - if new hardware is added after installation and the hardware requires a kernel module, the system must be configured to load the proper kernel module for the new hardware.
Sorry, that's misleading. If new hardware is installed, most modern systems use udev to AUTOMATICALLY load kernel modules to accommodate the new hardware. In certain cases, you would want to use /etc/modules to define aliases or set certain device-specific options for a device. The man pages for Debian are pretty clear about such things: http://wiki.debian.org/Modules
Quote:
/etc/initramfs-tools/modules : List of modules that you want to include in your initramfs.
But when you include, you should run following command to make sure changes take effect.
...and that link is for Linux from scratch, which is NOT what the OP asked about (Debian/Ubuntu). Again, the Debian wiki has lots: http://wiki.debian.org/initramfs
And just running "update-initramfs" could cause problems, because that utility manages ALL the initramfs images, not just one. You need to specify if you want to update, etc. The man page can tell you about that command: http://man.flashnux.com/en/debian/6/...itramfs.8.html
Could please somebody explain me or put some URL here what is the difference between /etc/modules and /etc/initramfs-tools/modules in Ubuntu | Debian (like debian distribution) ?
If you read the commented lines in the files, you did not need to post this question here.
See what do the both files say.
I have taken these lines from ubuntu 13.04 the latest distribution
file /etc/modules says
Code:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
file /etc/initrams-tools/modules says
Code:
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax: module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
That is clear enough to define their meaning and working.
Sorry, that's misleading. If new hardware is installed, most modern systems use udev to AUTOMATICALLY load kernel modules to accommodate the new hardware. In certain cases, you would want to use /etc/modules to define aliases or set certain device-specific options for a device. The man pages for Debian are pretty clear about such things: http://wiki.debian.org/Modules
...and that link is for Linux from scratch, which is NOT what the OP asked about (Debian/Ubuntu). Again, the Debian wiki has lots: http://wiki.debian.org/initramfs
And just running "update-initramfs" could cause problems, because that utility manages ALL the initramfs images, not just one. You need to specify if you want to update, etc. The man page can tell you about that command: http://man.flashnux.com/en/debian/6/...itramfs.8.html
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.