Desinstalado módulos en Kernels 2.6.x

By 6 de agosto de 2006 Debian, Gentoo, Linux, Ubuntu No Comments

tux.pngProblema:Nos encontramos que una vez compilado nuestro kernel 2.6.x no podemos desinstalar módulos (rmmod) si no hemos activado en nuestro kernel la opcion Module unloading :[*] Enable loadable module support
[*] Module unloading
[ ] Forced module unloading
[ ] Module versioning support (EXPERIMENTAL)
[*] Automatic kernel module loading
De forma que si, por ejemplo, quisiéramos descargar en caliente los todos los módulos de sonido no podríamos ejecutar:# for i in $(lsmod | grep ^snd); do rmmod $i; doneNos daría un mensaje parecido a esto:


debian:/var/log# for i in $(lsmod | grep ^snd); do rmmod $i; done

FATAL: Kernel does not have unload support.
ERROR: Module 12520 does not exist in /proc/modules ERROR: Module _ does not exist in /proc/modules
FATAL: Kernel does not have unload support.
ERROR: Module 6952 does not exist in /proc/modules
ERROR: Module _ does not exist in /proc/modules
FATAL: Kernel does not have unload support.
ERROR: Module 5668 does not exist in /proc/modules
ERROR: Module _ does not exist in /proc/modules
FATAL: Kernel does not have unload support.
ERROR: Module 5000 does not exist in /proc/modules
ERROR: Module _ does not exist in /proc/modules
FATAL: Kernel does not have unload support.
ERROR: Module 15584 does not exist in /proc/modules
ERROR: Module _ does not exist in /proc/modules
FATAL: Kernel does not have unload support.
ERROR: Module 19464 does not exist in /proc/modules
ERROR: Module _ does not exist in /proc/modules
FATAL: Kernel does not have unload support.
ERROR: Module 71176 does not exist in /proc/modules
ERROR: Module _ does not exist in /proc/modules
FATAL: Kernel does not have unload support.
ERROR: Module 17740 does not exist in /proc/modules
ERROR: Module _ does not exist in /proc/modules
FATAL: Kernel does not have unload support.
ERROR: Module 34616 does not exist in /proc/modules
ERROR: Module _ does not exist in /proc/modules
FATAL: Kernel does not have unload support.
ERROR: Module 6832 does not exist in /proc/modules ERROR: Module _ does not exist in /proc/module

Leave a Reply

Your email address will not be published.