How to list all drives in console ?

Here is the command in Linux console


[root@server dev]# cat /var/log/dmesg | egrep '(CD|DVD)'
hda: HL-DT-STDVD-ROM GDR-T10N, ATAPI CD/DVD-ROM drive
hda: ATAPI 24X DVD-ROM drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20

[root@server dev]#

Some people are looking for:

  • linux list dvd devices
  • dvd rom
  • linux list dvd drives
  • linux list optical drives
  • linux list dvd
  • dvd-rom
  • how to scan the cd/dvd rom in linux
Tags: ,
Tagged with:
 

2 Responses to How to list all DVD-ROM drives in Linux console ?

  1. bob says:

    Why use cat?


    $ egrep '(CD|DVD)' /var/log/dmesg

  2. Anton Shevtsov (@AntonShevtsov) says:

    bdstore@bdstore:/proc$ cat /var/log/dmesg | grep ‘(CD|DVD|BD)’

    …nothing..

    bdstore@bdstore:/proc$ wodim –devices
    wodim: Overview of accessible drives (3 found) :
    ————————————————————————-
    0 dev=’/dev/sg1′ rwrwrw : ‘PIONEER’ ‘BD-RW BDR-206′
    1 dev=’/dev/sg2′ rwrwrw : ‘PIONEER’ ‘BD-RW BDR-206′
    2 dev=’/dev/sg4′ rwrwrw : ‘PIONEER’ ‘BD-RW BDR-207′
    ————————————————————————-

Optimized by SEO Ultimate