在linux中如何将某个目录制作成iso镜像
时间:2019-08-20 17:58:08 来源:igfitidea点击:
在linux下创建目录的iso镜像
ISO文件是CD/DVD等光盘的存档文件。ISO名称取自ISO 9660。
在Linux中,我们可以为目录创建.iso镜像,获取文件系统中所需目录的存档。
它还有一个优点,可以将镜像刻入CD或者DVD光盘进行保存。或者可以使用“mount-o loop”命令将iso文件装入其他目录。
示例 使用mkisofs命令创建目录的iso文件。
Hyman@theitroad:/home/Hyman/Desktop$ sudo mkisofs -o backup.iso data/ [sudo] password for linux: I: -input-charset not specified, using utf-8 (detected in locale settings) 8.31% done, estimate finish Wed Jul 10 13:32:17 2015 16.62% done, estimate finish Wed Jul 10 13:32:11 2015 24.91% done, estimate finish Wed Jul 10 13:32:09 2015 33.23% done, estimate finish Wed Jul 10 13:32:08 2015 41.53% done, estimate finish Wed Jul 10 13:32:07 2015 49.83% done, estimate finish Wed Jul 10 13:32:07 2015 58.15% done, estimate finish Wed Jul 10 13:32:08 2015 66.43% done, estimate finish Wed Jul 10 13:32:08 2015 74.75% done, estimate finish Wed Jul 10 13:32:07 2015 83.05% done, estimate finish Wed Jul 10 13:32:07 2015 91.35% done, estimate finish Wed Jul 10 13:32:07 2015 99.65% done, estimate finish Wed Jul 10 13:32:07 2015 Total translation table size: 0 Total rockridge attributes bytes: 0 Total directory bytes: 3004 Path table size(bytes): 26 Max brk space used 0 60214 extents written (117 MB) Hyman@theitroad:/home/Hyman/Desktop$ Hyman@theitroad:/home/Hyman/Desktop$ ls -l backup.iso -rw-r–r– 1 root root 123318272 Jul 10 13:32 backup.iso Hyman@theitroad:/home/Hyman/Desktop$ date Wed Jul 10 13:32:32 IST 2015 Hyman@theitroad:/home/Hyman/Desktop$