How To Write ISO Into Cd In Linux? – POFTUT

How To Write ISO Into Cd In Linux?


Writing CD is an old fashion but a lot of server hardware all ready use CD-ROM. Writing ISO files into CD-ROM from bash can seem very hard job. But it is not as hard as it seem.

Install Mkisofs, Cdrecord

We will install tools named mkisofs and cdrecord into our system. Apt and Yum package installation is below.

Debian, Ubuntu, Mint, Kali

We can install mkisofs and cdrecord tools with the following commands In Debian, Ubuntu, Mint, Kali.

$sudo apt-get install mkisofs cdrecord

CentOS, Fedora, RHEL

We can install mkisofs and cdrecord tools with the following commands In CentOS, Fedora, RHEL.

$ sudo yum install mkisofs cdrecord

List Cdrom Devices

We need to get CDROM device major and minor numbers. We will use cdrecord toll for this information. We will also provide the CDROM device type which is ATA in this example.

$ sudo cdrecord dev=ATA: -scanbus

Write ISO File Into CD By Specifying Write Speed

We will provide major, minor numbers of the device and use these numbers to specify target CDROM

$ sudo cdrecord -dev=ATA:1,1,0 speed=4 ubuntu.iso

Following options can be used to change the command behavior like speed, verbosity, and device

  • speed=4 is the writing speed f the CDROM
  • -dev=ATA:1,1,0 specify target cdrom device

Verbose Write Operation

In some cases there may be some problem with writing CD or we may need to get more detailed information about the write operation. We can use -v option in order to print verbose information about the writer.

$ sudo cdrecord -v -dev=ATA:1,1,0 ubuntu.iso

LEARN MORE  Linux KVM/Qemu Virt-Customize Tutorial

Leave a Comment