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# |
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. |
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:~$ |
Maybe dev=ATA:0,0,0
|
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:~$ |
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. |
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. |
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 |
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# |
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 |
One question missing from all this - what kernel are you running?
|
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. |
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. |
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? |
|
All times are GMT -5. The time now is 10:53 PM. |