· [Java论坛][安全论坛][数据库论坛][操作系统论坛]
· [专题] IBM Rational高峰论坛 Windows 7十大功能
· [专题] 史上就危险7月 微软 BizSpark 计划介绍
· [IT技术周刊][IT资源下载专区][病毒求助专区]
· [热点] 我也能做CTO_赛迪连载 赛迪七夕特别行动
· [热点] Chrome 4.0采用V8引擎 Java开发编程规范

如何在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)
  客户需求反馈表
* 姓  名:
更多资料  了解方案  认识厂商
* 单位名称:
* 联系电话:
* 电子邮件:
资讯 通信 IT产品 IT技术 信息化
专题:扭亏为盈 联想09年Q2翻番
·专题:Tech·Ed 2009微..
·直播:2009互联网大会..
·迅雷搜狐"互搏" 谁动了..
专题:诺基亚危局已现 或重蹈摩托覆辙
·六股势力角逐4G标准 中..
·专题:联通iPhone并不贵..
·专题:排排坐开商店 三..
商务演示需求分析 多媒体会议室必备投影
·VMware在京隆重举行2009..
·专题:笔记本频道10月热..
·专题:学生机市场 惠普 ..
专题:Tech.Ed 2009微软技术大会
·专题:2009 SYBASE 亚太..
·专题:微软新一代桌面操..
·专题:2009年第3届CSDN..