How to burn an image file to a DVD disc under Linux

  
                

When we are working on a Linux system, we need to burn the image file to a DVD, so what should we do? The following small series for everyone to introduce how to burn image files from the Linux command line to the DVD, let's learn together.

The two most common image file formats are ISO (.iso is the file extension) and NRG (.nrg is the file extension). The ISO format is a global standard created by ISO (International Standards Organization) and is therefore supported by most operating systems, which provides high portability. On the other hand, the NRG format is a proprietary format developed by Nero AG, a popular disk mirroring and burning software company.

How to answer the following from the Linux command line or .nrg burn .iso image to DVD.

Burning .ISO image files to DVD

To burn .iso image files to DVD, we will use the growisofs tool:

# growisofs -dvd-compat -speed= 4 -Z /dev/dvd1=WindowsXPProfessionalSP3Original.iso

In the above command line, the “-dvd-compat” option provides maximum media compatibility with DVD-ROM/-Video. In the context of a write-once DVD+R or DVD-R, it is not possible to add a record (turning off the disk).

“-Z /dev/dvd1=filename.iso” The option means that we burn the .iso file to the media selected in the device menu (/dev/dvd1).

“-speed=N” The parameter specifies the burning speed of the DVD burner, which is directly related to the ability to drive itself. “-speed=8” will be burned in 8x, “-speed=16” will be burned in 16x, and so on. Without this parameter, growisofs will be burned by default at the lowest speed, here 4x. You can choose the right burning speed based on the available speed and disk type of your recorder.

You can use this tutorial to find out the device name of your DVD burner and the write speed it supports. After

burning process is complete, the disk will automatically pop up.

Converting NRG images to ISO format

Since ISO is widely used, burning .iso images to CD/DVD is very simple. However, to burn a .nrg image you first need to convert it to .iso format.

To convert a .nrg image file to .iso format, you can use the nrg2iso tool. It is an open source program that converts images created by Nero Burning Rom to standard .iso (ISO9660) files.

Installing nrg2iso on Debian and its derivatives:

# aptitude install nrg2iso

Installing nrg2iso on a Red Hat-based distribution:

# Yum install nrg2iso

On CentOS/RHEL, you need to enable the Repoforge repository first, then install it via yum.

After installing nrg2iso package, using the following command to convert the image to .nrg .iso format:

# nrg2iso filename.nrg filename.iso

Conversion When finished, there will be a .iso file in the current directory:

integrity

check the burn media

check on this, you can burn a DVD Compare with the md5 checksum of the original .iso file to check the integrity of the recorded media. If the two are the same, you can rest assured that the recording is successful.

However, when you use nrg2iso to convert .nrg images to .iso format, you need to understand that the size of the .iso file created by nrg2iso is not a multiple of 2048 (usually, the size of the .iso file is Its multiple). Therefore, the conventional checksum comparison is different from the content of the .iso file and the burning medium.

On the other hand, if you have already burned an .iso image that was not converted from a .nrg file, you can use the following command to check the integrity of the data recorded to the DVD. Replace “/dev/dvd1” for your device name.

# md5sum filename.iso; dd if=/dev/dvd1 bs=2048 count=$(($(stat -c “%s” filename.iso) /2048))

Copyright © Windows knowledge All Rights Reserved