Score:0

How do you add modules to be loaded in Ubuntu 22.04

cn flag

I would like to add some modules to be be loaded in Ubuntu 22.04 (The same works in ubuntu 20.04)

root@localhost:~# echo nvme_rdma >> /etc/modules
-bash: /etc/modules: Read-only file system

Is there a reason that this file is on a read only file system and how does one load modules on boot for Ubuntu 22.04?

in flag
Generally one would use `udev` to handle module loading at boot time
cn flag
only if there was a physical device that necessitates the module for a driver is my understanding. In the case where there is no physical device, and needs to be loaded on boot, the procedure is to use the modules file. Maybe I'm wrong? In this case, we are attempting to connect to an NVME over fabric server.
Johan Palych avatar
us flag
Using NVMe Drives and Creating an NVMe over Fabrics Network https://www.linuxjournal.com/content/data-flash-part-ii-using-nvme-drives-and-creating-nvme-over-fabrics-network
chili555 avatar
cn flag
`sudo chmod 0644 /etc/modules`
cn flag
Yes. just change the file permissions. Silly, I guess sometimes you just need some extra eyes after a while.
Score:1
cn flag

Face palm.. Just change file permissions.

chmod 0644 /etc/modules
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.