How to create ISO file in Linux | Arkit

Create ISO File In Linux using command Line Interface and its tools, without spending even a single cent from hand. Complete open-source solution or command-line utilities to create an ISO file.

mkisofs is capable of generating the System Use Sharing Protocol records (SUSP) specified by the Rock Ridge Interchange Protocol. This is used to further describe the files in the ISO9660 filesystem to a Unix host and provides information such as long filenames, UID/GID, POSIX permissions, symbolic links, and block and character device files. If Joliet or HFS hybrid command-line options are specified, mkisofs will create the additional filesystem metadata needed for Joliet or HFS. Otherwise, mkisofs will generate a pure ISO9660 filesystem.

Create ISO File In Linux using CLI

The required package is genisoimage

# yum install genisoimage

Normal ISO file creation using content

# mkisofs -o /opt/output.iso /mnt/CD-ROM

Write archive directory to a CD/DVD that will later contain a simple ISO9660 filesystem with the tar archive

$ tar cf - . | mkisofs -stream-media-size 330000 | \      wodim dev=b,t,l -dao tsize=330000 -

Create a CD/DVD with Rock Ridge extensions of the source directory where all files have at least read permissions

# mkisofs -o /home/generated.iso -r /dev/sr0

Bootable ISO file creation using mkisofs command

# mkisofs -A "RHEL7 Image Bootable" -J -R -v -T -b isolinux/isolinux.bin -c isolinux/ -no-emul-boot -boot-load-size 4 -boot-info-table -o /isofiles/bootableimage.iso .;

Options Explained

  • -A Application id
  • -J Generate Joliet directory records in addition to regular ISO9660 filenames.
  • -R Generate SUSP and RR records using the Rock Ridge protocol
  • -v Verbose
  • -T Generate a file TRANS.TBL in each directory on the CD-ROM
  • -b Eltorito_boot_image
  • -c  Boot catalog
  • -o Output file path

dd – Disk Dump create iso file in Linux

Convert and copy a file, using this dd command/tool we can dump CD-ROM content to Linux machine as .iso file

dd if=/dev/CD-ROM of=/opt/outputfile.iso
  • if – Input file path
  • of – Output file path
  • iso – ISO file

How to Mount ISO file in Linux

It’s so simple to mount an ISO file in Linux and see content in it

mkdir /tmp/mount_iso;mount -o loop /opt/outputfile.iso /tmp/mount_iso;

That’s it about Create ISO file In Linux using CLI tools.

Related Articles

For More Linux Articles

Thanks for your wonderful Support and Encouragement


My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

Leave a Reply

Your email address will not be published.