require wodim
scan optical devices
wodim -scanbus
wodim --devices
e.g.
ubuntu@ubuntu:~$ wodim -scanbus
scsibus4:
4,0,0 400) 'MATSHITA' 'DVD-RAM UJ-862 ' 'RB01' Removable CD-ROM
4,1,0 401) *
4,2,0 402) *
4,3,0 403) *
4,4,0 404) *
4,5,0 405) *
4,6,0 406) *
4,7,0 407) *
ubuntu@ubuntu:~$ wodim --devices
wodim: Overview of accessible drives (1 found) :
-------------------------------------------------------------------------
0 dev='/dev/sg1' rwrw-- : 'MATSHITA' 'DVD-RAM UJ-862'
-------------------------------------------------------------------------
use show in accessible drives
device. this env; dev='/dev/sg1'
use wodim -v -eject dev=/dev/xxN image.iso
, e.g.
ubuntu@ubuntu:~$ wodim -v -eject dev=/dev/sg1 knoppix_v7.0.2DVD_20120530-20120615.iso
option | meaning |
---|---|
-v |
verbosely. display writing progress |
-eject |
eject disc after burning |
dev=DRIVE |
target device for burning |
these options not necessary, as you like. i.e. minimal cmd wodim image.iso
, e.g.
ubuntu@ubuntu:~$ wodim knoppix_v7.0.2DVD_20120530-20120615.iso
use cmp --print-bytes --verbose /dev/DRIVE image.iso
, e.g.
ubuntu@ubuntu:~$ cmp --print-bytes --verbose /dev/cdrw knoppix_v7.0.2DVD_20120530-20120615.iso
ubuntu@ubuntu:~$ # noerror, i.e. writing succeeded
if you like short option, use cmp -b -l /dev/DRIVE image.iso
option | meaning |
---|---|
--print-bytes -b |
display differing bytes |
--verbose -l |
display differing byte number and value |
It is proof of the success that nothing is displayed