| 導購 | 订阅 | 在线投稿
分享
 
 
 

如何在Linux操作系統下創建ISO鏡像文件

來源:互聯網  2008-06-01 02:14:29  評論

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

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 查看。
󰈣󰈤
王朝萬家燈火計劃
期待原創作者加盟
 
 
 
>>返回首頁<<
 
 
 
 
 熱帖排行
 
王朝網路微信公眾號
微信掃碼關註本站公眾號 wangchaonetcn
 
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有