Home > Article > Software Tutorial > How to burn image file to DVD disc from Linux command line
When using the Linux system, many users yearn for the powerful functions of the Linux system and its simplicity and ease of use. One of them is the operation of burning DVD under Linux system, so how to operate it? The editor has carefully compiled how to burn image files to DVD discs under Linux. I hope that friends in need can help. Specific details 1. Burn the .ISO image file to DVD. To burn the .iso image file to DVD, we will use growisofs tool: # growisofs -dvd-compat -speed=4 -Z /dev/dvd1=WindowsXPProfessionalSP3Original.iso In the above command line, the -dvd-compat option is provided Maximum media compatibility with DVD-ROM/-Video. In a write-once DVD+R or DVD-R context, causes the record to not be added (disk closed). The -Z /dev/dvd1=filename.iso option means that we burn the .iso file to the media selected in the device menu (/dev/dvd1). The -speed=N parameter specifies the burning speed of the DVD recorder, which is directly related to the capability of the driver itself. -speed=8 will burn at 8x, -speed=16 will burn at 16x, and so on. Without this parameter, growisofs will default to burning at the lowest speed, in this case 4x. You can choose the appropriate burning speed based on the available speeds of your recorder and disk type. 2. You can follow this tutorial to find out the device name of your DVD burner and the writing speed it supports.
3. After the burning process is completed, the disk will automatically eject.How to easily convert NRG image to ISO format? Converting NRG images to ISO format is an important step in burning CD/DVD, and this article will detail how to accomplish this conversion using a simple method. This article is carefully compiled by php editor Strawberry. The content includes: Understanding the difference between NRG and ISO formats Using a conversion tool to convert NRG to ISO Verifying the converted ISO file Burning the ISO image to a CD/DVD device
5. Put a .nrg image To convert files to .iso format, you can use the nrg2iso tool. It is an open source program used to convert images created by Nero Burning Rom to standard .iso (ISO9660) files.
6. Install nrg2iso on Debian and its derivatives:
Install nrg2iso on Red Hat-based distributions:
7. On CentOS/RHEL, you need to first Enable the Repoforge repository and install it through yum.
8. After installing the nrg2iso package, use the following command to convert the .nrg image to .iso format:
Regarding this, you can check the burned media by comparing the checksum of the burned DVD with the md5 checksum of the original .iso file of integrity. If both are the same, you can rest assured that the burning was successful.
11. However, when you use nrg2iso to convert the .nrg image 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 multiple). Therefore, the conventional checksum comparison shows that the contents of the .iso file and the burning media are different.
12. On the other hand, if you have 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 with your device name.
<code># md5sum filename.iso; dd if=/dev/dvd1 bs=2048 count=$(($(stat -c %s filename.iso) / 2048)) | md5sum</code>
13. The first part of the command calculates the md5 checksum of the .iso file, while the second part reads the disk contents in /dev/dvd1 and then outputs it to the md5sum tool through a pipeline. bs=2048 means that the dd command will check using 2048-byte blocks because the original iso file is divided in 2048 units.
If the values of the two md5 checksums are the same, it means that the burned media is valid.The above is the detailed content of How to burn image file to DVD disc from Linux command line. For more information, please follow other related articles on the PHP Chinese website!