참조 http://bunnyblog.tistory.com/337
1. cdrecord 설치하기 및 실행 (자세한 것은 아래 부분 참조)
다운로드 http://rpmfind.net/linux/rpm2html/search.php?query=cdrecord
336 rpm -ivh ./cdrecord-2.01-10.7.el5.x86_64.rpm
340 cdrecord -scanbus
cdrecord -v -eject speed=4 dev=0,0,0 -data cdimage.iso
2. mkisofs 설치하기
다운로드 http://rpmfind.net/linux/rpm2html/search.php?query=mkisofs&submit=Search+...&system=&arch=
346 rpm -ivh ./mkisofs-2.01-10.7.el5.x86_64.rpm
3. ISO 생성 및 버닝
365 mkisofs -help
366 mkisofs -R -o ./testuser.iso /home/testuser
372 mkdir /mnt/dvd-drive
373 mount ./testuser.iso -r -t iso9660 -o loop /mnt/dvd-drive
374 cd /mnt/dvd-drive/
375 ls
390 rpm -qi cdrecord-2.01-10.7.el5.x86_64
399 umount dvd-drive/
별첨 1. FTP 설치하기
295 service vsftpd status
300 service iptables status
301 service iptables stop
302 chkconfig iptables off
303 chkconfig ip6tables off
304 yum install -y vsftpd
305 service vsftpd start
306 chkconfig vsftpd on
307 cd /etc/vsftpd/
309 vi vsftpd.conf
310 service vsftpd restart
311 cd /etc
313 cd vsftpd
315 vi user_list
다른자료
▶ 커널에 EIDE CD-RW드라이브가 인식되었는지 확인
#> ls -l /dev/cdrom
lrwxr-xr-x 1 root root 9 9월 28 14:58 /dev/cdrom -> /dev/scd0
#>dmesg
SCSI subsystem driver Revesion : 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
vendor: SAMSUNG model: CD-R/RW SW-208B Rev:BS04
Type : CD-ROM ANSI SCSI revision: 02
#>cdrecord -scanbus
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'SAMSUNG ' 'CD-R/RW SW-232B ' 'R300' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
▶ HDD Data를 ISO이미지로 백업하기
#> mkisofs -R -o cdimage.iso /home/junix/
#> mkisofs -icode=cp949 -o test.iso -r -V TESTISO /mnt/movie/ani/
설명 : /home/junix/ 디렉토리를 cdimage.iso 라는 이름으로 이미지를 만듭니다.
-icode=cp949 : 한글 파일이름 인식 : mkisofs -icode help 참조
-o : 생성될 ISO 이미지 파일 이름
-J : Joliet, Rockridge 사용, 긴 파일의 이름이 가능해 진다.
-V : Volume ID 생성
▶ 굽기전에 CD 이미지(iso) 무결성 테스트
- 이 기능을 이용해서 CD를 굽기전에 테스트 해볼 수 있다.
#> mount cdimage.iso -r -t iso9660 -o loop /mnt/cdr
▶ ISO 이미지를 공시디에 레코딩하기
#> cdrecord -v -eject speed=4 dev=0,0,0 -data cdimage.iso
- dev 구조: dev= scsibus, target, lun [ dev=1,0 or dev=0,1,0 ]
( 대개 scsibus는 0번이며 , 이경우 그냥 target 과 lun 부분만을 적어도 됨.)
- target : 자기 레코더의 ID 번호
( 조회방법: cdrecord -scanbus 또는 eject /dev/scd0 )
-v : 레코딩 정보를 상세 출력
-eject : 레코딩 후 디스크 배출
speed=x : 레코딩 배속
▶ 이미지를 HDD에 만들지 않고 바로 레코딩하기
#> mkisofs -R /home/backup | cdrecord -v speed=4 dev=1,0 - [enter]
추가일반
Linux 에서 rpm 패키지 설치/삭제하기
rpm으로 프로그램을 설치하려면 우선적으로 이미 설치가 되어 있는지 확인을 해보아야 합니다.
mysql이 이미 설치되어 있는지 확인하기
$ rpm -qa | grep mysql
조회가 되면 다음 명령으로 삭제를 합니다.
$ rpm -e mysql-devel-5.0.77-4.el5_5.4
가끔 dependency로 인해 삭제가 안되는 경우에는 –nodeps 옵션을 사용하시면 됩니다.
$ rpm -e mysql-devel-5.0.77-4.el5_5.4 –nodeps(하이픈-2개)
* 조회 했을때 두개 이상이 동일하게 나올경우는 아래와 같은 메시지가 나옵니다.
오류: “mysql-devel-5.0.77-4.el5_5.4″ 여러개의 패키지를 지정합니다
이럴경우엔 –allmatches 옵셥을 사용하시면 삭제가 가능합니다.
$ rpm -e mysql-devel-5.0.77-4.el5_5.4 –nodeps –allmatches(하이픈-2개)
설치하실때는 아래와 같이 해주시면 됩니다.
$ rpm -ivh MySQL-server-5.5.9-1.linux2.6.x86_64.rpm (rpm파일명)
실행결과
[root@CSPC-SH home]# ls
chanwole cna-init-prod-40640.zip lost+found mysql nohup.out nsalogin setup.exe test_conf.iso testuser testuser.iso
[root@CSPC-SH home]# cdrecord -v speed=4 dev=3,0,0 -data ./test_conf.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (cpu-pc-linux-gnu) Copyright (C) 1995-2004 J?rg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
TOC Type: 1 = CD-ROM
scsidev: '3,0,0'
scsibus: 3 target: 0 lun: 0
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.1.83 04/05/20 Copyright 1997 J. Schilling').
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'Optiarc '
Identifikation : 'DVD RW AD-7580S '
Revision : 'FX04'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0009
Profile: 0x0012
Profile: 0x0015
Profile: 0x0016
Profile: 0x002B
Profile: 0x001B
Profile: 0x001A
Profile: 0x0014
Profile: 0x0013
Profile: 0x0011
Profile: 0x0010
Profile: 0x000A
Profile: 0x0009 (current)
Profile: 0x0008
Profile: 0x0002
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1895168 = 1850 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 1 MB
Total size: 1 MB (00:11.56) = 867 sectors
Lout start: 2 MB (00:13/42) = 867 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 4
Is not unrestricted
Is not erasable
ATIP start of lead in: -15145 (96:40/05)
ATIP start of lead out: 359849 (79:59/74)
Disk type: unknown dye (reserved id code)
Manuf. index: -1
Manufacturer: unknown (not in table)
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 358982
Starting to write CD/DVD at speed 10 in real TAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
trackno=0
BURN-Free is OFF.
Performing OPC...
Starting new track at sector: 0
Track 01: 1 of 1 MB written (fifo 100%) [buf 78%] 8.5x.
Track 01: Total bytes read/written: 1771520/1771520 (865 sectors).
Writing time: 11.517s
Average write speed 3.4x.
Fixating...
Fixating time: 32.641s
cdrecord: fifo had 28 puts and 28 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
[root@CSPC-SH home]#
추가 참고
Starting vncserver at boot
To start vncserver at boot, enter the command:
/sbin/chkconfig vncserver on
yum install vnc-server
RECENT COMMENT