Linux mkisofs creating disc image files (Linux instruction learning notes)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.