LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-25-2002, 11:57 PM   #1
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
cdrecord & linux?


Hi all. I have been using cdrecord to make cd's for a while on my other system, but I just installed cdrtools-1.11a38 and I think I may have messed something up. I read the doc's and it doesn't seem like the developer likes linux too much.

Anywase, I got one cd burned just fine. Now, I can't burn any more, I get "cdrecord: CD/DVD-Recorder not ready" and after that I can't do anything to my drive.... not open it or anything. here's my cdrecord -scanbus:
Cdrecord 1.11a38 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'Compaq ' 'DVD-ROM DVD-114 ' '1.14' Removable CD-ROM
0,1,0 1) 'IDE-CD ' 'R/RW 4x4x24 ' 'C12a' Removable CD-ROM


and I am using this command to write:

cdrecord -v speed=4 dev=0,1,0 -data <image>

The reason I even started with all this is because I can't write the "color.gz" root file for slack onto a floppy... I've had problems with that before too... for some reason, I can't fill up the whole disk. here's the attributes of "color.gz":


-rw-r--r-- 1 root root 2333527 Sep 28 19:54 color.gz


Any help would be great.... I REALLY hope I didn't fry my cd-rw (I can still mount and read cd's from it though)
 
Old 10-26-2002, 12:53 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I hope you didn't fry it, does it give you OPC errors? If the system is "flushed" does cdrecord exhibit the same behavior? As the last resort I'd suggest downgrade and see if it fixes the problem. I just hope your burner didn't fall a victim of time and cdrecord as did mine a coupe of month ago, though I was getting OPC failed errors.

Last edited by neo77777; 10-26-2002 at 12:55 AM.
 
Old 10-26-2002, 09:48 PM   #3
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
Thanks for the reply NEO. It turns out that 3 out of the 4 maxwell cd-rw's just aren't working for some reason. I am still kindof suspicious though... it doesn't seem like that should happen (plus, it works w/ windows cd creator).

Is there a way to eject the cd after one of those errors occurrs? Is that what you mean by "flushed"?

well, for now, I am using this script that I grabbed from here
http://www.tldp.org/HOWTO/CD-Writing-HOWTO.html
to check if the cd is o.k. :

#! /bin/bash

RD=/dev/scd0
for i in 32768,7 32776,32 32808,32 32958,128 33086,128 33214,128 \
33342,128 33470,32 33581,16 33598,16 33615,16 33632,16
do
old_IFS="$IFS"
IFS=","
set -- $i
IFS="$old_IFS"
OFFSET=$1
LENGTH=$2
echo "*`dd if=$RD bs=1 skip=$OFFSET count=$LENGTH 2> /dev/null`#"
done

#################################################

One more question though.... I tried to burn a data cd by piping the output of mkisofs straight to cdrecord and got this (last bit of the -v output):

Track 01: 400 MB written (fifo 4%) 4.0x. 84.72% done, estimate finish Sat Oct 26 12:00:32 2002
Track 01: 401 MB written (fifo 1%) 1.7x.cdrecord: Input/output error. write_g1: scsi sendcmd: no error
CDB: 2A 00 00 03 22 01 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 03 00 00 00 00 13 00 00 00 00 0C 09 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x0C Qual 0x09 (write error - loss of streaming) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.028s timeout 40s

write track data: error after 420481024 bytes
Sense Bytes: 70 00 00 00 00 00 00 13 00 00 00 00 00 00 00 00 00 00
Writing time: 698.734s
Fixating...
Fixating time: 65.863s
cdrecord: fifo had 6687 puts and 6624 gets.
cdrecord: fifo was 15 times empty and 5675 times full, min fill was 0%.

I have a 500 Mhz, 128mb system... do you think that this is too slow to handle what I tried, or is there something going wrong?

ooh well... at least it's not TOTALLY fried.

thanks again for the reply

-Adam
 
Old 10-26-2002, 10:33 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Hmmm, it might choke on a slow machine, but it also depends on what concurrently runs on the system as well, I have a 450MHz machine with 128Mb of RAM, and I gave a try to mkisofs|cdrecord, well it choked on speed=6, it did find with speed=4 though, I have a Samsung internal CD-R/RW (32x10x40), and the above was performed on gentoo setup w/o X running, now I'll attempt to do the same on Athlon 850MHz with 512Mb of SDRAM running Slackware8.1 and see what happens, I am pretty sure the system will handle the speed=12 at least, I'll post back later cause I need to reconnect the burner.
 
Old 10-27-2002, 01:48 AM   #5
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
I think that it was a system hangup rather than something else (I was in X). I had been following a how-to on creating a bootable cd, and the command they gave me to burn it was this:

mkisofs -R -l -L -D -b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table -V "LFS_$(date +%Y%m%d)" \
$LFS | \
cdrecord -v -eject dev=0,0,0 speed=4 -

It scared the crap out of me. When I tried to do mkisofs --help to see what the hell was going on, there was too much for the screen. | less wouldn't work and > output.txt wouldn't either (really strange). I ended up just splitting it up and just sending the -o <image> option to mkisofs and it worked fine.

Anywase, thank you for helping me out w/ getting to the bottom of all this. I hope your cd-rw installation wasn't in vein.

-Adam
 
Old 10-27-2002, 12:17 PM   #6
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
You should do

man mkisofs

instead.

If you like, you can grab my cdcopy script

http://jetblackz.freeservers.com/Installingcdcopy.html
 
  


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
Trying to burn BeOS ISO Using CDRecord in Linux linux-rulz Linux - General 4 09-10-2005 04:02 PM
Ph&#7909;c h&#7891;i d&#7919; li&#7879;u b&#7883; m&#7845;t???, c&#7913; pollsite General 1 06-27-2005 12:39 PM
cdrecord 2.10a27 & K3b FrostBot Linux - Software 4 08-24-2004 01:54 PM
strange happenings here at Linux .... cdrecord ?? purpleburple Linux - General 1 08-06-2002 09:30 PM
cdrecord & blanking a track? captgoodnight Linux - General 0 03-03-2002 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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