LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-11-2004, 08:58 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
CD burning problem


Hi all folks,

Debian - unstable
GNOME console

I met following problem in burning CD

# 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 .

# apt-cache search cdrecord.nmap
No printout

Kindly advise how to proceed.

TIA

B.R.
satimis
 
Old 01-11-2004, 09:26 AM   #2
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Did you try running
cdrecord -scanbus
to find the correct device number?
 
Old 01-11-2004, 09:30 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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.
 
Old 01-11-2004, 09:33 AM   #4
TheBlackUnicorn
Member
 
Registered: Jan 2004
Distribution: Debian and Gentoo
Posts: 39

Rep: Reputation: 15
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
 
Old 01-11-2004, 09:42 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
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

I tried dev=1,2,0 and dev=1,5,0 without result

B.R.
satimis
 
Old 01-11-2004, 09:56 AM   #6
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Do you have the ide-scsi modules installed?
lsmod -l;
 
Old 01-11-2004, 11:22 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
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,

Thanks for your advice.

# modprobe sg
# modprobe ide-scsi
all no response

# cat /etc/lilo.conf
boot=/dev/hda
root=/dev/hda1
install=/boot/boot.b
map=/boot/map
image=/vmlinuz
append="hdc=ide-scsi"
label=Linux
initrd=/initrd.img

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

Thanks

B.R.
satimis
 
Old 01-11-2004, 11:23 AM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally posted by g-rod
Do you have the ide-scsi modules installed?
lsmod -l;
Hi,

lsmod -l
lsmod: invalid option -- l
Usage:
lsmod [-Vh]

-V, --version Print the release version
-h, --help Print this message

B.R.
satimis
 
Old 01-11-2004, 05:14 PM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by satimis
Where can I find instruction/manual of the new method

Thanks

B.R.
satimis
$ man cdrecord
 
Old 01-12-2004, 05:15 AM   #10
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Problem solved

Quote:
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.

1) Removed (append="hdc=ide-scsi") from /etc/lilo.conf
2) # apt-get install mkisofs
3) # mkisofs -R -o cdimage.raw /path/to/folder/tarballs
4) Blanked CDRW
# cdrecord dev=ATAPI:0,0,0 speed=10 blank=all -v -eject
5) Burned CDRW
# cdrecord dev=ATAPI:0,0,0 speed=10 -v -eject cdimage.raw

tarballs burned on CDRW finally.

I am still searching the instruction/manual in re the new changes to "cdrecord". 'man cdrecord' does help much.

B.R.
satimis
 
Old 01-12-2004, 09:03 AM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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.
 
Old 01-12-2004, 09:20 AM   #12
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
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

Thanks

B.R.
satimis
 
Old 01-12-2004, 09:56 AM   #13
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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.
 
Old 01-18-2004, 11:45 PM   #14
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Thumbs up

Quote:
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Burning problem... melopll *BSD 0 07-06-2005 11:27 AM
Burning cd trouble: hardware problem or software problem argt Linux - Hardware 2 04-20-2005 05:27 PM
audiocd burning problem, whole system hangs while burning ichbinesderelch Linux - Software 1 11-14-2003 02:30 PM
CD Burning Problem CrazySteve Slackware 20 10-26-2003 12:56 PM
Burning problem RH 9 HiGate Red Hat 7 10-21-2003 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration