티스토리 뷰

https://bit.ly/2Zb8ddm

 

5. 아래와 같이 cdrom 이란 모듈을 삭제하려고
한다. 해당 모듈을 삭제하기 위해 ( 괄호 )
안에 알맞은 옵션을 넣으시오.
[root@ihd ~]# lsmod
Module Size Used by
sr_mod 15049 1
cdrom 39085 1 sr_mod
[root@ihd ~]# rmmod cdrom
ERROR: Module cdrom is in use by sr_mod
[root@ihd ~]# rmmod ( ① )
[root@ihd ~]# rmmod ( ② )


1: sr_mod
2: cdrom




root@PSDEV:/root] lsmod
Module                  Size  Used by
vfat                   17411  1 
fat                    65913  1 vfat

lsmod 명령어를 쳐보니, fat이란 모듈이 vfat모듈에 의해 사용되어지고 있음을 확인할수 있다. 
즉 의존성을 의미하는 것인데, 위 문제와 마찬가지로 vfat 모듈 제거 이후 fat을 제거 해야한다. 
또한 모듈의 값이 0이면 사용하고 있지 않은 모듈을 의미한다. 




#rmmod man page 
RMMOD(8)                                                                                            rmmod                                                                                           RMMOD(8)

NAME
       rmmod - Simple program to remove a module from the Linux Kernel

SYNOPSIS
       rmmod [-f] [-s] [-v] [modulename]

DESCRIPTION
       rmmod is a trivial program to remove a module (when module unloading support is provided) from the kernel. Most users will want to use modprobe(8) with the -r option instead.

OPTIONS
       -v, --verbose
           Print messages about what the program is doing. Usually rmmod prints messages only if something goes wrong.

       -f, --force
           This option can be extremely dangerous: it has no effect unless CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was compiled. With this option, you can remove modules which are being used,
           or which are not designed to be removed, or have been marked as unsafe (see lsmod(8)).

       -s, --syslog
           Send errors to syslog instead of standard error.

       -V --version
           Show version of program and exit.

COPYRIGHT
       This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. Maintained by Jon Masters and others.

SEE ALSO
       modprobe(8), insmod(8), lsmod(8)modinfo(8)

AUTHORS
       Jon Masters <jcm@jonmasters.org>
           Developer

       Lucas De Marchi <lucas.de.marchi@gmail.com>
           Developer

kmod                                                                                             03/01/2015                                                                                         RMMOD(8)

 

 

 

 

 

 

 

퀴즈 정답을 댓글로 달면, 취미지원쿠폰과 클래스 99%할인쿠폰
- 취미지원금 4만원,5만원,9만원
- 취미클래스 수강권 99% 할인쿠폰

https://nefing.com/47e780e

 

댓글쓰고 쿠폰받자

 

nefing.com

 

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31