LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-28-2004, 10:23 PM   #1
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
Cdrecord...


How do i go about getting around these errors that i keep getting? I looked for a config file, but couldn't find one. I have append="hdc=ide-scsi" in lilo.conf; if that matters. Why can't it open /dev/hdc? The permissions are correct and it's playing a cd right now, so i know it works. I also ran cdrecord -scanbus a root and got this output....

root@LinuxBox420:/home/box# cdrecord -v speed=8 dev=/dev/hdc /home/box/MP3/Godsmack/Godsmack
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
cdrecord: No such device or address. Cannot open '/dev/hdc'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
root@LinuxBox420:/home/box#


root@LinuxBox420:/home/box# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
root@LinuxBox420:/home/box#
 
Old 08-28-2004, 10:38 PM   #2
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Rep: Reputation: 32
try cdrecord -dev=ATAPI --scanbus

to record:

cdrecord -dev=ATAPI:0,0,0 ....

replace 0,0,0 with the appropriate numbers and .... with the rest of the arguments.
 
Old 08-28-2004, 11:11 PM   #3
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
I got alittle bit further with that command. Here's the output. What is TAO? Am i screwed here?

box@LinuxBox420:~$ cdrecord -v speed=8 dev=ATAPI:0,0,0 /home/box/MP3/Godsmack/Go dsmack
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
TOC Type: 1 = CD-ROM
cdrecord: Operation not permitted. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
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.7'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'LG '
Identifikation : 'CD-RW CED-8120B '
Revision : '1.03'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC SWABAUDIO
Supported modes:
FIFO size : 4194304 = 4096 KB
cdrecord: Drive does not support TAO recording.
cdrecord: Illegal write mode for this drive.
box@LinuxBox420:~$
 
Old 08-28-2004, 11:28 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Maybe dev=ATA:0,0,0
 
Old 08-28-2004, 11:49 PM   #5
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
No good....

box@LinuxBox420:~$ cdrecord -v speed=8 dev=ATA:0,0,0 /home/box/MP3/Godsmack/Godsmack
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
TOC Type: 1 = CD-ROM
cdrecord: Operation not permitted. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: 'ATA:0,0,0'
devname: 'ATA'
scsibus: 0 target: 0 lun: 0
Warning: Open by 'devname' is unintentional and not supported.
cdrecord: No such file or directory. Cannot open 'ATA'. Cannot open SCSI driver.cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
box@LinuxBox420:~$
 
Old 08-29-2004, 12:26 AM   #6
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Rep: Reputation: 32
did you try as root?

TAO means Track-at-Once, it's a recording mode (supported by most cd-recorders) which records track by track.

try adding the -dao argument to the command.

you might want to search google as well to see if anybody else has encountered similar problems with your drive under linux.
 
Old 08-29-2004, 12:54 AM   #7
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
TAO means: track at once

You need to su

burn as root

unless you've changed certain file permissions to allow user the privilege of cd burn, cdrecord

is it an iso file that you to burn to cd?

I use an IDE mine defaults to TAO and it works alright. Oddly, I've an older scsi burner on a different machine and it seems to use something different, not TAO but DAO perhaps (but might not be).

The dev= for scsi drive is minus the ATAPI part. But with an IDE drive you are correct with that the ATAPI in there.

Further info, and, I use a Perl script I got from command line tool section of here:

http://linuxfocus.org/English/Januar...227.meta.shtml

but shouldn't matter as long as all the corect commands and options entered on command line.

for to copy a cd, I just began using this:

http://www.troubleshooters.com/linux/coasterless.htm

please reply back if you discover something relevant as I like to learn too. Thanks. Good luck.

--
Alan.
 
Old 08-29-2004, 01:11 AM   #8
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
Interesting stuff here (has a command line section):

http://www.yolinux.com/TUTORIALS/Lin...ialCDBurn.html

http://www.google.com/linux?hl=en&lr...=Google+Search
 
Old 08-29-2004, 01:14 AM   #9
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
I ran as root and got this...

root@LinuxBox420:/home/box/MP3/Godsmack# cdrecord -v -dao speed=8 dev=ATAPI:0,0,0 /home/box/MP3/Godsmack/Godsmack
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
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.7'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'LG '
Identifikation : 'CD-RW CED-8120B '
Revision : '1.03'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 5185536 = 5064 KB
FIFO size : 4194304 = 4096 KB
Track 01: data unknown length
Total size: 0 MB (00:00.00) = 0 sectors
Lout start: 0 MB (00:02/00) = 0 sectors
Current Secsize: 2048
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
cdrecord: WARNING: Total disk size unknown. Data may not fit on disk.
Starting to write CD/DVD at speed 8 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...
cdrecord: Track 1 has unknown length.
cdrecord: Cannot send CUE sheet.
cdrecord: Could not write Lead-in.
Writing time: 0.017s
cdrecord: fifo had 1 puts and 0 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
root@LinuxBox420:/home/box/MP3/Godsmack#
 
Old 08-29-2004, 08:57 AM   #10
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Is Godsmak an audio wav file? If yes then try this.

cdrecord -v speed=8 dev=ATAPI:0,0,0 -audio /home/box/MP3/Godsmack/Godsmack
 
Old 08-29-2004, 09:08 AM   #11
darkaudti
Member
 
Registered: Jun 2004
Location: Morgantown, WV USA
Distribution: Debian sid
Posts: 52

Rep: Reputation: 15
One question missing from all this - what kernel are you running?
 
Old 08-29-2004, 09:22 AM   #12
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
i'm using the 2.6.8 kernel

Yes it is audio. I am able to burn iso images with the command... cdrecord -v speed=8 dev=ATAPI:0,0,0;eject /home/box/isoimage

But i'm still having trouble with audio... i'm doing it in dummy mode so i'm not wasting cds. This is my first time trying to get this going...

root@LinuxBox420:/home/box# cdrecord -v -audio -dao -pad speed=8 dev=ATAPI:0,0,0 /home/box/MP3/in/*
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
TOC Type: 0 = CD-DA
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.7'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'LG '
Identifikation : 'CD-RW CED-8120B '
Revision : '1.03'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 5185536 = 5064 KB
FIFO size : 4194304 = 4096 KB
Track 01: audio 5 MB (00:29.79) no preemp swab pad
Track 02: audio 4 MB (00:25.93) no preemp swab pad
Track 03: audio 6 MB (00:40.57) no preemp swab pad
Track 04: audio 5 MB (00:29.97) no preemp swab pad
Track 05: audio 5 MB (00:33.09) no preemp swab pad
Track 06: audio 5 MB (00:30.01) no preemp swab pad
Track 07: audio 3 MB (00:21.27) no preemp swab pad
Track 08: audio 3 MB (00:20.02) no preemp swab pad
Track 09: audio 5 MB (00:32.37) no preemp swab pad
Track 10: audio 5 MB (00:29.80) no preemp swab pad
Track 11: audio 3 MB (00:19.36) no preemp swab pad
Total size: 52 MB (05:12.29) = 23422 sectors
Lout start: 52 MB (05:14/22) = 23422 sectors
Current Secsize: 2048
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Blocks total: 359846 Blocks current: 359846 Blocks remaining: 336424
Starting to write CD/DVD at speed 8 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...
cdrecord: WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01: 4 of 5 MB written (fifo 100%) [buf 97%] 8.0x.
WARNING: padding up to secsize.
Track 01: 5 of 5 MB written (fifo 100%) [buf 98%] 8.8x.
Track 01: Total bytes read/written: 5255174/5256720 (2235 sectors).
Starting new track at sector: 2235
Track 02: 4 of 4 MB written (fifo 100%) [buf 98%] 8.2x.
WARNING: padding up to secsize.
Track 02: Total bytes read/written: 4575333/4576992 (1946 sectors).
Starting new track at sector: 4181
Track 03: 6 of 6 MB written (fifo 100%) [buf 98%] 8.0x.
WARNING: padding up to secsize.
Track 03: Total bytes read/written: 7157572/7159488 (3044 sectors).
Starting new track at sector: 7225
Track 04: 5 of 5 MB written (fifo 100%) [buf 98%] 8.5x.
WARNING: padding up to secsize.
Track 04: Total bytes read/written: 5288354/5289648 (2249 sectors).
Starting new track at sector: 9474
Track 05: 5 of 5 MB written (fifo 100%) [buf 97%] 8.3x.
WARNING: padding up to secsize.
Track 05: Total bytes read/written: 5837343/5837664 (2482 sectors).
Starting new track at sector: 11956
Track 06: 5 of 5 MB written (fifo 100%) [buf 98%] 8.6x.
WARNING: padding up to secsize.
Track 06: Total bytes read/written: 5293961/5294352 (2251 sectors).
Starting new track at sector: 14207
Track 07: 3 of 3 MB written (fifo 98%) [buf 98%] 9.0x.
WARNING: padding up to secsize.
Track 07: Total bytes read/written: 3752148/3753792 (1596 sectors).
Starting new track at sector: 15803
Track 08: 3 of 3 MB written (fifo 98%) [buf 98%] 9.0x.
WARNING: padding up to secsize.
Track 08: Total bytes read/written: 3532677/3532704 (1502 sectors).
Starting new track at sector: 17305
Track 09: 5 of 5 MB written (fifo 100%) [buf 97%] 8.4x.
WARNING: padding up to secsize.
Track 09: Total bytes read/written: 5710246/5710656 (2428 sectors).
Starting new track at sector: 19733
Track 10: 4 of 5 MB written (fifo 100%) [buf 97%] 8.0x.
WARNING: padding up to secsize.
Track 10: 5 of 5 MB written (fifo 100%) [buf 98%] 8.7x.
Track 10: Total bytes read/written: 5257036/5259072 (2236 sectors).
Starting new track at sector: 21969
Track 11: 3 of 3 MB written (fifo 100%) [buf 98%] 8.9x.
WARNING: padding up to secsize.
Track 11: Total bytes read/written: 3416485/3417456 (1453 sectors).
Writing time: 59.872s
Average write speed 5.2x.
Min drive buffer fill was 97%
Fixating...
Fixating time: 20.325s
cdrecord: fifo had 872 puts and 872 gets.
cdrecord: fifo was 0 times empty and 572 times full, min fill was 96%.
root@LinuxBox420:/home/box#

It records, but it sounds like sh*t. Not music in any way! What else am i doing wrong here? and it doesn't record the whole song either, only about 1/3 of it.

Last edited by Linux~Powered; 08-29-2004 at 09:24 AM.
 
Old 08-29-2004, 10:39 AM   #13
darkaudti
Member
 
Registered: Jun 2004
Location: Morgantown, WV USA
Distribution: Debian sid
Posts: 52

Rep: Reputation: 15
There is a laundry list of issues concerning cdrecord and the 2.6.8 kernel. One concerns the security hole that allowed users to send certain commands to the cd drive. Some of those commands could potentially destroy a drive's firmware. The hole was closed in 2.6.8, but cdrecord depended on that for it's function.

The second was a memory leak that meant even if you ran as root, your audio CDs would sound like crap. I tried it and got a bunch of weird-sounding bloops, not what was expected.

The memory leak issue has apparently been fixed in Debian's kernel-source-2.6.8-4 package, but I still cannot burn as a regular user.

My only suggestion would be to try booting with a 2.6.7 kernel or earlier and see what happens.
 
Old 08-29-2004, 10:52 AM   #14
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
Well i booted up with Slacks 2.4.26 kernel and it does the same thing, and after doing ls -lh it shows that the MB are about right...

box@LinuxBox420:~/MP3/Godsmack/Godsmack$ ls -lh
total 51M
-r-xr-xr-x 1 box users 4.1M 2003-02-09 16:26 01-Moon Baby.mp3
-r-xr-xr-x 1 box users 3.2M 2003-02-09 16:27 02-Whatever.mp3
-r-xr-xr-x 1 box users 4.5M 2003-02-09 16:29 03-Keep Away.mp3
-r-xr-xr-x 1 box users 3.7M 2003-02-09 16:30 04-Time Bomb.mp3
-r-xr-xr-x 1 box users 3.0M 2003-02-09 16:31 05-Bad Religion.mp3
-r-xr-xr-x 1 box users 4.5M 2003-02-09 16:33 06-Immune.mp3
-r-xr-xr-x 1 box users 1.9M 2003-02-09 16:33 07-Someone of London.mp3
-r-xr-xr-x 1 box users 3.2M 2003-02-09 16:34 08-Get Up, Get Out!.mp3
-r-xr-xr-x 1 box users 4.7M 2003-02-09 16:36 09-Now or Never.mp3
-r-xr-xr-x 1 box users 4.7M 2003-02-09 16:38 10-Stress.mp3
-r-xr-xr-x 1 box users 5.4M 2003-02-09 16:39 11-Situation.mp3
-r-xr-xr-x 1 box users 8.3M 2003-02-09 16:43 12-Voodoo.mp3
box@LinuxBox420:~/MP3/Godsmack/Godsmack$

This is a back-up of a bunch of MP3's i had on my Winblows box and copied them over to my Linux box with mv /mnt/cdrom/* /home/box/MP3. They play fine on XMMS. Do i have to do something else here?

Last edited by Linux~Powered; 08-29-2004 at 11:12 AM.
 
Old 08-30-2004, 12:38 AM   #15
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
http://www.faqs.org/docs/Linux-mini/MP3-CD-Burning.html

http://www.google.com/linux?hl=en&lr...=Google+Search
 
  


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
cdrecord??? Lleb_KCir Linux - Software 17 04-13-2005 11:02 PM
cdrecord jaakkop Linux - Software 3 11-20-2004 01:17 PM
cdrecord chaitu_iiit Linux - Software 2 11-10-2004 01:20 PM
cdrecord quentusrex Debian 6 08-20-2004 03:01 AM
cdrecord Kent Emia Linux - Newbie 2 03-05-2004 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:49 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