Linux   发布时间:2022-03-31  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了mkisofs命令大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

目录 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启动镜像(

mkisofs命令

?? Written by Zak Zhu

参考

mkisofs命令

命令格式

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.

其他参数,详见下面<自定义系统镜像>中的组合使用

自定义系统镜像

  1. 在vmware-workstation的虚拟机里,挂载光盘

    mount /dev/sr0 /mnt/cdrom

  2. 复制/mnt/cdrom里的文件到/tmp/custom/下

    cp -r /mnt/cdrom/* /tmp/custom/

  3. 根据需求编写ks.cfg

    vim /tmp/custom/isolinux/ks.cfg

  4. 赋予isolinux.bin执行和写权限

    chmod u+wx /tmp/custom/isolinux/isolinux.bin

  5. 用mkisofs制作ISO文件

    # Step 1
    cd /tmp/custom/
    
    # Step 2
    mkisofs -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命令所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: