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

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 作为虚拟光盘加载之后,也很正常。

NAMEmkisofs - create an hybrid ISO9660/JOLIET/HFS filesystemwith optional Rock Ridge attributes。SYNOPSISmkisofs [ 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 Ridgeprotocol to further describe the files on the iso9660 filesystem。-r This is like the -R option, but file ownership andmodes are set to more useful values。

The uid andgid are set to zero, because they are usually onlyuseful on the author's system, and not useful tothe client。All the file read bits are set true,so that files and directories are globally readableon the client。

If any execute bit is set for afile, set all of the execute bits, so that executa­bles are globally executable on the client。

If anysearch bit is set for a directory, set all of thesearch bits, so that directories are globallysearchable on the client。

All write bits arecleared, because the CD-Rom will be mounted read-only in any case。If any of the special mode bitsare set, clear them, because file locks are notuseful on a read-only file system, and set-id bitsare not desirable for uid 0 or gid 0。

When used onWin32, the execute bit is set on all files。 This isa result of the lack of file permissions on Win32and the Cygwin POSIX emulation layer。

See also-uid -gid, -dir-mode, -file-mode and -new-dir-mode。

更多的选项可以用 man mkisofs 查看。

全部

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值