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.
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#
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:~$
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:~$
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:
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#
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 10:24 AM.
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.
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 12:12 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.