You are not logged in.

#1 2012-05-27 08:29:32

lardon
Member
Registered: 2008-05-31
Posts: 263
Website

[Solved] blacklisting kernel modules

Hi all,

I'm trying to blacklist the "floppy" module, to no avail. I've tried the procedure describe in the wiki: https://wiki.archlinux.org/index.php/Ke … probe.d.2F , but the floppy module is still loaded at each boot.

My modprobe.conf is as follows:

#
# /etc/modprobe.d/modprobe.conf
#
blacklist floppy
install floppy /bin/false

I've tried putting the file in /usr/lib/modprobe.d, but it doesn't work either.

Any insight?

Last edited by lardon (2012-05-27 08:50:13)


Autojump, the fastest way to navigate your filesystem from the command line!

Offline

#2 2012-05-27 08:37:33

matse
Member
Registered: 2011-04-27
Posts: 294

Re: [Solved] blacklisting kernel modules

the reason might be that the module already is loaded from your initramfs, your linked wiki article explains this

Some modules are loaded as part of the initramfs. mkinitcpio -M will print out all autodetected modules: to prevent the initramfs from loading some of those modules, blacklist them in /etc/modprobe.d/modprobe.conf. Running mkinitcpio -v will list all modules pulled in by the various hooks (e.g. filesystem hook, SCSI hook, etc.). Remember to rebuild the initramfs once you have blacklisted the modules and to reboot afterwards.

So rebuild your initramfs.
Greetings
matse

Offline

#3 2012-05-27 08:49:46

lardon
Member
Registered: 2008-05-31
Posts: 263
Website

Re: [Solved] blacklisting kernel modules

Thanks for your answer! That was indeed it: I had to remove the scsi hook for mkinitcpio.conf.


Autojump, the fastest way to navigate your filesystem from the command line!

Offline

#4 2012-05-29 23:52:09

root
Member
From: 127.0.0.1
Registered: 2012-04-13
Posts: 297

Re: [Solved] blacklisting kernel modules

@lardon

You could have also used the grub alternative to blacklist that module as I do not know how high the "price" of removing the scsi hook is.


\(o_X)/
                        'Cause I wanna be an Archy - An Archy in the UK // Sex Pistols

Offline

#5 2012-09-26 19:22:11

mattjbray
Member
Registered: 2012-09-26
Posts: 1

Re: [Solved] blacklisting kernel modules

I solved this by blacklisting the floppy module in /etc/modprobe.d/modprobe.conf:

#
# /etc/modprobe.d/modprobe.conf
#
blacklist floppy

And then including modprobe.conf into the CPIO image.  In /etc/mkinitcpio.conf:

#
# /etc/mkinitcpio.conf
#
...
FILES="/etc/modprobe.d/modprobe.conf"
...

Then rebuild the initramfs and reboot:

# mkinitcpio -p linux
# reboot

This seems cleaner and the SCSI hook still runs.

Offline

Board footer

Powered by FluxBB