Burning CD or DVD from command line: Can't find device!
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've figured almost everything out - really an excellent tutorial for a beginner... - iso images, mounting and reading the files and directories in the iso file, etc.
I'm having trouble identifying the location or coordinates of my CD/DVD burner/player device:
Code:
[linux@localhost ~]$ cdrecord -scanbus
Cdrecord-ProDVD-Clone 2.01.01a11 (i686-pc-linux-gnu) Copyright (C) 1995-2006 J�rg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
[linux@localhost ~]$ cdrecord dev=help -scanbus
Cdrecord-ProDVD-Clone 2.01.01a11 (i686-pc-linux-gnu) Copyright (C) 1995-2006 J�rg Schilling
Supported SCSI transports for this platform:
Transport name: sg
Transport descr.: Generic transport independent SCSI
Transp. layer ind.:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported
Transport name: pg
Transport descr.: SCSI transport for ATAPI over Parallel Port
Transp. layer ind.:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported
Transport name: ATA
Transport descr.: ATA Packet specific SCSI transport
Transp. layer ind.: ATAPI:
Target specifier: bus,target,lun
Target example: ATAPI:1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported
Transport name: ATA
Transport descr.: ATA Packet specific SCSI transport using sg interface
Transp. layer ind.: ATA:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported
Transport name: RSCSI
Transport descr.: Remote SCSI
Transp. layer ind.: REMOTE:
Target specifier: rscsi@host:bus,target,lun
Target example: REMOTE:rscsi@host:1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported
[linux@localhost ~]$ cdrecord dev=help -scanbus
Cdrecord-ProDVD-Clone 2.01.01a11 (i686-pc-linux-gnu) Copyright (C) 1995-2006 J�rg Schilling
Supported SCSI transports for this platform:
Transport name: sg
Transport descr.: Generic transport independent SCSI
Transp. layer ind.:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported
Transport name: pg
Transport descr.: SCSI transport for ATAPI over Parallel Port
Transp. layer ind.:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported
Transport name: ATA
Transport descr.: ATA Packet specific SCSI transport
Transp. layer ind.: ATAPI:
Target specifier: bus,target,lun
Target example: ATAPI:1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported
Transport name: ATA
Transport descr.: ATA Packet specific SCSI transport using sg interface
Transp. layer ind.: ATA:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported
Transport name: RSCSI
Transport descr.: Remote SCSI
Transp. layer ind.: REMOTE:
Target specifier: rscsi@host:bus,target,lun
Target example: REMOTE:rscsi@host:1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported
[linux@localhost ~]$ cdrecord dev=ATA -scanbus
Cdrecord-ProDVD-Clone 2.01.01a11 (i686-pc-linux-gnu) Copyright (C) 1995-2006 J�rg Schilling
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Warning: Using badly designed ATAPI via /dev/hd* interface.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
scsibus1:
1,0,0 100) 'ATAPI ' 'DVD RW 8XMax ' '160D' Removable CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *
[linux@localhost ~]$
When I try to simulate a burn using dev=1,0,0, and some other possibilities (ridiculous choices, but I was getting a bit frustrated!), I get the following:
Code:
[root@localhost kernel]# cdrecord dev=1,0,0 speed=2 fs=32m -v -eject -dummy/home/linux/isofiles/SVG070629-LNX.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-ProDVD-Clone 2.01.01a11 (i686-pc-linux-gnu) Copyright (C) 1995-2006 J�rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
cdrecord: No such file or directory. Cannot open '/dev/sg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
[root@localhost kernel]# cdrecord dev=1,2,0 speed=2 fs=32m -v -eject -dummy /home/linux/isofiles/SVG070629-LNX.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-ProDVD-Clone 2.01.01a11 (i686-pc-linux-gnu) Copyright (C) 1995-2006 J�rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '1,2,0'
scsibus: 1 target: 2 lun: 0
cdrecord: No such file or directory. Cannot open '/dev/sg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
[root@localhost kernel]# cdrecord dev=ATA speed=2 fs=32m -v -eject -dummy /home/linux/isofiles/SVG070629-LNX.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-ProDVD-Clone 2.01.01a11 (i686-pc-linux-gnu) Copyright (C) 1995-2006 J�rg Schilling
TOC Type: 1 = CD-ROM
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Warning: Using badly designed ATAPI via /dev/hd* interface.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
SCSI buffer size: 32768
atapi: -1
cdrecord: Cannot do inquiry for CD/DVD-Recorder.
cdrecord: Input/output error. test unit ready: scsi sendcmd: fatal error
CDB: 00 C0 00 00 00 00
cmd finished after 0.000s timeout 40s
[root@localhost kernel]# cdrecord dev=ATAPI speed=2 fs=32m -v -eject -dummy /home/linux/isofiles/SVG070629-LNX.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-ProDVD-Clone 2.01.01a11 (i686-pc-linux-gnu) Copyright (C) 1995-2006 J�rg Schilling
TOC Type: 1 = CD-ROM
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
[root@localhost kernel]#
Any idea what I need to do to get this simulation working?
And, what's the difference between TAO and DAO? How do I specify which one I want? What's the best choice here? Any other suggestions?
The first error pops up because of the way that the device is addressed - i.e. /dev/xxx - it's unsupported but works. Did you try dev=ATAPI:1,0,0 (since the scan command reported atapi device)?
The other errors are disk/media errors. Could be bad media.
The above is from my Mandriva box. I just tried it on Debian, and it's slightly different. "-J" didn't work, I had to use "-joliet-long" instead. I tried using "dev=ATAPI:0,0,0" and it said to use OLDATAPI, so I used "dev=OLDATAPI:0,0,0" and it worked... Well, it's burning right now so I haven't actually tested the DVD yet. The numbers or reference or location or what-have-you... in Mandriva was 1,0,0 and in Debian 0,0,0... unless I'm mistaken... It's actually the same computer, I have 3 Linux OSs and Windows on it... Is this normal? I mean, that it be 1,0,0 on Mandriva and 0,0,0 on Debian?
No, something went wrong this time round (on Debian). The DVD is readable on my Debian OS, but not on my FC6 laptop! I've had this problem before. Here's what I did:
Code:
debian:/home/linux/Desktop# cdrecord -dao dev=OLDATAPI:0,0,0 speed=2 fs=32m -v -eject /home/linux/Desktop/SVG070629DOCS-X.iso
TOC Type: 1 = CD-ROM
scsidev: 'ATAPI:0,0,0'
devname: 'ATAPI'
scsibus: 0 target: 0 lun: 0
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Wodim version: 1.1.2
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'ATAPI '
Identification : 'DVD RW 8XMax '
Revision : '160D'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0011 (DVD-R sequential recording)
Profile: 0x001B (DVD+R)
Profile: 0x001A (DVD+RW)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x0013 (DVD-RW restricted overwrite)
Profile: 0x0011 (DVD-R sequential recording) (current)
Profile: 0x0010 (DVD-ROM)
Profile: 0x000A (CD-RW)
Profile: 0x0009 (CD-R)
Profile: 0x0008 (CD-ROM)
Profile: 0x0082 ()
Profile: 0x0081 ()
Profile: 0x0080 ()
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags : SWABAUDIO BURNFREE
Supported modes: PACKET SAO
Drive buf size : 1409024 = 1376 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
Drive DMA Speed: 25908 kB/s 147x CD 18x DVD
FIFO size : 33554432 = 32768 KB
Track 01: data 1686 MB
Total size: 1936 MB (191:50.00) = 863250 sectors
Lout start: 1936 MB (191:52/00) = 863250 sectors
Current Secsize: 2048
ATIP start of lead in: -150 (00:00/00)
Disk type: unknown dye (reserved id code)
Manuf. index: -1
Manufacturer: unknown (not in table)
Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 1435246
Starting to write CD/DVD at speed 2.0 in real SAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Sending CUE sheet...
Starting new track at sector: 0
Track 01: 1686 of 1686 MB written (fifo 100%) [buf 86%] 2.0x.
Track 01: Total bytes read/written: 1767936000/1767936000 (863250 sectors).
Writing time: 689.299s
Average write speed 1.9x.
Min drive buffer fill was 86%
Fixating...
Fixating time: 49.039s
debian:/home/linux/Desktop#
Not quite sure why that may be! Could the warning messages provide us with a clue?
I'd like to understand why I'm having this problem, it would certainly satisfy my curiosity because I had the same problem when using K3b several weeks ago and I spent hours on it!
Well, I've got things working now, however, I don't know what it was that I did that made it work, or perhaps it's just a hit and miss or a matter of luck. There's a little padlock on the iso file, I don't know why (on the desktop). I changed the permissions to 755 and ownership (user and group) to normal user. The little padlock was still on the icon afterwards...
I also modified the command and got no warning messages this time round:
Code:
debian:/home/linux/Desktop# cdrecord -dao dev=/dev/hdc speed=2 fs=64m -v -eject /home/linux/Desktop/SVG070629DOCS-X.iso
TOC Type: 1 = CD-ROM
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Wodim version: 1.1.2
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'ATAPI '
Identification : 'DVD RW 8XMax '
Revision : '160D'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0011 (DVD-R sequential recording)
Profile: 0x001B (DVD+R)
Profile: 0x001A (DVD+RW)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x0013 (DVD-RW restricted overwrite)
Profile: 0x0011 (DVD-R sequential recording) (current)
Profile: 0x0010 (DVD-ROM)
Profile: 0x000A (CD-RW)
Profile: 0x0009 (CD-R)
Profile: 0x0008 (CD-ROM)
Profile: 0x0082 ()
Profile: 0x0081 ()
Profile: 0x0080 ()
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags : SWABAUDIO BURNFREE
Supported modes: PACKET SAO
Drive buf size : 1409024 = 1376 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
Drive DMA Speed: 25701 kB/s 146x CD 18x DVD
FIFO size : 67108864 = 65536 KB
Track 01: data 1686 MB
Total size: 1936 MB (191:50.00) = 863250 sectors
Lout start: 1936 MB (191:52/00) = 863250 sectors
Current Secsize: 2048
ATIP start of lead in: -150 (00:00/00)
Disk type: unknown dye (reserved id code)
Manuf. index: -1
Manufacturer: unknown (not in table)
Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 1435246
Starting to write CD/DVD at speed 2.0 in real SAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Sending CUE sheet...
Starting new track at sector: 0
Track 01: 1686 of 1686 MB written (fifo 100%) [buf 86%] 2.0x.
Track 01: Total bytes read/written: 1767936000/1767936000 (863250 sectors).
Writing time: 684.887s
Average write speed 1.9x.
Min drive buffer fill was 86%
Fixating...
Fixating time: 49.018s
debian:/home/linux/Desktop#
When I have time, I'll have a look on the Mandriva iso to see if it also had that little padlock thing on its icon. What does that padlock mean, anyway?
Well, I've got things working now, however, I don't know what it was that I did that made it work, or perhaps it's just a hit and miss or a matter of luck. There's a little padlock on the iso file, I don't know why (on the desktop). I changed the permissions to 755 and ownership (user and group) to normal user. The little padlock was still on the icon afterwards...
I also modified the command and got no warning messages this time round:
[code]debian:/home/linux/Desktop# cdrecord -dao dev=/dev/hdc speed=2 fs=64m -v -eject /home/linux/Desktop/SVG070629DOCS-X.iso
...
Thank you for the solution! I've been playing around with my kernel configuration for days trying to get my CD-R to work. Obviously I was looking in the wrong place. I tried the command you have above (substituting hdc with hdb), and it worked like a charm. I would imagine that using /dev/cdrom would also work. Anyhow, once again, thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.