歡迎您光臨本站 註冊首頁

linux使用mkisofs製作啟動鏡像

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0

1、啟動光碟參數

-no-emul-boot
Boot image is 'no emulation' image
非模擬模式啟動

-b <開機映像文件>
or
-eltorito-boot <開機映像文件>
指定在製作啟動光碟時所需的開機映像文件
-b:啟動image

-c <開機文件名稱>
-c:cat文件
製作啟動光碟時,mkisofs會將開機映像文件中的全-eltorito-catalog*文 件的全部內容作成一個文件

-J或-joliet
Generate Joliet directory information
生成Joliet 格式信息
Joliet是用於在 Windows 環境下使用的光碟

-R或-rock
Generate Rock Ridge directory information
生成Rock Ridge目錄格式信息
Rock Ridge用於 UNIX/Linux 環境下的光碟.
文件名區分大小寫,同時記錄文件長度

-r或-rational-rock
使用Rock Ridge
並開放全部文件的讀取許可權

2、命令如下

#mount ubuntu-10.04.1-server-amd64.iso /mnt -o loop

#cp -rT /mnt/ /home/custom-ubuntu/iso <關鍵參數-rT>

#cd /home/custom-ubuntu/iso

修改要修改的

#IMAGE=custom.iso

#BUILD=/home/custom-ubuntu/iso

# mkisofs -r -V "Custom ISO" -cacahe-inodes -J -l -b iso/isolinux/isolinux.bin -c iso/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o $IMAGE $BUILD

3.

1、去掉-d選項,解決Warning: creating filesystem that does not conform to ISO-9660.

2、增加-input-charset UTF-8,解決INFO: UTF-8 character encoding detected by locale settings.

3、在句尾"-o /dada/boot/boot.iso"之後增加". "變成"-o /dada/boot/boot.iso ." ,解決mkisofs: Missing pathspec.

本文出自 「學習linux」 博客,請務必保留此出處http://tonychiu.blog.51cto.com/656605/551347


[火星人 ] linux使用mkisofs製作啟動鏡像已經有1489次圍觀

http://coctec.com/docs/linux/show-post-48834.html