DebianThis forum is for the discussion of Debian Linux.
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.
# cdrecord dev=0,0,0 speed=12 blank=all -eject
Cdrecord-Clone 2.01a24 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J�rg Schillin g
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
cdrecord.mmap: No such file or directory. Cannot open '/dev/pg0'. Cannot open SC SI driver.
cdrecord.mmap: For possible targets try 'cdrecord -scanbus'. Make sure you are r oot.
cdrecord.mmap: For possible transport specifiers try 'cdrecord dev=help'.
cdrecord.mmap: Also make sure that you have loaded the sg driver and the driver for
cdrecord.mmap: SCSI hardware, eg. ide-scsi if you run IDE/ATAPI drives over
cdrecord.mmap: ide-scsi emulation. For more information, install the cdrtools-do c
cdrecord.mmap: package and read /usr/share/doc/cdrecord/README.ATAPI.setup
However I could not locate 'README.ATAPI.setup'
# locate README.ATAPI.setup
# find / -name readme.atapi.setup
all no printout
# dvd=yes cdrecord dev=0,0,0 speed=12 blank=all -v -eject
Cdrecord-Clone 2.01a24 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J�rg Schillin g
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
cdrecord.mmap: No such file or directory. Cannot open '/dev/pg0'. Cannot open SC SI driver.
cdrecord.mmap: For possible targets try 'cdrecord -scanbus'. Make sure you are r oot.
cdrecord.mmap: For possible transport specifiers try 'cdrecord dev=help'.
cdrecord.mmap: Also make sure that you have loaded the sg driver and the driver for
cdrecord.mmap: SCSI hardware, eg. ide-scsi if you run IDE/ATAPI drives over
cdrecord.mmap: ide-scsi emulation. For more information, install the cdrtools-do c
cdrecord.mmap: package and read /usr/share/doc/cdrecord/README.ATAPI.setup .
First, it looks like you've got the very first command up there incorrect. There is much to say about what you've posted. However, I think if you read fancypiper's info about burning CD's, you'll have all you need. I read one of his posts months ago, and since then, I've had no trouble burning CD's from command line. And man, is it efficient. If you still need help after reading his info that's in this thread http://www.linuxquestions.org/questi...D+burning+info post back and I'll try to help.
It looks like you don't have your sg module loaded. Type modprobe sg and also modprobe ide-scsi.
Several things have changed with cdrecord lately. It's always been necessary to use SCSI emulation if you wanted to burn a cd using an IDE writer. To enable this, you needed to make sure the kernel was compiled with this support as a module (ide-scsi), you had to tell the kernel not to use IDE for the cdrw by adding hdc=ide-scsi to the append line in lilo.conf and you had to load the ide-scsi module before burning. This procedure should still work.
You can check if the scsi emulation is loaded correctly by typing cdrecord -scanbus. This lists the available scsi devices and will tell you the nr of your device.
The latest versions of cdrecord, however, support writing to IDE/ATAPI cd writers directly using the ATAPI system. I believe you have to type cdrecord dev=ATAPI -scanbus to get a list of the ATAPI devices. To write to cd, you would then type cdrecord dev=ATAPI:0,0,0 ... (assuming that 0,0,0 would be the address of your cd writer).
If you haven't set up the ide-scsi thing yet you should give this new method a try. Ide-scsi is being deprecated
Originally posted by g-rod Did you try running
cdrecord -scanbus
to find the correct device number?
Hi,
Yes, nothing generated.
# cdrecord -scanbus
Cdrecord-Clone 2.01a24 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J�rg Schilling
cdrecord.mmap: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord.mmap: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord.mmap: For possible transport specifiers try 'cdrecord dev=help'.
cdrecord.mmap: Also make sure that you have loaded the sg driver and the driver for
cdrecord.mmap: SCSI hardware, eg. ide-scsi if you run IDE/ATAPI drives over
cdrecord.mmap: ide-scsi emulation. For more information, install the cdrtools-doc
cdrecord.mmap: package and read /usr/share/doc/cdrecord/README.ATAPI.setup .
# cdrecord dev=help
Cdrecord-Clone 2.01a24 (i686-pc-linux-gnu) Copyright (C) 1995-2004 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: 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
Originally posted by TheBlackUnicorn It looks like you don't have your sg module loaded. Type modprobe sg and also modprobe ide-scsi.
Several things have changed with cdrecord lately. It's always been necessary to use SCSI emulation if you wanted to burn a cd using an IDE writer. To enable this, you needed to make sure the kernel was compiled with this support as a module (ide-scsi), you had to tell the kernel not to use IDE for the cdrw by adding hdc=ide-scsi to the append line in lilo.conf and you had to load the ide-scsi module before burning. This procedure should still work.
You can check if the scsi emulation is loaded correctly by typing cdrecord -scanbus. This lists the available scsi devices and will tell you the nr of your device.
The latest versions of cdrecord, however, support writing to IDE/ATAPI cd writers directly using the ATAPI system. I believe you have to type cdrecord dev=ATAPI -scanbus to get a list of the ATAPI devices. To write to cd, you would then type cdrecord dev=ATAPI:0,0,0 ... (assuming that 0,0,0 would be the address of your cd writer).
If you haven't set up the ide-scsi thing yet you should give this new method a try. Ide-scsi is being deprecated
cdrecord dev=ATAPI -scanbus
Cdrecord-Clone 2.01a24 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J\x{FFFD}rg Schilling
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'SAMSUNG ' 'CD-R/RW SW-240B ' 'R403' Removable CD-ROM
0,1,0 1) 'SONY ' 'CD-ROM CDU5221 ' '0.35' Removable CD-ROM
Test with a CDRW
===========
Blanking a CDRW
# cdrecord dev=ATAPI:0,0,0 speed=4 blank=all -v -eject
It went throught without complaint and finally CDRW ejected automatically
Burning a CDRW
# cdrecord dev=ATAPI:0,0,0 speed=4 -v -eject /path/to/folder containing tarball
.....
.......
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 libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'SAMSUNG '
Identifikation : 'CD-R/RW SW-240B '
Revision : 'R403'
Device seems to be: Generic mmc CD-RW.
Current: 0x000A
Profile: 0x0008
Profile: 0x0009
Profile: 0x000A (current)
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R96R
Drive buf size : 5554176 = 5424 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 14 MB
Total size: 16 MB (01:37.16) = 7287 sectors
Lout start: 16 MB (01:39/12) = 7287 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Reference speed: 2
Is not unrestricted
Is erasable
ATIP start of lead in: -11615 (97:27/10)
ATIP start of lead out: 335925 (74:41/00)
1T speed low: 0 (reserved val 0) 1T speed high: 4
power mult factor: 4 5
recommended erase/write power: 3
A1 values: 02 4A B0
A2 values: 00 00 00
Disk type: Phase change
Manuf. index: 18
Manufacturer: Plasmon Data systems Ltd.
Blocks total: 335925 Blocks current: 335925 Blocks remaining: 328638
Forcespeed is OFF.
Starting to write CD/DVD at speed 4 in real TAO 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.
BURN-Free is OFF.
Performing OPC...
Starting new track at sector: 0
Track 01: 14 of 14 MB written (fifo 100%) [buf 99%] 4.1x.
WARNING: padding up to secsize.
Track 01: Total bytes read/written: 14919100/14919680 (7285 sectors).
Writing time: 28.257s
Average write speed 3.7x.
Min drive buffer fill was 99%
Fixating...
Fixating time: 76.884s
cdrecord.mmap: fifo had 235 puts and 235 gets.
cdrecord.mmap: fifo was 0 times empty and 129 times full, min fill was 96%.
Failed. Can't burn CDRW
Where can I find instruction/manual of the new method
Originally posted by TheBlackUnicorn It looks like you don't have your sg module loaded. Type modprobe sg and also modprobe ide-scsi.
Several things have changed with cdrecord lately. It's always been necessary to use SCSI emulation if you wanted to burn a cd using an IDE writer. To enable this, you needed to make sure the kernel was compiled with this support as a module (ide-scsi), you had to tell the kernel not to use IDE for the cdrw by adding hdc=ide-scsi to the append line in lilo.conf and you had to load the ide-scsi module before burning. This procedure should still work.
You can check if the scsi emulation is loaded correctly by typing cdrecord -scanbus. This lists the available scsi devices and will tell you the nr of your device.
The latest versions of cdrecord, however, support writing to IDE/ATAPI cd writers directly using the ATAPI system. I believe you have to type cdrecord dev=ATAPI -scanbus to get a list of the ATAPI devices. To write to cd, you would then type cdrecord dev=ATAPI:0,0,0 ... (assuming that 0,0,0 would be the address of your cd writer).
If you haven't set up the ide-scsi thing yet you should give this new method a try. Ide-scsi is being deprecated
Hi TheBlackUnicorn,
PROBLEM SOLVED
===========
After re-reading your advice I made following tests again.
Originally posted by Chinaman Which kernel are you using? I must apologize, as I didn't read closely enough and see that you're also running a newer version of cdrecord.
Hi,
cat /proc/version
Linux version 2.4.22-1-386 (herbert@gondolin) (gcc version 3.3.2 20030908 (Debian prerelease)) #9 Sat Oct 4 14:30:39 EST 2003
I'm aware that the intention was to deprecate ide-scsi in the 2.6 kernel, but didn't realize that cdrecord would work with ATAPI instead of ide=scsi. Will have to check into that. I know there have been a lot of problems in 2.6 with these issues, from reading LKML.
Originally posted by TheBlackUnicorn It looks like you don't have your sg module loaded. Type modprobe sg and also modprobe ide-scsi.
Several things have changed with cdrecord lately. It's always been necessary to use SCSI emulation if you wanted to burn a cd using an IDE writer. To enable this, you needed to make sure the kernel was compiled with this support as a module (ide-scsi), you had to tell the kernel not to use IDE for the cdrw by adding hdc=ide-scsi to the append line in lilo.conf and you had to load the ide-scsi module before burning. This procedure should still work.
You can check if the scsi emulation is loaded correctly by typing cdrecord -scanbus. This lists the available scsi devices and will tell you the nr of your device.
The latest versions of cdrecord, however, support writing to IDE/ATAPI cd writers directly using the ATAPI system. I believe you have to type cdrecord dev=ATAPI -scanbus to get a list of the ATAPI devices. To write to cd, you would then type cdrecord dev=ATAPI:0,0,0 ... (assuming that 0,0,0 would be the address of your cd writer).
If you haven't set up the ide-scsi thing yet you should give this new method a try. Ide-scsi is being deprecated
. . . . . . .
This is great advice - does this mean that if I use a front end (i.e. Gnome Toaster) then I need to insert "dev=ATAPI" in all the cdrecord calls??? Huh - I'll try.
SDB
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.