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

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

Here is the command in Linux console

[[email protected] 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

[[email protected] dev]#


Tags: ,
  • bob

    Why use cat?


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

  • Anton Shevtsov (@AntonShevtsov)

    [email protected]:/proc$ cat /var/log/dmesg | grep ‘(CD|DVD|BD)’

    …nothing..

    [email protected]:/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’
    ————————————————————————-

Translate

Buy me a Caffè Latte

Thank you for the Caffè Latte

2013/02/15 saw art
2013/01/25 Parul Patel
2012/11/20 Barbara Nicholas $10
2012/10/08 Amy Stockman $5
2012/07/15 siewho chang $ 50
2012/06/08 Susan Hampton $10
2012/05/11 Chris Grima $10