Create and burn ISO images with mkisofs



    ISSN 1836-5930      

From Linux Config Wiki

Jump to: navigation, search

Contents

Detecting CD-ROM/DVD-ROM drive

If we are not sure which block device is our DVD-ROM or CD-ROM we can find out simply by running command:

# wodim -devices

If the wodim command is not available on your system make sure that package cdrecord is installed. After running wodim command you should get output similar to one below:

Image:mount_cdrom01.jpg

Well, now its clear that my CD/DVD-ROM burner drive is known by my system as block device /dev/hdc

Create a Image

Create iso file with label MY_HOME

$ mkisofs -J -v -r -o linuxconfig.iso -V MY_HOME /home/linuxconfig

Burn a Image

Burn the iso file to CD:

$ cdrecord dev=/dev/hdc -eject -v linuxconfig.iso

Replace /dev/hdc with your burner device.

Verify data

To verify data we can use a command readcd. This command comes with a package cdrecord and will verify data on your CD.

readcd -c2scan dev=/dev/hdc

Another way to verify your new cd is to check filesystem integrity with command star. Make sure you have star package installed. First mount cd:

# mount /dev/hdc /media/cdrom

Verify filesystem with star:

# cd /media/cdrom
# star -cPM . >/dev/null
Personal tools
Navigation
Linux Commands
Publications Archives