← 返回命令列表

Linux command

mkisofs 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

mkisofs -o [filename.iso] [path/to/source_directory]

Example

mkisofs -o [filename.iso] -V "[label_name]" [path/to/source_directory]

Example

mkisofs -o [filename.iso] -R [path/to/source_directory]

Example

mkisofs -o [filename.iso] -J [path/to/source_directory]

Example

mkisofs -o [filename.iso] -b [boot_image] [path/to/source_directory]

Exclude files

mkisofs -o [filename.iso] -m "*.bak" [path/to/source_directory]

说明

mkisofs (also known as genisoimage) is a pre-mastering utility that generates ISO9660, Joliet, and HFS hybrid filesystem images. It creates binary images suitable for writing to CDs, DVDs, or other optical media. The tool supports Rock Ridge extensions for Unix file attributes, Joliet extensions for Windows long filenames, El Torito for bootable media, and Apple HFS hybrid filesystems. It processes directory trees without directly communicating with disc writers.

参数

-o _filename_
Specify output file location for the ISO image
-V _volid_
Set volume identifier; maximum 32 characters
-R
Generate Rock Ridge SUSP records for Unix file attributes
-r
Like -R but normalizes ownership and permissions globally
-J
Add Joliet directory records for Windows long filename support
-l
Allow full 31-character filenames (not MS-DOS compatible)
-b _boot_image_
Specify El Torito boot image path relative to the source directory.
-no-emul-boot
Use no-emulation boot mode (boot image is not a floppy image).
-boot-info-table
Insert boot information table at offset 8 in boot image
-m _glob_
Exclude files matching shell wildcard pattern
-graft-points
Allow custom directory grafting with path=source syntax
-hide _glob_
Hide files from ISO9660 and Rock Ridge directory trees
-hide-joliet _glob_
Hide files from Joliet tree only
-udf
Generate a UDF filesystem in addition to ISO9660.
-quiet
Minimize verbose output.
-print-size
Calculate and display filesystem size in sectors.

FAQ

What is the mkisofs command used for?

mkisofs (also known as genisoimage) is a pre-mastering utility that generates ISO9660, Joliet, and HFS hybrid filesystem images. It creates binary images suitable for writing to CDs, DVDs, or other optical media. The tool supports Rock Ridge extensions for Unix file attributes, Joliet extensions for Windows long filenames, El Torito for bootable media, and Apple HFS hybrid filesystems. It processes directory trees without directly communicating with disc writers.

How do I run a basic mkisofs example?

Run `mkisofs -o [filename.iso] [path/to/source_directory]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _filename_ do in mkisofs?

Specify output file location for the ISO image