Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the Linux command line to detect the name and read and write speed of a DVD burner

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to use the Linux command line to detect the name of the DVD burner and the speed of reading and writing". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Method one

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

$dmesg | egrep-I-- color 'dvd | cd/rw | writer'

The output of the above command will tell you whether the DVD burner has been detected on your Linux system and the name it has been assigned. In this example, the device name of the DVD burner is "/ dev/sr0". Although this method will not tell you the write speed

Method two

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

Install lsscsi on a Debian Linux-based:

$sudo apt-get install lsscsi

Install on Red Hat Linux-based:

$sudo yum install lsscsi

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

$lsscsi

This will not tell you more details about the burner, such as the writing speed.

Method three

The third way to get information about your DVD burner is reference / proc/sys/dev/cdrom/info.

$cat / proc/sys/dev/cdrom/infoCD-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 case, the output tells you that the DVD burner (/ dev/sr0) is compatible with the CD burning speed of x24 (that is, 24x153.6 Kbps) and is equivalent to the DVD write speed of x3 (that is, 3x1385 KBps). The write speed here is the maximum possible speed, and the actual write speed certainly depends on the media used (for example, DVD-RW, DVD + RW, DVD-RAM, etc.).

Method 4

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

# wodim-prcap (or cdrecord-prcap)

If called without any arguments, the wodim command automatically detects the DVD burner and shows the detailed functionality and its maximum read / write speed. For example, you can find out which media the burner supports (such as CD-R, CD-RW, DVD-RW, DVD-ROM, DVD-R, DVD-RAM, audio CD) and how to read / write speed. The output in the above example shows that the DVD burner has a maximum write speed of X24 for CD and X3 for DVD.

It is important to note that the write speed reported by the wodim command changes with the CD/DVD media you insert into the DVD burner, which reflects the media specification.

Method five

Another way to check the write speed of a DVD burner is a tool called dvd+rw-mediainfo, which is part of the dvd+rw toolkit (DVD+-RW/R media tool chain).

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

$sudo apt-get install dvd+rw-tools

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

$sudo yum install dvd+rw-tools

Unlike other tools, the dvd+rw-mediainfo command will not produce any output unless you insert the DVD disc into the burner. So, when you insert the DVD CD, run the following command. Replace "/ dev/sr0" with your own device name.

$sudo dvd+rw-mediainfo / dev/sr0

This is the end of the content of "how to use the Linux command line to detect the name and read and write speed of a DVD burner". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report