mkisofs(make iso file system)
mkisofs(make iso file system)功能说明:建立ISO 9660映像文件。
语 法:mkisofs [-adDfhJlLNrRTvz][-print-size][-quiet][-A <应用程序ID>][-abstract <摘要文件>][-b <开机映像文件>][-biblio <ISBN文件>][-c <开机文件名称>][-C <盘区编号,磁区编号>][-copyright <版权信息文件>][-hide <目录或文件名>][-hide-joliet <文件或目录名>][-log-file <记录文件>][-m <目录或文件名>][-M <开机映像文件>][-o <映像文件>][-p <数据处理人>][-P <光盘发行人>][-sysid <系统ID >][-V <光盘ID >][-volset <卷册集ID>][-volset-size <光盘总数>][-volset-seqno <卷册序号>][-x <目录>][目录或文件]
补充说明:mkisofs可将指定的目录与文件做成ISO 9660格式的映像文件,以供刻录光盘。
参 数:
-a或--all mkisofs通常不处理备份文件。使用此参数可以把备份文件加到映像文件中。
-A<应用程序ID>或-appid<应用程序ID> 指定光盘的应用程序ID。
-abstract<摘要文件> 指定摘要文件的文件名。
-b<开机映像文件>或-eltorito-boot<开机映像文件> 指定在制作可开机光盘时所需的开机映像文件。
-biblio<ISBN文件> 指定ISBN文件的文件名,ISBN文件位于光盘根目录下,记录光盘的ISBN。
-c<开机文件名称> 制作可开机光盘时,mkisofs会将开机映像文件中的全-eltorito-catalog<开机文件名称>全部内容作成一个文件。
-C<盘区编号,盘区编号> 将许多节区合成一个映像文件时,必须使用此参数。
-copyright<版权信息文件> 指定版权信息文件的文件名。
-d或-omit-period 省略文件后的句号。
-D或-disable-deep-relocation ISO 9660最多只能处理8层的目录,超过8层的部分,RRIP会自动将它们设置成ISO 9660兼容的格式。使用-D参数可关闭此功能。
-f或-follow-links 忽略符号连接。
-h 显示帮助。
-hide<目录或文件名> 使指定的目录或文件在ISO 9660或Rock RidgeExtensions的系统中隐藏。
-hide-joliet<目录或文件名> 使指定的目录或文件在Joliet系统中隐藏。
-J或-joliet 使用Joliet格式的目录与文件名称。
-l或-full-iso9660-filenames 使用ISO 9660 32字符长度的文件名。
-L或-allow-leading-dots 允许文件名的第一个字符为句号。
-log-file<记录文件> 在执行过程中若有错误信息,预设会显示在屏幕上。
-m<目录或文件名>或-exclude<目录或文件名> 指定的目录或文件名将不会房入映像文件中。
-M<映像文件>或-prev-session<映像文件> 与指定的映像文件合并。
-N或-omit-version-number 省略ISO 9660文件中的版本信息。
-o<映像文件>或-output<映像文件> 指定映像文件的名称。
-p<数据处理人>或-preparer<数据处理人> 记录光盘的数据处理人。
-print-size 显示预估的文件系统大小。
-quiet 执行时不显示任何信息。
-r或-rational-rock 使用Rock Ridge Extensions,并开放全部文件的读取权限。
-R或-rock 使用Rock Ridge Extensions。
-sysid<系统ID> 指定光盘的系统ID。
-T或-translation-table 建立文件名的转换表,适用于不支持Rock Ridge Extensions的系统上。
-v或-verbose 执行时显示详细的信息。
-V<光盘ID>或-volid<光盘ID> 指定光盘的卷册集ID。
-volset-size<光盘总数> 指定卷册集所包含的光盘张数。
-volset-seqno<卷册序号> 指定光盘片在卷册集中的编号。
-x<目录> 指定的目录将不会放入映像文件中。
-z 建立通透性压缩文件的SUSP记录,此记录目前只在Alpha机器上的Linux有效。
mkisofs
mkisofs [options] -o file pathspecs
Generate an ISO9660/Joliet/HFS filesystem
Options
Specify a text string id that describes the application to be written into the volume header.
Specify the abstract filename. Overrides an ABST=file entry in .mkisofsrc.
Allow ISO9660 filenames to be lowercase. Violates the ISO9660 standard.
Allow more than one dot in ISO9660 filenames. Violates the ISO9660 standard.
Specify the path and filename of the boot image to be used for making a bootable CD based on the El Torito specification.
Specify a comma-separated list of boot images needed to make a bootable CD for a Sun Sparc system.
Specify bibliographic filename. Overrides a BIBLIO=file entry in .mkisofsrc.
Specify that a 56-byte table with information on the CD layout is to be patched in at offset 8 of the boot file. If specified, the table is patched into the source boot file, so make a copy if the file isn't recreatable.
Specify the load segment address of the boot image for a no-emulation El Torito CD.
Specify the number of virtual 512-byte sectors to load in no-emulation mode. The default is to load the entire boot file. The number may need to be a multiple of 4 to prevent problems with some BIOSes.
Specify the path, relative to the source pathspec, and the filename of the boot catalog for an El Torito bootable CD. Required for making a bootable CD.
Required for creating a CDExtra or a second or higher-level session for a multisession CD. last-start is the first sector number in the last session on the disk, and next-start is the first sector number for the new session. Use the command:
cdrecord -msinfo
to get the values. Use -C with -M to create an image that is a continuation of the previous session; without -M, create an image for a second session on a CDExtra (a multisession CD with audio data in the first session and an ISO9660 filesystem image in the second).
Cache [do not cache] inode and device numbers to find hard links to files. The default on Linux is to cache. Use -no-cache-inodes for filesystems that do not have unique inode numbers.
Check all filenames imported from old sessions for mkisofs compliance with ISO9660 file-naming rules. If not specified, check only those files with names longer than 31 characters.
Check all old sessions for mkisofs compliance with ISO9660 file-naming rules. This option is the equivalent of:
-M file -C 0,0 -check-oldnames
where file is the pathname or SCSI device specifier that would be specified with -M.
Specify the name of the file that contains the copyright information. Overrides a COPY=file entry in .mkisofsrc.
Omit trailing period from files that do not have one. Violates the ISO9660 standard, but works on many systems.
Do not use deep directory relocation. Violates the ISO9660 standard, but works on many systems.
Specify the mode for directories used to create the image. Automatically enables the Rock Ridge extensions.
Start with a new set of El Torito boot parameters. Allows putting more than one El Torito boot image on a CD (maximum is 63).
Check filenames against the globs contained in the specified file and exclude any that match.
Follow symbolic links when generating the filesystem.
Specify the mode for files used to create the image. Automatically enables the Rock Ridge extensions.
Do not use automatic Rock Ridge detection for the previous session.
Specify the path and filename of the generic boot image for making a generic bootable CD.
Set the group ID to gid for the source files. Automatically enables the Rock Ridge extensions.
Allow the use of graft points for filenames, which permits paths to be grafted at locations other than the root directory. -graft-points checks all filenames for graft points and divides the filename at the first unescaped equals sign (=).
Switch the behavior for a GUI. Currently, the only effect is to make the output more verbose.
Specify that the boot image to be used to create an El Torito bootable CD is a hard disk image and must begin with a master boot record containing a single partition.
Set the hidden (existence) ISO9660 directory attribute for paths or filenames matching the shell-style pattern glob. To match a directory, the path must not end with a trailing /.
Specify a file containing a list of globs that are to be hidden with -hidden.
Find paths or files that match the shell-style pattern glob and hide them from being seen on the ISO9660 or Rock Ridge directory. The files are still included in the image file. If the pattern matches a directory, the contents of the directory are hidden. To match a directory, the path must not end with a trailing /. Use with the -hide-joliet option.
Hide paths or files that match the shell-style pattern glob so they will not be seen in the Joliet directory. If the pattern matches a directory, the contents of the directory are hidden. To match a directory, the path must not end with a trailing /. Should be used with -hide.
Specify a file containing a list of globs to be hidden with -hide-joliet.
Hide the TRANS.TBL files from the Joliet tree.
Specify a file containing a list of globs to be hidden with -hide.
Rename the directory RR_MOVED to .rr_moved to hide it as much as possible from the Rock Ridge directory tree. Use the -D option to omit the file entirely.
Specify the character set for characters used in local filenames. Specify help in place of a charset for a list of valid character sets.
Set the ISO9660 conformance level. Possible values are:
1 Filenames are restricted to 8.3 characters, and files may have only one section.
2 Files may have only one section.
3 No restrictions.
Generate Joliet directory records in addition to regular ISO9660 filenames.
The equivalent of -input-charset -J.
Allow full 31-character filenames instead of restricting them to the MS-DOS-compatible 8.3 format.
Allow ISO9660 filenames to begin with a period.
Send all messages to the specified logfile.
Exclude files matching the shell-style pattern glob.
Specify the path to an existing ISO9660 image to be merged. path can also be a SCSI device specified in the same syntax as cdrecord's dev= parameter. May be used only with -C.
Allow up to 37 characters in ISO9660 filenames. Forces -N. Violates the ISO9660 standard.
Omit version numbers from ISO9660 filenames. Violates the ISO9660 standard. Use with caution.
Specify the mode to use for new directories in the image. The default is 0555.
Do not include backup files on the ISO9660 filesystem.
Mark the El Torito CD to be created as not bootable.
Specify that the boot image for creating an El Torito bootable CD is a no-emulation image.
Do not translate the # and ~ characters. Violates the ISO9660 standard.
Do not use Rock Ridge attributes from previous sessions.
Do not split symlink components.
Do not split symlink fields.
Specify the filename of the output ISO9660 filesystem image.
Specify the output character set for Rock Ridge filenames. The default is the input character set.
Specify a text string of up to 128 characters describing the preparer of the CD. Overrides a PREP= parameter set in the file .mkisofsrc.
Specify a text string of up to 128 characters describing the publisher of the CD to be written to the volume header. Overrides a PUBL= parameter set in .mkisofsrc.
Pad [do not pad] the ISO9660 filesystem by 16 sectors (32 KB). If the resulting size is not a multiple of 16 sectors, add sectors until it is. The default is -pad.
Specify a file that contains a list of pathspec directories and filenames to add to the ISO9660 filesystem. Note that at least one pathspec must be given on the command line.
Print estimated filesystem size and exit.
Run in quiet mode; do not display progress output.
Like -R, but set UID and GID to zero, set all file read bits to write, and turn off all file write bits. If any execute bit is set for a file, set all execute bits; if any search bit is set for a directory, set all search bits; if any special mode bits are set, clear them.
Generate SUSP (System Use Sharing Protocol) and Rock Ridge records using the Rock Ridge protocol.
Allow ISO9660 filenames to include seven-digit ASCII characters except lowercase characters. Violates the ISO9660 standard.
Sort file locations according to the rules in the specified file, which contains pairs of filenames and weights, with one space or tab between them. A higher weight puts the file closer to the beginning of the media.
Specify the system ID. Overrides a SYSI= parameter set in the file .mkisofsrc.
Generate the file TRANS.TBL in each directory for establishing the correct filenames on non-Rock Ridge-capable systems.
Use table as the translation table name instead of TRANS.TBL. Implies -T. For a multisession image, the table name must be the same as the previous session.
Allow untranslated filenames. Violates the ISO9660 standard. Forces the following options: -d, -l, -L, -n, -relaxed-filenames, -allow-lowercase, -allow-multidot, -no-iso-translate. Use with extreme caution.
Set the Unicode conformance level to the specified number, which can be between 1 and 3 (default is 3).
Use file version numbers from the filesystem. The version number is a string from 1 to 32767. The default is to set a version of 1.
Run in verbose mode. Specify twice to run even more verbosely.
Specify the volume ID (volume name or label) to be written to the master block. Overrides a VOLI= parameter specified in the file .mkisofsrc.
Specify the volume set ID. Overrides a VOLS= parameter specified in .mkisofsrc.
Set the volume set sequence number to num. Must be specified after -volset-size.
Set the volume set size (the number of CDs in a set) to num. Must be specified before -volset-seqno.
Exclude path from being written to the CD, where path is the complete pathname derived from the concatenation of the pathname from the command line and the path relative to this directory. May be specified more than once to exclude multiple paths.
HFS options
Create an ISO9660 CD with Apple's extensions.
Set file as the Autostart file to make the HFS CD use the QuickTime 2.0 Autostart feature. file must be the name of an application or document at the top level of the CD and must be less than 12 characters long.
Install file as the driver file that may make the CD bootable on a Macintosh.
Specify the size in bytes of a cluster or allocation units of PC Exchange files.
Create a hybrid ISO9660/HFS CD. Use with -map, -magic, and/or the various --HFS options (see manpage).
"Bless" the specified directory (folder), specified as the full pathname to mkisofs. This is usually the System Folder and is used in creating HFS bootable CDs. The pathname must be in quotes if it contains spaces.
Set the four-character default creator for all files.
Set the four-character default type for all files.
Leave the HFS volume unlocked so other applications can modify it. The default is to lock the volume.
Specify the volume name for the HFS partition. This name is assigned to the CD on a Macintosh and replaces the ID set with the -V option.
Hide files or directories matching the shell-style pattern glob from the HFS volume, although they still exist in the ISO9660 and/or Joliet directory. May be specified multiple times.
The specified file contains a list of globs to be hidden.
Specify the input character set used for HFS filenames when used with the -mac-name option. The default is cp10000 (Mac Roman).
Use the HFS filename as the starting point for the ISO9660, Joliet, and Rock Ridge filenames.
Use the specified magic file to set a file's creator and type information based on the file's magic number, which is usually the first few bytes of the file. The magic file contains entries consisting of four tab-separated columns specifying the byte offset, type, test, and a message.
Use the specified mapping file to set a file's creator and type information based on the filename extension. Only files that are not known Apple or Unix file types need to be mapped. The mapping file consists of five-column entries specifying the extension, file translation, creator, type, and a comment. Creator and type are both four-letter strings.
Do not create empty Desktop files. The default is to create such files.
Specify the output character set used for HFS filenames. Defaults to the input character set.
Generate an HFS partition table. The default is not to generate the table.
Search the contents of files for known Apple or Unix file types.
Look for Macintosh files of the specified file format type. The valid formats are cap (Apple/Unix File System (AUFS) CAP files), netatalk, double, ethershare, ushare, exchange, sgi, xinet, macbin, single, dave, and sfm.