Using cdrecord
Published on Sep 05, 2016 by Sachin.
Logging commands for using cdrecord
. Might be useful.
Identifying an Optical device
cdrecord -scanbus
Sample output:
1: Cdrecord-ProDVD-ProBD-Clone 3.01a16 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2013 Joerg Schilling 2: Linux sg driver version: 3.5.34 3: Using libscg version 'schily-0.9'. 4: scsibus3: 5: 3,0,0 300) 'ATA ' 'Hitachi HDS72161' 'P22O' Disk 6: 3,1,0 301) * 7: 3,2,0 302) * 8: 3,3,0 303) * 9: 3,4,0 304) * 10: 3,5,0 305) * 11: 3,6,0 306) * 12: 3,7,0 307) * 13: scsibus4: 14: 4,0,0 400) 'HL-DT-ST' 'DVDRAM GSA-H42N ' 'RL00' Removable CD-ROM 15: 4,1,0 401) 'ATA ' 'ST340810A ' '5.33' Disk 16: 4,2,0 402) * 17: 4,3,0 403) * 18: 4,4,0 404) * 19: 4,5,0 405) * 20: 4,6,0 406) * 21: 4,7,0 407) *
Note that the Optical device/CD-ROM with the name ’HL-DT-ST’ ’DVDRAM GSA-H42N ’ ’RL00’ Removable CD-ROM is identified with 4,0,0 (also called the SCSI number)
Writing data to Optical device media
cdrecord -v -eject speed=48 dev=4,0,0 puppy_linux.iso
Where:
-v
Show verbose output.-eject
Eject the media after successfully finished writing.speed
An integer representing multiple of audio speed. Refer manpage for more info.dev
Device number.puppy_linux.iso
Path to the file.