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 - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-06-2005, 11:43 AM   #1
yvesm
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Rep: Reputation: 15
cdrecord hangs when trying to burn cd from k3b


HI,

When I try to burn a data cd from k3b, the app seems to hang. I have located the problem to cdrecord which hangs doing nothing right after a few seconds. It can not be killed after the call from k3b to cdrecord was made. I need to reboot.

My system is
kernel "2.6.8.1-12mdksmp #1 SMP"
k3b is "0.11.20"
cdrecord is "Cdrecord-Clone 2.01-dvd"

the rights for cdrecord are:
-rws--x--x 1 root burning 314924 sep 10 10:28 /usr/bin/cdrecord*

And being root or user get the same result. I added the "burning" group and added my user and root to it. This did not help either.

I just tried: I am able to create a music cd from k3b probably because it uses "cdrdao" instead of cdrecord


My history:
I used to run ArchLinux until I had this same problem. I could not resolve the problem. Asked on the Archlinux forum and was not replied to.
So I reformatted the machine and installed Mandrake10.1 and did the updates. I think that it is easier to manage the system. But it had the problem also.
I thought it was k3b so I actually compiled the 0.11.20 version from source. But it did not help

QUESTION:
Could someone give me a direction to a resolution. How could I burn a data cd.

Thanks for any help. I just spent 10 hours redoing my machine but I am at the same exact place as before. Although on an other distro.

Last edited by yvesm; 03-06-2005 at 11:50 AM.
 
