How do I completely remove a module from a system

Jump to: navigation, search

A kernel module should not be removed from a system by simply deleting it from the /usr/conf/mod directory. First unload the module, then uninstall the module, and finally remove the module, if strictly required from the /usr/conf/mod directory as follows:

1. Unload the module:

# kcmodule -s <mydrivername>=unused

2. Uninstall the module:

# kcmodule -s <mydrivername>=uninstall

3. Remove the module from the /usr/conf/mod file:

# rm -f /usr/conf/mod/<mydrivername>