赛迪网 > IT技术 Linux > 最新更新
  IT资讯搜索
 
IT产品搜索
[程序开发][网管世界][网络安全][数据库技术]
[操作系统][嘉宾聊天·在线访谈][活动集锦]
[精彩专题][Symantec专区][订阅IT技术周刊]
[开发论坛][网管论坛][安全论坛][数据库论坛]
[操作系统论坛][Sybase专区][IBM dW技术专区]
[病毒求助][病毒与漏洞播报][文档·源码下载]

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

发布时间:2008.03.11 06:17     来源:赛迪网    作者:sixth

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 查看。

(责任编辑:云子)


[ 发表评论 ] 字体[  ] [ 打印 ] [ 进入博客 ] [ 进入论坛 ]  [ 推荐给朋友 ]
  相关文章
· NVIDIA Linux显卡驱动171.06发布 (03-10) · 如何在Linux操作系统下更改文件使用权限 (03-10)
· 在Linux操作系统下如何调整文件打开方式 (03-10) · OpenOffice.org从3.0将使用LGPL v3协议 (03-10)
· 美国科学家用16台Linux PS3模拟黑洞实验 (03-10) · 系统编译:如何给Make命令来传递参数 (03-07)
· Linux系统上安装ePSXe 1.6.0游戏模拟器 (03-07) · 在嵌入式Linux系统中应用的GTK+和X分析 (03-07)
· 软件推荐:开放源代码软件测试工具介绍 (03-07) · Linux configure关于交叉编译的参数设置 (03-07)
  客户需求反馈表
* 姓  名:
更多资料  了解方案  认识厂商
* 单位名称:
* 联系电话:
* 电子邮件:
  赛迪推荐  
  手机·资费 ·新品·导购·评测·手机资费·宽带
手机搜索  诺基亚 N73 MOTO Z6
  IT产品 ·笔记本·台式机·服务器·打印·投影
IT产品搜索 
  IT技术 ·开发·网管·安全·数据库·操作系统
  信息化 ·热点·专题·访谈·周刊·方案案例
· 信息化市场百家争鸣 SaaS深陷争议“泥潭”
· 提高管理水平 "两栖"CIO应具备的六大能力
· 国产ITIL运维先行者 四大厂商角力BI市场
· 金融行业GSN专题解决方案 企业网解决方案
  IT博客 ·曾剑秋·项立刚·Java学习·网管
  IT技术论坛 ·开发·网管·安全·数据库·系统