linux下创建可引导的iso文件

最近在为自己公司开发的产品做iso光盘,打算把我们的网络监控产品跟linux系统集成到一起安装,所以就把别人发布的iso解压出来修改光盘里的配置和initrd后,又把它做回iso了。

linux就是好,做iso的软件也是免费的,linux下的mkisofs程序可以制作iso文件和解压iso文件。把我做ISO的时候参考的内容直接引用过来,希望对大家有帮助 🙂

Creating bootable ISO : Linux, Solaris, Windows

Whenever you’re automating OS deployments, you will at one point require to build a custom ISO, with your own kickstart, jumpstart or an OEM folder with apps and instructions to boot.

Here are three mkisofs commands that you can use for each OS, and to ease your search a little.

Linux

mkisofs -q -V VOLUME_NAME -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -T -o /LinuxISO.iso .

Solaris

mkisofs -b boot/grub/stage2_eltorito -c .catalog -no-emul-boot -boot-load-size 4 -boot-info-table -relaxed-filenames -l -ldots -r -N -d -D -V VOLUME_NAME -o /SolarisISO.iso .

Windows

mkisofs -q -b Bootable_NoEmulation.img -no-emul-boot -boot-load-seg 1984 -boot-load-size 4 -iso-level 2 -J -joliet-long -l -D -relaxed-filenames -N -V VOLUME_NAME -o /WindowsISO.iso .

Leave a comment

Your email address will not be published. Required fields are marked *