1. LINUX CD-ROM을 CD-ROM Driver에 넣는다.
2. 다음과 같이 마운트한다.
[root@www etc]# mount -t iso9660 /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
마운트 명령후에 위와 같은 메시지가 떨어지면 마운트가 정상적으로 되었음을 의미한다.
이제 /mnt/cdrom 디렉토리를 일반 디렉토리처럼 마음대로 읽을수가 있다.
[참고]
혹, 마운트를 간편하게 하려는 분이 계시다면 다음을 참조바람..
[root@www etc]#
[root@www etc]# cat /etc/fstab
LABEL=/ / ext2 defaults 1 1
LABEL=/home /home ext2 defaults 1 2
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/sda6 swap swap defaults 0 0
/dev/sda7 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
[root@www etc]#
위의 파일은 자동마운트를 하기위해서 필요한 정보를 가지고 있다.
즉, #mount /mnt/cdrom 하면 /etc/fstab에 있는 위의 정보를 이용하여 마운트를 시켜준다.
3. CD-ROM 디렉토리로 이동_1
[root@www etc]#
[root@www etc]#
[root@www etc]#
[root@www etc]# cd /mnt/cdrom
[root@www cdrom]#
[root@www cdrom]#
[root@www cdrom]#
[root@www cdrom]# ls -l
total 171
-rw-r--r-- 105 root root 18385 Sep 8 1999 COPYING
-rw-r--r-- 9 root root 4264 Apr 9 09:01 README
-rw-r--r-- 73 root root 20232 Apr 5 02:53 RELEASE-NOTES
-rw-r--r-- 41 root root 21936 Apr 5 02:53 RELEASE-NOTES.de
-rw-r--r-- 41 root root 21648 Apr 5 02:53 RELEASE-NOTES.es
-rw-r--r-- 41 root root 22542 Apr 5 02:52 RELEASE-NOTES.fr
-rw-r--r-- 41 root root 21006 Apr 5 02:53 RELEASE-NOTES.it
-rw-r--r-- 77 root root 18805 Apr 6 00:22 RELEASE-NOTES.ja
-rw-r--r-- 105 root root 1908 Sep 26 1999 RPM-GPG-KEY
drwxr-xr-x 4 root root 2048 Apr 9 12:40 RedHat
-r--r--r-- 1 root root 844 Apr 9 13:04 TRANS.TBL
-rwxr-xr-x 105 root root 538 Sep 26 1999 autorun
-r--r--r-- 1 root root 2048 Apr 9 13:04 boot.cat
drwxr-xr-x 6 root root 4096 Apr 9 12:36 dosutils
drwxrwxrwx 9 root root 2048 Apr 9 12:38 images
[root@www cdrom]#
[root@www cdrom]#
[root@www cdrom]#
[root@www cdrom]#
[root@www cdrom]# cd RedHat
[root@www RedHat]#
[root@www RedHat]#
[root@www RedHat]# ls -l
total 86
drwxr-xr-x 2 root root 83968 Apr 9 13:03 RPMS
-r--r--r-- 1 root root 92 Apr 9 13:04 TRANS.TBL
drwxr-xr-x 2 root root 2048 Apr 9 12:41 base
[root@www RedHat]#
[root@www RedHat]#
[root@www RedHat]# cd RPMS
[root@www RPMS]#
[root@www RPMS]#
[root@www RPMS]# ls -l
total 484058
4. 설치할 rpm 선택및 설치
[root@www RPMS]# ls -l | grep snmp
-rw-r--r-- 13 root root 830875 Apr 9 04:36 ucd-snmp-4.2-12.i386.rpm
-rw-r--r-- 13 root root 129150 Apr 9 04:36 ucd-snmp-utils-4.2-12.i386.rpm
[root@www RPMS]#
[root@www RPMS]#
[root@www RPMS]# rpm -Uvh ucd-snmp-4.2-12.i386.rpm
Preparing... ########################################### [100%]
1:ucd-snmp ########################################### [100%]
[root@www RPMS]#
[root@www RPMS]#
[root@www RPMS]#
[root@www RPMS]# rpm -Uvh ucd-snmp-utils-4.2-12.i386.rpm
Preparing... ########################################### [100%]
1:ucd-snmp-utils ########################################### [100%]
[root@www RPMS]#
[root@www RPMS]#
[root@www RPMS]#
[root@www RPMS]# rpm -qa | grep snmp
ucd-snmp-utils-4.2-12
ucd-snmp-4.2-12
[root@www RPMS]#
[root@www RPMS]#
[root@www RPMS]#
root@www RPMS]# rpm -ql ucd-snmp-4.2-12
/etc/rc.d/init.d/snmpd
/etc/snmp
/etc/snmp/snmpd.conf
/usr/lib/libsnmp-0.4.2.so
/usr/lib/libsnmp.so.0
/usr/lib/libsnmp.so.0.4.2
/usr/lib/libucdagent-0.4.2.so
/usr/lib/libucdagent.so.0
/usr/lib/libucdagent.so.0.4.2
/usr/lib/libucdmibs-0.4.2.so
/usr/lib/libucdmibs.so.0
/usr/lib/libucdmibs.so.0.4.2
/usr/sbin/snmpd
/usr/sbin/snmptrapd
/usr/share/doc/ucd-snmp-4.2
/usr/share/doc/ucd-snmp-4.2/AGENT.txt
/usr/share/doc/ucd-snmp-4.2/COPYING
/usr/share/doc/ucd-snmp-4.2/ChangeLog
/usr/share/doc/ucd-snmp-4.2/EXAMPLE.conf
/usr/share/doc/ucd-snmp-4.2/FAQ
/usr/share/doc/ucd-snmp-4.2/NEWS
/usr/share/doc/ucd-snmp-4.2/PORTING
/usr/share/doc/ucd-snmp-4.2/README
/usr/share/doc/ucd-snmp-4.2/README.cmu
/usr/share/doc/ucd-snmp-4.2/README.mib2c
/usr/share/doc/ucd-snmp-4.2/README.snmpv3
/usr/share/doc/ucd-snmp-4.2/README.thread
/usr/share/doc/ucd-snmp-4.2/README.win32
/usr/share/doc/ucd-snmp-4.2/TODO
/usr/share/doc/ucd-snmp-4.2/ipf-mod.pl
/usr/share/doc/ucd-snmp-4.2/passtest
/usr/share/man/man1/snmpd.1.gz
/usr/share/man/man5/snmp.conf.5.gz
/usr/share/man/man5/snmp_config.5.gz
/usr/share/man/man5/snmpd.conf.5.gz
/usr/share/man/man5/snmptrapd.conf.5.gz
/usr/share/man/man5/variables.5.gz
/usr/share/man/man8/snmptrapd.8.gz
/usr/share/snmp
/usr/share/snmp/mibs
/usr/share/snmp/mibs/AGENTX-MIB.txt
/usr/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt
/usr/share/snmp/mibs/DISMAN-SCRIPT-MIB.txt
/usr/share/snmp/mibs/EtherLike-MIB.txt
/usr/share/snmp/mibs/HCNUM-TC.txt
/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
/usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
/usr/share/snmp/mibs/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
/usr/share/snmp/mibs/IANA-LANGUAGE-MIB.txt
/usr/share/snmp/mibs/IANAifType-MIB.txt
/usr/share/snmp/mibs/IF-INVERTED-STACK-MIB.txt
/usr/share/snmp/mibs/IF-MIB.txt
/usr/share/snmp/mibs/INET-ADDRESS-MIB.txt
/usr/share/snmp/mibs/IP-FORWARD-MIB.txt
/usr/share/snmp/mibs/IP-MIB.txt
/usr/share/snmp/mibs/IPV6-ICMP-MIB.txt
/usr/share/snmp/mibs/IPV6-MIB.txt
/usr/share/snmp/mibs/IPV6-TC.txt
/usr/share/snmp/mibs/IPV6-TCP-MIB.txt
/usr/share/snmp/mibs/IPV6-UDP-MIB.txt
/usr/share/snmp/mibs/RFC-1215.txt
/usr/share/snmp/mibs/RFC1155-SMI.txt
/usr/share/snmp/mibs/RFC1213-MIB.txt
/usr/share/snmp/mibs/RMON-MIB.txt
/usr/share/snmp/mibs/SMUX-MIB.txt
/usr/share/snmp/mibs/SNMP-COMMUNITY-MIB.txt
/usr/share/snmp/mibs/SNMP-FRAMEWORK-MIB.txt
/usr/share/snmp/mibs/SNMP-MPD-MIB.txt
/usr/share/snmp/mibs/SNMP-NOTIFICATION-MIB.txt
/usr/share/snmp/mibs/SNMP-PROXY-MIB.txt
/usr/share/snmp/mibs/SNMP-TARGET-MIB.txt
/usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt
/usr/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt
/usr/share/snmp/mibs/SNMPv2-CONF.txt
/usr/share/snmp/mibs/SNMPv2-MIB.txt
/usr/share/snmp/mibs/SNMPv2-SMI.txt
/usr/share/snmp/mibs/SNMPv2-TC.txt
/usr/share/snmp/mibs/SNMPv2-TM.txt
/usr/share/snmp/mibs/TCP-MIB.txt
/usr/share/snmp/mibs/UCD-DEMO-MIB.txt
/usr/share/snmp/mibs/UCD-DISKIO-MIB.txt
/usr/share/snmp/mibs/UCD-DLMOD-MIB.txt
/usr/share/snmp/mibs/UCD-IPFWACC-MIB.txt
/usr/share/snmp/mibs/UCD-SNMP-MIB.txt
/usr/share/snmp/mibs/UDP-MIB.txt
[root@www RPMS]#
6. CD-ROM 언마운트하기
[root@www /home]# umount /mnt/cdrom
umount /mnt/cdrom
[root@www /home]#
'UNIX > Linux' 카테고리의 다른 글
[Linux] root 패스워드 분실시 (0) | 2012.06.14 |
---|---|
[Linux] 리눅스 응급 복구하기 (0) | 2012.06.14 |
[Linux] 리눅스의 배포판버전, 커널버전확인방법(rpm) (0) | 2012.06.14 |
[Linux] 리눅스 부팅과정 이해 (0) | 2012.06.14 |
[Linux] free (0) | 2012.06.14 |