cdrecord causes hard crash (SuSE 7.3) writing data CDs
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.
cdrecord causes hard crash (SuSE 7.3) writing data CDs
A weird one...
Usually I use xcdroast (0.98alpha10) as a front end for copying CDs, and for audio CDs this has always worked fine, with all types of blank media at all write speeds. However every time I try to write a pure data CD to create a backup cdrecord (v1.11a28) freezes and takes the whole system with it. The screen, mouse, keyboard, everything. Ctrl-alt-everything is dead, no option but the reset button.
I used xcdroast to create an image, then originally xcdroast to drive cdrecord. I have tried many different options, DAO, TAO, multisession etc. Perhaps I missed something. I did update the xcdroast, cdrtools & cdrecord packages myself so perhaps I screwed something up if there are hidden version conflicts.
cdrecord from the command line gives the same results. The command line used was:
cdrecord -v speed=8 dev=0,1,0 -data track.img
cdrecord -scanbus shows the cd writer (Yamaha CDRW3200) & ASUS DVD correctly detected.
Like I said at the top, audio CDs can be written fine....!? Help!
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
Have you tried a lower speed? Try speed=4, if that doesn't work, try speed=2 or =1.
Are there any errors associated with the lockup (from the command line)?
try the -V option as well as the -v option. Maybe even -VVV -vvv
Are you sure there isn't a problem with your track.img? Try mounting it
with the following command:
mount -o loop track.img /mnt
You'll need loopback support in your kernel, either as a module or built
in, try the mount command and if it gives you an error concerning no
loopback support or somesuch, you'll need to either load the module or
build the module, then load it.
You can build modules with out rebuilding your kernel just by skipping
the "make bzImage" portion of the kernel rebuild (after you've selected
loop as a module).
Thanks for the mount tip - seems fine. The contents are as they should be.
Unfortunately there is no debug information issued anywhere, either in the system logs or by cdrecord in its own logs - everything just stops where it is. The general symptoms are: The FIFO buffer fills to 97%, then a pause, then it fills 100% then writing starts, gets usually to 5% then the crash. The -V gave me the last SCSI transfer at which the process stopped - looked to be the same as the others but up to now I haven't managed to save it.
The crash is completely reproducible but with no debug information it could take some time to understand! At the moment I suspect some problem on the IDE bus, but why this should work writing an audio CD from a track list on the hard disk I can't explain. As I said I can write an audio CD at 24x with no problems (it doesn't sound too good, but that's another story).
At the moment I'm still guessing and very grateful for CD-RWs....
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
*Usually* a bus error will cause cdrecord to issue some pretty hefty
errors. If you have other reasons to expect your bus is a problem,
you might try swapping cables, maybe get yourself a shielded cable.
But, if it were the bus you shouldn't be able to send audio data down
it without experiencing the same problems.
If you have the disk space, try copying the disk image, maybe there is a
problem with your hard drive, and it happens to be affected by reading
this file. I kind of doubt it, but it's possible, and doesn't really take much
time to do this. . .
Try making a small test image and writing that, to test whether it's really
a -data problem.
What version of cdrecord do you have? did you create this disk image
yourself?
Currently I have several versions of cdrecord which have either been installed as binaries from rpms or compiled locally & copied into /usr/bin. I read that versions of cdrecord above 1.11a33 will not work correctly with xcdroast, so I have tried 1.11a28 and a33. Results the same with each. To create the img I used xcdroast as a front end to mkisofs v1.15a27.
If I compile the cdrecord sources locally, is it enough to copy the executable into the /usr/bin directory or does it depend on libraries anywhere else?
Incidentally, I just wrote the offending data onto a CD by first writing some audio tracks, then the data. It must be something to do with the content of the first track but now I'm really stumped...
Just noticed your reply... thanks again, I just recorded a CD containing this data at 24x (although cdrecord reported the average record speed to be a poor 10x) so I am almost certain now that the IDE system is working fine. I have recompiled the kernel and all modules several times without problem, and this is usually a good test of stability. I changed the IDE setup so the CD-RW is now secondary master, alone, with the HDD and DVD sharing the primary controller but the system logs have never reported any disk errors.
Linux has thrown me some odd complaints in the past, but this is the best yet....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.