如何在Linux操作系统下创建ISO镜像文件
2008-03-11 11:52:54 来源:WEB开发网核心提示: 1、用dd命令#dd if=/dev/cdrom of=/***/目的文件.iso上面的命令是在将光盘作成iso文件2、用mkisofs 命令#mkisofs -r -J -V 卷标名 -o 目的文件.iso 源文件上面的命令是将 “源文件” 文件及目录作成 “目的文件.iso”,例子 :# mkisofs -r -
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 查看。
- ››linux下两台服务器文件实时同步方案设计和实现
- ››如何检查oracle的归档空间是否满了
- ››如何在浏览器中打开PDF文件并实现预览的思路与代码...
- ››如何改Win7系统我的文档保存位置
- ››Linux文件描述符中的close on exec标志位
- ››Linux下管道使用的一些限制
- ››Linux 误删/usr/bin 解决方法
- ››linux 添加新用户并赋予sudo执行权限
- ››linux常用软件安装方法
- ››Linux的分区已经被你从Windows中删除,系统启动后...
- ››linux enable命令大全
- ››Linux实现基于Loopback的NVI(NAT Virtual Interfa...
更多精彩
赞助商链接