目录
mkisofs命令 参考 mkisofs命令 自定义系统镜像 mkisofs命令 ?? Written by Zak Zhu 参考 鸟哥私房菜(http://cn.linux.vbird.org/linux_basic/0240tarcompress_5.php) loveaborn/用mkisofs命令制作redhat enterprise linux (RHEL6.4) ISO启动镜像(https://www.linuxidc.com/Linux/2013-08/88967.htm) macg/mkisofs------制作iso文件(http://blog.sina.com.cn/s/blog_6151984a0100fqmy.html) Red Hat Installation GuIDe--2.4.2(https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html-single/installation_guide/index) mkisofs命令命令格式mkisofs - create iso9660/JolIEt/HFS filesystem with optional Rock RIDge attributes
mkisofs [options] <-o cd.iso> pathspec ...参数注释
参数 | 注释 |
---|---|
-R | Generate SUSP and RR records using the Rock RIDge protocol to further describe the fileson the iso9660 filesystem. |
-r | This is like the -R option,but file ownership and modes are set to more useful values. The uID and gID are set to zero,because they are usually only useful on the author‘s system,and not useful to the clIEnt. All the file read bits are set true,so that files and directorIEs are globally readable on the clIEnt. If any execute bit is set for a file,set all of the execute bits,so that executables are globally executable on the clIEnt. If any search bit is set for a directory,set all of the search bits,so that directorIEs are globally searchable on the clIEnt. All write bits are cleared,because the filesystem will be mounted read-only in any case. If any of the special mode bits are set,clear them,because file locks are not useful on a read-only filesystem,and set-ID bits are not desirable for uID 0 or gID 0. |
其他参数,详见下面<自定义系统镜像>中的组合使用
自定义系统镜像在vmware-workstation的虚拟机里,挂载光盘
mount /dev/sr0 /mnt/cdrom
复制/mnt/cdrom里的文件到/tmp/custom/下
cp -r /mnt/cdrom/* /tmp/custom/
根据需求编写ks.cfg
vim /tmp/custom/isolinux/ks.cfg
赋予isolinux.bin执行和写权限
chmod u+wx /tmp/custom/isolinux/isolinux.bin
用mkisofs制作ISO文件
# Step 1cd /tmp/custom/# Step 2mkisofs -R -J -T -v -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /tmp/custom.iso /tmp/custom
上述步骤是根据参考内容总结出来的,我没有做验证. 我等以后有需求再做验证,如果有道友根据我写的步骤实现了需求,请留言告知,万分谢谢 !!
总结以上是内存溢出为你收集整理的mkisofs命令全部内容,希望文章能够帮你解决mkisofs命令所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)