Mkisofs command
The command for the system that created the disc file is mkisofs. The optical disk system is available in several formats and is created using the CD-ROM file system provided by the Linux system
Command Mkisofs, you can create multiple iso9660 file systems.
We don't normally use mkisofs to burn a disc directly, but use it to create a disc image file.
Mkisofs usage is as follows:
mkisofs [Options] [-o filename] pathspec[pathspec ...]
- o filename : The disc image file name.
pathspec: The file name, directory, or tree directory to be burned.
Options : various function parameters option.
If you want to see Mkisofs introduced in the centos6.4 system, we can export the contents of Mkisofs--help to a file for later viewing
The command is as follows:
Mkisofs--help >mkisofshelp.txt 2>&1
We can use mkisofs to burn an ISO file, as follows:
Because the ROCK RIDGE format is not specified, the content long file name is truncated to 8.3 format.
Rock Ridge: a ISO-9660 file system for UNIX systems that supports file name letter case, symbol characters , and long file names . Because of compatibility with ISO-9660, even if the operating system does not support Rock Ridge, it can be viewed ISO-9660.
Below we create an ISO file that supports Rock Ridge
To create an ISO file that can be started:
The command is:
Mkisofs-o My_boot.iso-r-B myboot_img Mycd_dir
Where myboot_img is the boot image file, it must be placed under the Mycd_dir directory.
Mount the ISO image file.
Command:mount-t iso9660-o loop my*iso.iso mydir If the Mydir directory exists
Removing the image file only needs to execute the umount command.
Unload the myiso you just mounted.
Command: umount/home/karllen/myiso