Prev | Current Page 365 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


The modprobe command loads modules temporarily??”they disappear at the next reboot. To permanently
add the module to your system, add the modprobe command line to one of the startup
scripts run at boot time. You can also add modules to the /etc/modules file to have them loaded
at startup.
An alternative to modprobe is the insmod command. The advantage of using
modprobe, however, is that insmod loads only the module you request, whereas
modprobe tries to load other modules that the one you requested is dependent on.
Removing Modules
Use the rmmod command to remove a module from a running kernel. For example, to remove the
module parport_pc from the current kernel, type the following:
# rmmod parport_pc
If it is not currently busy, the parport_pc module is removed from the running kernel. If it is
busy, try killing any process that might be using the device. Then run rmmod again. Sometimes,
the module you are trying to remove depends on other modules that may be loaded. For instance,
the usbcore module cannot be unloaded while the USB printer module (usblp) is loaded, as
shown here:
# rmmod usbcore
ERROR: Module usbcore is in use by wacom,usblp,ehci_hcd,ohci_hcd
Managing File Systems and Disk Space
File systems in Linux are organized in a hierarchy, beginning from root (/) and continuing downward
in a structure of directories and subdirectories.


Pages:
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377