mkisofs

Create ISO 9660 image file

Supplementary instructions

mkisofs command is used to make the specified directory and files into ISO 9660 format image files for burning discs.

grammar

mkisofs(options)(parameters)

Options

-a or --all: mkisofs usually does not process backup files. Use this parameter to add the backup file to the image file;
-A<Application ID> or -appid<Application ID>: Specify the application ID of the disc;
-abstract<abstract file>: Specify the file name of the abstract file;
-b<boot image file> or -eltorito-boot<boot image file>: Specify the boot image file required when making a bootable CD;
-biblio<ISBN file>: Specify the file name of the ISBN file. The ISBN file is located in the root directory of the disc and records the ISBN of the disc;
-c <boot file name>: When making a bootable CD, mkisofs will make the entire -eltorito-catalog <boot file name> in the boot image file into one file;
-C<Extent number, extent number>: This parameter must be used when combining many sections into one image file;
-copyright<copyright information file>: specifies the file name of the copyright information file;
-d or -omit-period: Omit the period after the file;
-D or -disable-deep-relocation: ISO 9660 can only handle directories with up to 8 layers. For those with more than 8 layers, RRIP will automatically set them to an ISO 9660-compatible format. Use the -D parameter to turn off this feature;
-f or -follow-links: ignore symbolic links;
-h: display help;
-hide <directory or file name>: Hide the specified directory or file in ISO 9660 or Rock Ridge Extensions systems;
-hide-joliet<directory or file name>: Hide the specified directory or file in the Joliet system;
-J or -joliet: Use directory and file names in Joliet format;
-l or -full-iso9660-filenames: Use ISO 9660 32-character filenames;
-L or -allow-leading-dots: Allow the first character of the file name to be a period;
-log-file <record file>: If there is an error message during execution, it will be displayed on the screen by default;
-m<directory or file name> or -exclude<directory or file name>: The specified directory or file name will not be included in the image file;
-M<image file> or -prev-session<image file>: merge with the specified image file;
-N or -omit-version-number: Omit the version information in the ISO 9660 file;
-o<image file> or -output<image file>: Specify the name of the image file;
-p<data processor> or -preparer<data processor>: the data processor of the recorded disc;
-print-size: Displays the estimated file system size;
-quiet: no information is displayed during execution;
-r or -rational-rock: Use Rock Ridge Extensions and open read permissions for all files;
-R or -rock: use Rock Ridge Extensions;
-sysid<system ID>: specifies the system ID of the disc;
-T or -translation-table: Create a translation table for file names, suitable for systems that do not support Rock Ridge Extensions;
-v or -verbose: Display detailed information during execution;
-V<disc ID> or -volid<disc ID>: specifies the volume set ID of the disc;
-volset-size <Total number of discs>: Specifies the number of discs included in the volume set;
-volset-seqno<Volume Serial Number>: Specifies the number of the disc in the volume set;
-x<directory>: The specified directory will not be placed in the image file;
-z: Create a SUSP record for transparent compressed files. This record is currently only valid for Linux on Alpha machines.

Parameters

Path: The path that needs to be added to the image file.

Example

Steps to use mkisofs command to make a file into ISO in Linux:

Mount the directory on the NFS server to the local /mnt/nfs/ directory:

mount -t nfs 10.0.2.2:/linuxos/rhel4.0_update3/ /mnt/nfs/

Copy the mounted files to local:

cp -a /mnt/NFS/* /root/Decp -a /mnt/nfs/* /root/Desktop/rhel4.0/&sktop/rhel4.0/&

Find the boot.cat file and delete it:

find rhel4.0/ -name boot.cat | xargs rm

Find the TRANS.TBL file and delete it:

find rhel4.0/ -name TRANS.TBL -exec rm {} \;

Copy the required local files to the specified directory:

cp /usr/share/comps/i386/.discinfo rhel4.0/

Make all files in the specified directory into ISO files:

mkisofs -R -J -T -v -no-emul-boot -boot-load-size 4 -boot-info-table -V RHEL4ASDVD -b isolinux/isolinux.bin -c isolinux/boot.cat -o /RHEL4AS. iso rhel4.0/