快速业务通道

如何在Linux操作系统下创建ISO镜像文件

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-04

1、用dd命令

  #dd if=/dev/cdrom of=/***/目的文件.iso
  上面的命令是在将光盘作成iso文件

  2、用mkisofs 命令
  #mkisofs -r -J -V 卷标名 -o 目的文件.iso 源文件
  上面的命令是将 “源文件” 文件及目录作成 “目的文件.iso”.

  例子 :
  # mkisofs -r -J -V widebright -o widebright.iso /widebright

  在linux系统上建了一个iso文件,然后放到windows xp上,结果winrar能够正确解压,使用DAEMON Tools 作为虚拟光盘加载之后,也很正常.

NAME
mkisofs - create an hybrid ISO9660/JOLIET/HFS filesystem
with optional Rock Ridge attributes.

SYNOPSIS
mkisofs [ options ] [ -o filename ] pathspec [pathspec...]

注:
-J Generate Joliet directory records in addition to regular iso9660 file names.
主要是为了兼容windows系统.
卷标名——指所做成iso文件后插入虚拟光盘时所显示的名字.

-R Generate SUSP and RR records using the Rock Ridge
protocol to further describe the files on 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 executa­
bles 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 CD-Rom 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 file system, and set-id bits
are not desirable for uid 0 or gid 0. When used on
Win32, the execute bit is set on all files. This is
a result of the lack of file permissions on Win32
and the Cygwin POSIX emulation layer.See also
-uid -gid, -dir-mode, -file-mode and -new-dir-mode.


更多的选项可以用 man mkisofs 查看.
Empire CMS,phome.net

Empire CMS,phome.net

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号