How to detect the device name and writing speed of DVD burner under Linux

  

Nowadays computers have DVD burners, how do you know the name and writing speed of your computer's DVD burner? The following small series will introduce you to several ways to detect the name and writing speed of the DVD burner under Linux. Let's take a look at it.

Question: I want to know the name of my DVD burner and the speed at which it is burned. What Linux command line tool should I use to test the device name and speed of a DVD burner?

Most consumer PCs and laptops today come with a DVD burner. In Linux, the name of an optical drive, such as a CD/DVD drive, is named after the kernel is based on udev rules at boot time. There are several ways to detect the recorder's device name and its write speed.

method

to find related DVD burner device name The easiest way is to use the dmesg command-line tool, it prints out the kernel message buffer. In the output of dmesg, look for an installed DVD burner:

$ dmesg |  Egrep -i --color ‘dvd| Cd/rw| writer & rsquo;

output of the above command will tell you whether the detected DVD burner and the name of it was allocated on your Linux system. In this example, the device name of the DVD burner is “/dev/sr0”. Although this method won't tell you the write speed

Method 2

The second information to get your DVD burner is to use the lsscsi command, which just lists all available SCSI devices. .

Installing lsscsi on Debian Linux:

$ sudo apt-get install lsscsi

Installing on Red Hat Linux:

$ sudo yum install lsscsi

If successfully detected, lsscsi output of the command will tell you the name of the DVD burner:

$ lsscsi

it will not tell you to burn More details on the machine, such as write speed.

Method 3

The third information about your DVD burner is /proc/sys/dev/cdrom/info.

$ cat /proc/sys/dev/cdrom/info

CD-ROM information, Id: cdrom.c 3.20 2003/12/17drive name: sr0drive speed: 24drive # of slots: 1Can close tray: 1Can open tray: 1Can lock tray: 1Can change speed: 1Can select disk: 0Can read multisession: 1Can read MCN: 1Reports media changed: 1Can play audio: 1Can write CD-R: 1Can write CD-RW: 1Can read DVD: 1Can write DVD-R: 1Can write DVD-RAM: 1Can read MRW: 1Can write MRW: 1Can write RAM: 1

In this example, the output will tell you the DVD burner (/dev/sr0) Compatible with x24 CD burning speed (ie 24x153.6 Kbps) and equivalent to x3 DVD writing speed (ie 3x1385 KBps) compatible. The write speed here is the maximum possible speed, and the actual write speed is of course dependent on the medium used (eg DVD-RW, DVD+RW, DVD-RAM, etc.).

Method Four

Another way is to use a command line program called wodim. In most Linux distributions, this tool and its soft link cdrecord are installed by default.

# wodim -prcap (or cdrecord -prcap)

If you do not any arguments, wodim command will automatically detect the DVD burner, and shows detailed features and Its maximum read/write speed. For example, you can find out which media (such as CD-R, CD-RW, DVD-RW, DVD-ROM, DVD-R, DVD-RAM, audio CD) the recorder supports, and how to read/write speed. The output in the example above shows that the DVD burner has a maximum write speed of X24 for CDs and a maximum write speed of X3 for DVDs.

Note that the write speed reported by the wodim command changes as the CD/DVD media you insert into the DVD burner changes, reflecting the media specification.

Method 5

There is also a way to check the write speed of the DVD burner is a tool called dvd+rw-mediainfo, this is the dvd+rw toolkit (DVD+- Part of the RW/R Media Toolchain).

Installing dvd+rw-tools on a Debian-based distribution

$ sudo apt-get install dvd+rw-tools

Installing dvd on a Red Hat-based distribution +rw-tools:

$ sudo yum install dvd+rw-tools

Unlike other tools, the dvd+rw-mediainfo command does not produce any output unless you insert a DVD to burn In the machine. So, when you insert the DVD, run the following command. Replace “/dev/sr0” with your own device name.

$ sudo dvd + rw-mediainfo /dev /sr0

dvd + rw-mediainfo tool probe inserted media (in this case & ldquo; DVD-R & rdquo;), To find out the actual write speed to the media.

The above is the method for detecting the device name and writing speed of the DVD recorder under Linux. Some methods can only detect the device name of the DVD recorder, and can select the appropriate method to detect according to the requirements.

Copyright © Windows knowledge All Rights Reserved