잠시만 기다려 주세요

     '검찰공화국, 부패공화국... 윤석열은 내려와라... 그리고 수사 받아라... 당신은 대통령을 할 자격이 없다.'
전체검색 :  
이번주 로또 및 연금번호 발생!!   |  HOME   |  여기는?   |  바다물때표   |  알림 (19)  |  여러가지 팁 (1095)  |  추천 및 재미 (163)  |  자료실 (28)  |  
시사, 이슈, 칼럼, 평론, 비평 (799)  |  끄적거림 (142)  |  문예 창작 (719)  |  바람 따라 (75)  |  시나리오 (760)  |  드라마 대본 (248)  |  
살인!


    리눅스 데스크탑

리눅스 데스크탑 - Kernel 커널 modules 모듈 관리
이 름 : 바다아이   |   조회수 : 9964         짧은 주소 : https://www.bada-ie.com/su/?281591782198
Kernel 모듈 관리방법
요즘 Linux / Ubuntu 배포판들은 운영체제를 설치할때 왠만한 기본적인 디바이스의 모듈은 알아서 대부분 설치하게된다.
8~9년전 Kernel 2.X Version만 하더라도 필요한 디바이스 모듈이 있다면 별도로 커널컴파일 할일이 잦았는데 요즘은 커널컴파일할일도 부쩍 줄어들었다.
아래 안내하는 커널모듈 명령어 몇개만 알고있어도 왠만한 모듈 관리는 할수있기에 몇가지 적어봅니다.
 
lsmod : 모듈리스트 출력 
             시스템내에 올라와있는 전체 모듈을 리스트로 보여줍니다.
# lsmod


 
:: r8169 : 1G NIC 모듈
# lsmod |grep r8169
r8169                  81920  0
mii                    16384  1 r8169
 
 
modinfo : 모듈 정보출력
# modinfo r8169


 
modprobe : 모듈을 직접적으로 추가, 삭제
커널모듈 기본경로 /lib/modules/`uname -r`/kernel/drivers/
# ls /lib/modules/`uname -r`/kernel/drivers/



 
# uname -r
4.4.0-47-generic
 
:: r8169 모듈 삽입 
# modprobe r8169
 
:: r8169 모듈 삭제
# modprobe -r r8169
 
:: 모듈종속성 체크
# modprobe –show-depends r8169
insmod /lib/modules/4.4.0-47-generic/kernel/drivers/net/mii.ko 
insmod /lib/modules/4.4.0-47-generic/kernel/drivers/net/ethernet/realtek/r8169.ko
 
 
# modprobe –help
Usage:
modprobe [options] [-i] [-b] modulename
modprobe [options] -a [-i] [-b] modulename [modulename…]
modprobe [options] -r [-i] modulename
modprobe [options] -r -a [-i] modulename [modulename…]
modprobe [options] -c
modprobe [options] –dump-modversions filename
Management Options:
-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 Options:
-D, –show-depends          Only print module dependencies and exit
-c, –showconfig            Print out known configuration and exit
-c, –show-config           Same as –showconfig
   –show-modversions      Dump module symbol version and exit
   –dump-modversions      Same as –show-modversions
 
General Options:
-n, –dry-run               Do not execute operations, just print out
-n, –show                  Same as –dry-run
-C, –config=FILE           Use FILE instead of default search paths
-d, –dirname=DIR           Use DIR as filesystem root for /lib/modules
-S, –set-version=VERSION   Use VERSION instead of `uname -r`
-s, –syslog                print to syslog, not stderr
-q, –quiet                 disable messages
-v, –verbose               enables more messages
-V, –version               show version
-h, –help                  show this help


출처 :
https://idchowto.com/?p=31403

 
| |





      1 page / 9 page
번 호 카테고리 제 목 이름 조회수
248 리눅스 데스크탑 6.14 ... experimental .. !! !!! .. 바다아이 350
247 리눅스 데스크탑 testing, sid, backports surfshark vpn , ...  바다아이 337
246 리눅스 데스크탑 libreoffice hwp ... libreoffice-h2orestart hwp ... 바다아이 433
245 리눅스 데스크탑 .... wine install 바다아이 379
244 리눅스 데스크탑 surfshark vpn .... ..... 바다아이 376
243 리눅스 데스크탑 debian ... 바다아이 478
242 리눅스 데스크탑 unstable testing stable .... ... 바다아이 794
241 리눅스 데스크탑 6.12.9+bpo-amd64... VirtualBox 7.1.6 for Linux.. amd-v .... SVM(Secure Virtual Machine) 바다아이 457
240 리눅스 데스크탑 uuid .... fstab uuid ... blkid 바다아이 483
239 리눅스 데스크탑 ... path ... 바다아이 473
238 리눅스 데스크탑 debian backports .... ?? 바다아이 494
237 리눅스 데스크탑 .... . ... chrome password 바다아이 571
236 리눅스 데스크탑 Wine completely broken - wine: could not load kernel32.dll, status c0000135 바다아이 497
235 리눅스 데스크탑 ... ... ... 바다아이 1462
234 리눅스 데스크탑 debian trixie media-downloader ... ... 바다아이 550
233 리눅스 데스크탑 .... qt5 build-essential 바다아이 498
232 리눅스 데스크탑 archlinux lightdm .... 바다아이 587
231 리눅스 데스크탑 ... archinstall... .. 바다아이 702
230 리눅스 데스크탑 .... pacman -Suy ... 바다아이 901
229 리눅스 데스크탑 archlinux... Libalpm.so.14 error after updating to pacman 7 바다아이 976
228 리눅스 데스크탑 ... 바다아이 1626
227 리눅스 데스크탑 .... 바다아이 1397
226 리눅스 데스크탑 libreoffice hwp , ... 바다아이 1713
225 리눅스 데스크탑 uefi .... . 바다아이 1874
224 리눅스 데스크탑 mkfs ... .. 바다아이 1800
223 리눅스 데스크탑 ... hd 4600.. Ubuntu Intel graphics driver install, 바다아이 4164
222 리눅스 데스크탑 virtualbox ... ntfs.sys ... virtualbox .. 바다아이 4307
221 리눅스 데스크탑 , 10 ... archlinux, window10 dual-boot 바다아이 4103
220 리눅스 데스크탑 , .... ... 바다아이 5139
219 리눅스 데스크탑 Installation from WineHQ's repo, debian wine ... 바다아이 5645
| |









Copyright ⓒ 2001.12. bada-ie.com. All rights reserved.
이 사이트는 리눅스에서 firefox 기준으로 작성되었습니다. 기타 브라우저에서는 다르게 보일 수 있습니다.
[ Ubuntu + GoLang + PostgreSQL + Mariadb ]
서버위치 : 오라클 클라우드 춘천  실행시간 : 0.14297
to webmaster... gogo sea. gogo sea.