modprobe

Table of Contents

개요

리눅스 커널 모듈을 추가하거나 제거를 합니다.

설치 방법

설치

kmod 문서를 참조하세요.

확인

$ modprobe -V
kmod version 22
-XZ -ZLIB -EXPERIMENTAL

사용법

구조

modprobe [옵션] [-i] [-b] 모듈이름
modprobe [옵션] -a [-i] [-b] 모듈이름 [모듈이름...]
modprobe [옵션] -r [-i] 모듈이름
modprobe [옵션] -r -a [-i] 모듈이름 [모듈이름...]
modprobe [옵션] -c
modprobe [옵션] --dump-modversions 파일이름

옵션

관리 옵션

  • -a, --all Consider every non-argument to be a module name to be inserted or removed (-r)
  • -r, --remove Remove modules instead of inserting
    • --remove-dependencies Also remove modules depending on it
  • -R, --resolve-alias Only lookup and print alias and exit
    • --first-time Fail if module already inserted or removed
  • -i, --ignore-install Ignore install commands
  • -i, --ignore-remove Ignore remove commands
  • -b, --use-blacklist Apply blacklist to resolved alias.
  • -f, --force Force module insertion or removal. implies --force-modversions and --force-vermagic
    • --force-modversion Ignore module's version
    • --force-vermagic Ignore module's version magic

Query 옵션

  • -D, --show-depends

#+LANG_EN Only print module dependencies and exit

  • -c, --showconfig

#+LANG_EN Print out known configuration and exit

  • -c, --show-config

#+LANG_EN Same as --showconfig

  • --show-modversions

#+LANG_EN Dump module symbol version and exit

  • --dump-modversions

#+LANG_EN Same as --show-modversions

일반 옵션

  • -n, --dry-run

#+LANG_EN Do not execute operations, just print out

  • -n, --show

#+LANG_EN Same as --dry-run

  • -C, --config=FILE

#+LANG_EN Use FILE instead of default search paths

  • -d, --dirname=DIR

#+LANG_EN Use DIR as filesystem root for /lib/modules

  • -S, --set-version=VERSION

#+LANG_EN Use VERSION instead of `uname -r`

  • -s, --syslog

#+LANG_EN print to syslog, not stderr

  • -q, --quiet

#+LANG_EN disable messages

  • -v, --verbose

#+LANG_EN enables more messages

  • -V, --version

#+LANG_EN show version

  • -h, --help

#+LANG_EN show this help

관련 항목

참고자료

kmod 문서를 참조하세요.

Date: 2018-02-20

Author: Dongsoo Lee

Created: 2018-12-10 Mon 03:13

Validate