Old 03-06-2005, 10:47 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Will it burn from the command line (GUI's tend to hide the error messages)?

How about CD copying, ripping and burning? I can't figure it out.
# CD burning copying ripping info
Is it configured and what is the device? Command this to find out:
cdrecord -scanbus

# Recomended GUI front ends for CD burner
XCDRoast
K3b - CD/DVD Kreator for KDE
Adding an IDE CD-Writer to Linux
Linux DVD HOWTO
CD Writing HOWTO
Burning CDs on Linux
# Burn an ISO to disk
cdrecord -v speed=<burning speed> dev=<your device> /path/to/foo.iso ; eject

# New command for kernel 2-6?
cdrecord -v speed=8 dev=ATAPI:1,1,0 /home/fancy/gnuwinII_August_12_2004.iso ; eject

# Burn from disk to disk
cdrecord -v dev=<your device> speed=<burning speed> -isosize /dev/cdrom ; eject
# ISO information
isoinfo -i -d /dev/cdrom
# Generate an ISO from a directory.
mkisofs -vrTJUV "Label" -o foo.iso /path/to/directory

# Generate an ISO from a CD
dd if=/dev/cdrom of=foo.iso
# cdparanoia - search for a drive with reporting of autosense:
cdparanoia -vsQ
# Rip a complete audio CD with cdparanoia
cdparanoia -B "1-";eject
# Convert wav files to oggvorbis
oggenc somefile.wav
Linux MP3 CD Burning mini-HOWTO
# Convert mp3 to wav with lame
for i in *.mp3; do lame --decode $i `basename $i .mp3`.wav; done
# Burn a CD from wav files
cdrecord -v -audio -pad speed=<burning speed> dev=<your device> /path/to/*.wav;eject

cdrecord -v -audio -pad speed=8 dev=0,0,0 /home/fancy/recordings/*.wav;eject

# Copy CD using cdrdao
cdrdao read-cd --device <your device> --read-raw --datafile mydata.bin -v 99 mydata.cue
cdrdao write --device <your device> --overburn -v 99 --speed <burning speed> mydata.cue
# Erase a CDRW
cdrecord -v dev=<your device> speed=<burning speed> blank=fast
# Mount CD iso images as a filesystem
mount /path/to/foo.iso /mnt/<directory> -t iso9660 -o ro,loop=/dev/loop0
Example:
mount /home/fancy/iso/distros/Mandrake92-cd1-inst.i586.iso /mnt/cdrom -t iso9660 -o ro,loop=/dev/loop0
See man <command> or info <command> for full list of available flags and examples.
 
Old 03-07-2005, 10:31 PM   #3
yvesm
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Original Poster
Rep: Reputation: 15
It was not easy but I was able to copy the result of a command line. The system freeze after 3 seconds so i needed to be quick to copy/paste into a file. I had to "hard" reboot a few times before being able be successfull at it

I tried "ATAPI:1,1,0" then "1,0,0" and "0,0,0" which was the correct one
Note that after the call, even a "Control-Alt-Backspace" or "C-A-Delete" does not work.

Here are the result:
================

[username@machinename usename]$ cdrecord -v speed=32
dev=ATAPI:0,0,0 /home/username/MyDownloads/KNOPPIX_V3.7-2004-12-08-EN.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent
defaults.
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg
Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in this
version.
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 Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'MSI '
Identifikation : 'CD-RW MS-8348 '
Revision : '120D'
Device seems to be: Generic mmc CD-RW.
Current: 0x0009
Profile: 0x0008
Profile: 0x0009 (current)
Profile: 0x000A
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1806336 = 1764 KB
cdrecord: Input/output error. read buffer: scsi sendcmd: no error
CDB: 3C 00 00 00 00 00 00 FC 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
FIFO size : 4194304 = 4096 KB
Track 01: data 698 MB
Total size: 802 MB (79:31.78) = 357884 sectors
Lout start: 803 MB (79:33/59) = 357884 sectors

====
End of the result in the xtrerm command

Thanks fancypiper for any help.
 
Old 03-08-2005, 02:33 AM   #4
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Do you have any "hdc=ide-scsi" or similar in your lilo.conf (or menu.lst) ? If so, remove that.
Comment out any ide-scsi entry in /etc/modprobe.preload and /etc/modprobe.conf and reboot
Make sure you have ide-cd loaded ('modprobe ide-cd').
Try burning with 'cdrecord -dummy dev=/dev/hdc /home/username/MyDownloads/KNOPPIX_V3.7-2004-12-08-EN.iso'

- Peder
 
Old 03-08-2005, 06:35 AM   #5
yvesm
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Hello

I have checked the lilo, menu.lst and both modprobe files but there where no hdc=ide-scsi entries
I have run lsmod and the ide-cd is present.

I did try the command you have given and the result is below. It stops there with no more activity. At least the machine was not freezing so I could check what was running with KSysGuard. Nothing was growing in memory usage, cdrecord was using about 6 mb steady.

Here is the result command and the last line stayed there until I closed the terminal. Control-C did not stop it and I could not kill the cdrecord with the kill -9 command.

START
======

[username@machinename username]# cdrecord -dummy dev=/dev/hdc /home/username/MyDownloads/KNOPPIX_V3.7-2004-12-08-EN.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (warly-Mandrakelinux-scsi-linux-sg '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling').
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'MSI '
Identifikation : 'CD-RW MS-8348 '
Revision : '120D'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R

=====
END

Does it give you more ideas. I did a search of the message "cdrecord: Input/output error. read buffer: scsi sendcmd: no error" and only found something that talked about DMA. But I do not know what to do or what it means.
 
Old 03-08-2005, 07:15 AM   #6
yvesm
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Following the reply above I was able to copy/paste the result of a "cdrecord -d -dummy dev=/dev/hdc /home/moi/MyDownloads/KNOPPIX_V3.7-2004-12-08-EN.isocdrecord" command. Then the machine froze again. But there is more output.

Here:
===============

[username@machinename username]$ cdrecord -d -dummy dev=/dev/hdc /home/username/MyDownloads/KNOPPIX_V3.7-2004-12-08-EN.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
fs: 4194304 buflen: 4198400
cdrecord: shared memory segment attached at: 4014B000 size 4198400
buf: 4014B000 bufend: 4054C000, buflen: 4198400
buf: 4014B000 bufend: 4054C000, buflen: 4198400 (align 0)
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
scg__open(/dev/hdc) -2,-2,-2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
cdrecord: Warning: using inofficial libscg transport code version (warly-Mandrakelinux-scsi-linux-sg '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling').
Target (1,0,0): DMA max 129024 old max: 64512
SCSI buffer size: 64512
Target (1,0,0): DMA max 129024 old max: 64512
scgo_getbuf: 64512 bytes
ioctl ret: 0
host_status: 00 driver_status: 00

.... a great punch of the 2 lines below

host_status: 00 driver_status: 00
ioctl ret: 0
host_status: 00 driver_status: 00
ioctl ret: 0
host_status: 00 driver_status: 00
ioctl ret: 0
host_status: 00 driver_status: 00
cdrecord: Success. read buffer: scsi sendcmd: no error
CDB: 3C 00 00 00 00 00 00 FC 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes:
Sense Key: 0xFFFFFFFF [], Segment 0
Sense Code: 0x00 Qual 0x00 (no additional sense information) Fru 0x0
Sense flags: Blk 0 (not valid)
resid: 64512
cmd finished after 0.000s timeout 40s
ioctl ret: 0
host_status: 00 driver_status: 00

==========
Andthe machien froze and was hard rebooted a few minutes later

Thanks for helping me.
 
Old 03-08-2005, 09:36 AM   #7
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Try adding "nolapic noapic noacpi acpi=off" to the append line in lilo.conf , re-run lilo and reboot.
Perhaps this is another of those issues.

- Peder
 
Old 03-08-2005, 05:55 PM   #8
yvesm
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Original Poster
Rep: Reputation: 15
In lilo.conf, I had a line: append="acpi=ht splash=silent"
which I replaced with: append="nolapic noapic noacpi acpi=off splash=silent"
like you had instructed
But it did not make a difference. The system hangs.


What I do not understand is that in January, everything was fine. I used ArchLinux then and used Pacman to keep things updated and where OK. Then recently I needed to burn a cd and it was like now.

But after a week of trying to find an answer on Arch, I thought of using an old CD of Lindows Live 4.5.2 and I used it to burn the installation CDs of Mandrake that I downloaded. It was the only way to burn. I then freshly installed Mandrake 10.1 and it is still the same problem

So the old Lindows Live can burn CDs, the Mandrake can not. Something has happened since then (Udev, DMA, ??)

I think that now I am at the point of trowing the CD burner because It takes a long time to reboot with Lindows just to burn CD. (actually, I will give it to a friend, it works perfectly on a live CD)

Do you think that a DVD burner would not give the same problem than my cd burner. If you use one, which model works for you.

Thanks in advance,
Yves.
 
Old 03-10-2005, 06:09 AM   #9
yvesm
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Original Poster
Rep: Reputation: 15
I am bumping my thread once, to see if something more could be done before I giveup. Thanks Peder and fancypiper

Last edited by yvesm; 03-10-2005 at 06:10 AM.
 
  


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
Cannot burn on FC2 with cdrecord: martianpackets Linux - Hardware 4 01-13-2005 08:21 PM
k3b hangs when trying to burn dvd+rw disc but not cd rw disc laiboonh Slackware 0 11-06-2004 11:22 AM
k3b error with audio cd burn (no prob with iso burn) bluem Linux - Newbie 1 04-16-2004 08:05 AM
How do I burn a cd with cdrecord? Joey.Dale Linux - General 9 03-22-2004 05:57 PM
cdrecord will only burn speed 4 not above?.. dmx9595 Linux - General 6 08-08-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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