오픈 스택에서 운영할 CentOS 5버전의 이미지를 설치하기 위해 배포사이트에 방문했는데
iso 파일이 해당 버전은 1, 2로 나뉘어져 배포하고 있습니다.
그래서 iso 파일을 한개로 만드는 작업을 진행해야 하며 하단에 과정을 기술 하겠습니다.
- iso 파일 다운로드
root@jyh-con:~# wget http://ftp.daumkakao.com/centos/5.11/isos/i386/CentOS-5.11-i386-bin-DVD-1of2.iso
--2016-12-21 09:07:13-- http://ftp.daumkakao.com/centos/5.11/isos/i386/CentOS-5.11-i386-bin-DVD-1of2.iso
Resolving ftp.daumkakao.com (ftp.daumkakao.com)... 113.29.189.165
Connecting to ftp.daumkakao.com (ftp.daumkakao.com)|113.29.189.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4114038784 (3.8G) [application/x-iso9660-image]
Saving to: 'CentOS-5.11-i386-bin-DVD-1of2.iso'
CentOS-5.11-i386-bin-DVD-1of2.iso 100%[===================================================================================================================>] 3.83G 35.1MB/s in 2m 6s
2016-12-21 09:09:20 (31.1 MB/s) - 'CentOS-5.11-i386-bin-DVD-1of2.iso' saved [4114038784/4114038784]
root@jyh-con:~# wget http://ftp.daumkakao.com/centos/5.11/isos/i386/CentOS-5.11-i386-bin-DVD-2of2.iso
--2016-12-21 09:09:27-- http://ftp.daumkakao.com/centos/5.11/isos/i386/CentOS-5.11-i386-bin-DVD-2of2.iso
Resolving ftp.daumkakao.com (ftp.daumkakao.com)... 113.29.189.165
Connecting to ftp.daumkakao.com (ftp.daumkakao.com)|113.29.189.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 735852544 (702M) [application/x-iso9660-image]
Saving to: 'CentOS-5.11-i386-bin-DVD-2of2.iso'
CentOS-5.11-i386-bin-DVD-2of2.iso 100%[===================================================================================================================>] 701.76M 23.7MB/s in 27s
2016-12-21 09:09:54 (25.5 MB/s) - 'CentOS-5.11-i386-bin-DVD-2of2.iso' saved [735852544/735852544]
- loopback 마운트
root@jyh-con:~# ls /dev/loop
loop-control loop0 loop1 loop2 loop3 loop4 loop5 loop6 loop7
root@jyh-con:~# mkdir /mnt/disk1
root@jyh-con:~# mkdir /mnt/disk2
root@jyh-con:~# mount -o loop CentOS-5.11-i386-bin-DVD-1of2.iso /mnt/disk1
mount: /dev/loop0 is write-protected, mounting read-only
root@jyh-con:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 16411888 0 16411888 0% /dev
tmpfs 3292988 321868 2971120 10% /run
/dev/sda2 238313080 67857148 158327216 31% /
tmpfs 16464920 0 16464920 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 16464920 0 16464920 0% /sys/fs/cgroup
tmpfs 3292988 0 3292988 0% /run/user/1000
/dev/loop0 4017616 4017616 0 100% /mnt/disk1
root@jyh-con:~# mount -o loop CentOS-5.11-i386-bin-DVD-2of2.iso /mnt/disk2
mount: /dev/loop1 is write-protected, mounting read-only
root@jyh-con:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 16411888 0 16411888 0% /dev
tmpfs 3292988 321868 2971120 10% /run
/dev/sda2 238313080 67857268 158327096 31% /
tmpfs 16464920 0 16464920 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 16464920 0 16464920 0% /sys/fs/cgroup
tmpfs 3292988 0 3292988 0% /run/user/1000
/dev/loop0 4017616 4017616 0 100% /mnt/disk1
/dev/loop1 718606 718606 0 100% /mnt/disk2
- iso 파일 만들기
root@jyh-con:~# mkisofs -o CentOS-5.11-i386-bin-DVD.iso /mnt/disk1 /mnt/disk2
Using _DISC000.;1 for /.discinfo (.discinfo)
Using TRANS000.TBL;1 for /TRANS.TBL (TRANS.TBL)
Using RPM_G000.;1 for /RPM-GPG-KEY-beta (RPM-GPG-KEY-CentOS-5)
Using RELEA000.HTM;1 for /RELEASE-NOTES-ja.html (RELEASE-NOTES-nl.html)
Using RELEA000.;1 for /RELEASE-NOTES-en_US (RELEASE-NOTES-fr)
Using RELEA001.HTM;1 for /RELEASE-NOTES-nl.html (RELEASE-NOTES-ro.html)
Using RELEA001.;1 for /RELEASE-NOTES-fr (RELEASE-NOTES-es)
Using RELEA002.HTM;1 for /RELEASE-NOTES-ro.html (RELEASE-NOTES-es.html)
Using RELEA002.;1 for /RELEASE-NOTES-es (RELEASE-NOTES-cs)
Using RELEA003.HTM;1 for /RELEASE-NOTES-es.html (RELEASE-NOTES-de.html)
Using RELEA003.;1 for /RELEASE-NOTES-cs (RELEASE-NOTES-de)
Using RELEA004.HTM;1 for /RELEASE-NOTES-de.html (RELEASE-NOTES-pt_BR.html)
Using RELEA004.;1 for /RELEASE-NOTES-de (RELEASE-NOTES-nl)
Using RELEA005.HTM;1 for /RELEASE-NOTES-pt_BR.html (RELEASE-NOTES-cs.html)
Using RELEA005.;1 for /RELEASE-NOTES-nl (RELEASE-NOTES-pt_BR)
Using RELEA006.HTM;1 for /RELEASE-NOTES-cs.html (RELEASE-NOTES-fr.html)
Using RELEA006.;1 for /RELEASE-NOTES-pt_BR (RELEASE-NOTES-ro)
Using RELEA007.HTM;1 for /RELEASE-NOTES-fr.html (RELEASE-NOTES-en.html)
Using RELEA007.;1 for /RELEASE-NOTES-ro (RELEASE-NOTES-ja)
Using RELEA008.HTM;1 for /RELEASE-NOTES-en.html (RELEASE-NOTES-en_US.html)
Using RELEA008.;1 for /RELEASE-NOTES-ja (RELEASE-NOTES-en)
...
...
...
99.68% done, estimate finish Wed Dec 21 09:15:22 2016
99.89% done, estimate finish Wed Dec 21 09:15:22 2016
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 147456
Path table size(bytes): 98
Max brk space used 21e000
2367609 extents written (4624 MB)
- 확인
root@jyh-con:~# ll CentOS-5.11-i386-bin-DVD*
-rw-r--r-- 1 root root 4114038784 Sep 27 2014 CentOS-5.11-i386-bin-DVD-1of2.iso
-rw-r--r-- 1 root root 735852544 Sep 27 2014 CentOS-5.11-i386-bin-DVD-2of2.iso
-rw-r--r-- 1 root root 4848863232 Dec 21 09:15 CentOS-5.11-i386-bin-DVD.iso
- mount 해제
root@jyh-con:~# umount /dev/loop0
root@jyh-con:~# umount /dev/loop1