본문 바로가기

리눅스

[리눅스] ISO 이미지 생성하기(mkisofs)

728x90

ISO 이미지 생성하기(mkisofs)

ISO 이미지 생성

mkisofs -o letsencrypt.iso /mnt

$ mkisofs -r -T -J -V "letsencrypt" -o letsencrypt.iso /tmp/letsencrypt
I: -input-charset not specified, using utf-8 (detected in locale settings)
 20.88% done, estimate finish Thu Mar 24 18:52:05 2022
 41.78% done, estimate finish Thu Mar 24 18:52:07 2022
 62.61% done, estimate finish Thu Mar 24 18:52:06 2022
 83.50% done, estimate finish Thu Mar 24 18:52:06 2022
Total translation table size: 1174
Total rockridge attributes bytes: 1369
Total directory bytes: 6144
Path table size(bytes): 50
Max brk space used 22000
23964 extents written (46 MB)


$ ls -lh letsencrypt.iso
-rw-r--r-- 1 root root 47M  3월 24 18:52 letsencrypt.iso

ISO 이미지 마운트

mount -t iso9660 -o loop [파일명.iso] /[mountpoint]

mount -t iso9660 -o loop letsencrypt.iso /mnt

$ mount -t iso9660 -o loop letsencrypt.iso /mnt
mount: /dev/loop0 is write-protected, mounting read-only


$ mount | grep iso9660
/tmp/letsencrypt.iso on /mnt type iso9660 (ro,relatime)


$ ls -l /mnt/
합계 1
-r--r--r-- 1 root root 216  3월 24 18:52 TRANS.TBL

 

728x90