LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   can't copy cd using k3b (https://www.linuxquestions.org/questions/linux-general-1/cant-copy-cd-using-k3b-371430/)

Quercus ruber 10-10-2005 02:39 AM

can't copy cd using k3b
 
Hi

I can't copy cds with k3b. I can create a data cd project and burn it, and I can listen to an audio cd in the drive, but I can't duplicate cds. Can anyone suggest why not?

The relevant extract from my lilo.conf file looks like this:

Code:

# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hda5
  label = Linux
  append = "hdc=ide-scsi"
  read-only
# Linux bootable partition config ends

my /etc/fstab looks like this:

Code:

/dev/cdrom      /mnt/cdrom      iso9660    noauto,user,unhide,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,user    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
/etc/fstab lines 1-9/9 (END)


and /etc/modules.conf:

Code:

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.5 ---
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-cmipci
alias sound-slot-0 snd-cmipci
# --- END: Generated by ALSACONF, do not edit. ---

# added 26/09/05 try to activate midi
options snd-cmipci  enable_midi="1" mpu_port=0x330

#stop errors when kde looks for a second non existent sound card
alias sound-slot-1 off
alias sound-service-1-0 off

# scsi emulation for cdrom - write access
options ide-cd ignore=hdc            # tell the ide-cd module to ignore hdc
alias scd0 sr_mod                    # load sr_mod upon access of scd0
/etc/modules.conf lines 1-23/23 (END)

Any help would be appreciated

thanks

ros

ps, I just tried it logged in as root and that works fine.

mlangdn 10-10-2005 01:07 PM

Run k3b setup. It will ask for the root password and it will change permissions for you.

Quercus ruber 10-10-2005 02:07 PM

I tried that and it an d it changed the permissions from 660 to 666, but I still can't copy a cd. When I press Start to start the copy, the copying cd dialog pops up telling me that the source disk is being checked. The cd drive rumbles away, but the minutes pass and nothing happens...

mlangdn 10-10-2005 04:24 PM

I just noticed that you only have one cd drive in fstab. You may have to copy the cd to a temp folder, then burn it. If the burner is the only drive, I'm thinking there is a setting to check before you begin that will copy the cd, then have you change before the burn begins. But definitely copying to a folder first, then burning the file will work.

pingu 10-11-2005 01:35 AM

Check the temp-directory, maybe user hasn't write-access to it?
Since it works logged in as root, it must be a problem with permissions somewhere.

Quercus ruber 10-11-2005 07:43 AM

Curiouser and curiouser. Or praps I didn't wait long enough...


Well, I checked the permissions for /tmp/kde-ros and I do indeed have write access. So just to see what happened, I put a data cd in and tried to copy that. No problem whatsoever. It copied all the data into the tmp directory, ejected the drive and prompted me to put a new one in, which it duly wrote. So I tried my audio cd again, went and made myself a cup of tea and when I came back, I saw the following list of error messages in the dialog box:

Code:

Checking source disk.
Copying audio CD.
No CD-TEXT found.
No Cddb entry found.
Could not open device /dev/sr0
Error while reading session 1.
Removing temporary files.
Removing images files.

So I had a look at /dev/sr0 :-

Code:

ros@darkstar:~$ ls -l /dev/sr0
brw-rw-rw-  1 root cdrom 11, 0 1999-04-13 06:24 /dev/sr0
ros@darkstar:~$

That's OK isn't it?

pingu 10-12-2005 01:34 AM

Hmmm... a bit strange this...
/etc/fstab says
/dev/cdrom /mnt/cdrom iso9660 noauto,user,unhide,ro 0 0
but audio CD wants to use /dev/sr0? Which is a device in itself, not a link to /dev/hdc.
A wild guess now: try adding /dev/sr0 to /etc/fstab the same way as /dev/hdc.

Quercus ruber 10-14-2005 03:57 AM

Hmmm

changing fstab seems a bit of a fudge, especially as it works when I'm logged in as root, which suggests a problem with permissions. Here is some more info. I hope it helps.

from dmesg:

Code:

Kernel command line: BOOT_IMAGE=Linux ro root=305 hdc=ide-scsi
ide_setup: hdc=ide-scsi

.....

hda: ST340015A, ATA DISK drive
hdb: QUANTUM FIREBALL1280A, ATA DISK drive
blk: queue c03b3360, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03b349c, I/O limit 4095Mb (mask 0xffffffff)
hdc: AOPEN COM4824/AAH, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.

.....

hdc: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: AOPEN    Model: COM4824/AAH      Rev: 1.04
  Type:  CD-ROM                            ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 4x/48x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12

Then I ran k3b from the command line, and here is an edited listing ...

Code:

ros@darkstar:~$ k3b
various messages
k3b: /dev/sr0 resolved to /dev/sr0
k3b: /dev/sr0 is block device (0)
k3b: /dev/sr0 seems to be cdrom
k3b: (K3bCdDevice::DeviceManager) /dev/sr0 bus: 0, id: 0, lun: 0
k3b: (K3bCdDevice) /dev/sr0: init()
k3b: (K3bCdDevice) /dev/sr0: GET_CONFIGURATION length: 188.
k3b: (K3bCdDevice) /dev/sr0 unknown profile: 2
k3b: (K3bCdDevice) /dev/sr0 feature: Core
k3b: (K3bCdDevice) /dev/sr0 feature: Morphing
k3b: (K3bCdDevice) /dev/sr0 feature: Removable Medium
k3b: (K3bCdDevice) /dev/sr0 feature: Random Readable
k3b: (K3bCdDevice) /dev/sr0 feature: Multi-Read
k3b: (K3bCdDevice) /dev/sr0 feature: CD Read
k3b: (K3bCdDevice) /dev/sr0 feature: DVD Read
k3b: (K3bCdDevice) /dev/sr0 feature: Random Writable
k3b: (K3bCdDevice) /dev/sr0 feature: Incremental Streaming Writable
k3b: (K3bCdDevice) /dev/sr0 feature: Formattable
k3b: (K3bCdDevice) /dev/sr0 feature: Defect Management
k3b: (K3bCdDevice) /dev/sr0 feature: Restricted Overwrite
k3b: (K3bCdDevice) /dev/sr0 feature: MRW
k3b: (K3bCdDevice) /dev/sr0 feature: DVD+RW
k3b: (K3bCdDevice) /dev/sr0 feature: CD Track At Once
k3b: (K3bCdDevice) /dev/sr0 feature: CD Mastering
k3b: (K3bCdDevice) /dev/sr0 feature: Power Management
k3b: (K3bCdDevice) /dev/sr0: unknown feature: 257
k3b: (K3bCdDevice) /dev/sr0 feature: CD Audio analog play
k3b: (K3bCdDevice) /dev/sr0 feature: Timeout
k3b: (K3bCdDevice) /dev/sr0 feature: Read Time Streaming
k3b: (K3bCdDevice::CdDevice) /dev/sr0: dataLen: 60
k3b: (K3bDevice::Device) Error: could not open device /dev/sr0for writing
message repeated a few times
k3b: (K3bCdDevice::ScsiCommand) failed: fd: 10
k3b:                            command:    READ DVD STRUCTURE (ad)
k3b:                            errorcode:  70
k3b:                            sense key:  NOT READY (2)
k3b:                            asc:        3a
k3b:                            ascq:      1
k3b: (K3bCdDevice::CdDevice) Unable to read DVD structure.
k3b: (K3bDevice::Device) /dev/sr0:  Number of supported write speeds via 2A: 0
k3b: (K3bCdDevice::ScsiCommand) failed: fd: 10
k3b:                            command:    GET PERFORMANCE (ac)
k3b:                            errorcode:  70
k3b:                            sense key:  NOT READY (2)
k3b:                            asc:        3a
k3b:                            ascq:      1
k3b: (K3bCdDevice::CdDevice) /dev/sr0: GET PERFORMANCE length det failed.
k3b: (K3bDeviceManager) setting current write speed of device /dev/sr0 to 8448
k3b: /dev/scd0 resolved to /dev/scd0
k3b: /dev/scd0 is block device (0)
k3b: /dev/scd0 seems to be cdrom
k3b: (K3bCdDevice::DeviceManager) /dev/scd0 bus: 0, id: 0, lun: 0
k3b: (K3bDeviceManager) dev /dev/scd0 already found
k3b: (K3bDeviceManager) Link: /dev/dvd -> /dev/sr0
k3b: (K3bDeviceManager) Link: /dev/cdrom -> /dev/sr0
k3b: (K3bDevice::DeviceManager) SCANNING FOR GENERIC DEVICES.
k3b: (K3bDevice::Device) Error: could not open device /dev/sg0for reading
k3b: could not open device /dev/sg0 (Permission denied)
k3b: (K3bDevice::Device) Error: could not open device /dev/sg1for reading

list of lots of sg files that cannot be opened for reading

k3b: (K3bDeviceManager) scanning fstab: /dev/hda6
k3b: (K3bDevice::Device) Error: could not open device /dev/hda6for reading

list of lots of hd files that cannot be opened for reading

k3b: (K3bDeviceManager) scanning fstab: /dev/cdrom
k3b: (K3bDeviceManager) found device for /dev/cdrom: /dev/scd0

looks like its going through fstab looking for a device ...
k3b: /dev/hdc resolved to /dev/hdc
k3b: /dev/hdc is block device (0)
k3b: (K3bCdDevice::ScsiCommand) failed: fd: 9
k3b:                            command:    INQUIRY (12)
k3b:                            errorcode:  0
k3b:                            sense key:  NO SENSE (2)
k3b:                            asc:        0
k3b:                            ascq:      0
k3b: ERROR: (K3bCdDevice) Unable to do inquiry.
k3b: /dev/scd0 resolved to /dev/scd0
k3b: /dev/scd0 is block device (0)
k3b: /dev/scd0 seems to be cdrom
k3b: (K3bDeviceManager) dev /dev/scd0 already found
k3b: /dev/sr0 resolved to /dev/sr0
k3b: /dev/sr0 is block device (0)
k3b: /dev/sr0 seems to be cdrom
k3b: (K3bDeviceManager) dev /dev/sr0 already found
k3b: (K3bDeviceManager) found config entry for devicetype: AOPEN COM4824/AAH
k3b: (K3bDeviceManager) scanning fstab: /dev/hda6
k3b: (K3bDevice::Device) Error: could not open device /dev/hda6for reading
k3b: could not open device /dev/hda6 (Permission denied)

going on thru fstab ....

k3b: (K3bDeviceManager) scanning fstab: /dev/cdrom
k3b: (K3bDeviceManager) found device for /dev/cdrom: /dev/scd0
k3b: (K3bDeviceManager) scanning fstab: /dev/fd0
k3b: (K3bDeviceManager) scanning fstab: devpts
k3b: Could not resolve devpts

and on ....

k3b: Devices:
k3b: ------------------------------
k3b: Blockdevice:    /dev/sr0
k3b: Vendor:        AOPEN
k3b: Description:    COM4824/AAH
k3b: Version:        1.04
k3b: MountDevice:    /dev/cdrom
k3b: Mountpoint:    /mnt/cdrom
k3b: Write speed:    8448
k3b: Profiles:      DVD-ROM; CD-ROM; CD-R; CD-RW
k3b: Devicetype:    CD-R; CD-RW; CD-ROM; DVD-ROM
k3b: Writing modes:  SAO; TAO; RAW; SAO/R16; RAW/R96P; RAW/R96R
k3b: Reader aliases: /dev/sr0, /dev/scd0, /dev/dvd, /dev/cdrom
k3b: ------------------------------
k3b: Version: 1.0
k3b: WARNING: KGenericFactory: instance requested but no instance name passed to the constructor!
k3b: (K3b::cutToWidth) not able to cut text to 1!
k3b: (K3bCore) System problems:
k3b:          - none -

I think there are things going on here that I don't understand...

Pier 11-10-2005 05:27 PM

Hi,
I am having the same problem with copying audio CD. OK with data yet no dice with audio. Did you finally manage to get it fixed?

Quercus ruber 11-13-2005 07:23 AM

no I still haven't got it fixed.....

Q. ruber

Quercus ruber 01-18-2006 05:31 AM

Solved
 
I tried executing cdparanoia from the command line to see if that worked and it didn't. I got this message:
Code:

dev/cdrom exists but isn't accessible.  By default,
cdparanoia stops searching for an accessible drive here.
Consider using -sv to force a more complete autosense
of the machine.

More information about /dev/cdrom:
Checking /dev/cdrom for cdrom...
        Testing /dev/cdrom for cooked ioctl() interface
                /dev/scd0 is not a cooked ioctl CDROM.
        Testing /dev/cdrom for SCSI interface
                No generic SCSI device found to match CDROM device /dev/scd0

After a lot of googling, I made 1 small change:
Code:

# chmod 666 /dev/sg0
and then it was fine. See this post:

http://www.linuxquestions.org/questi...d.php?t=302699 .

I hope this helps someone

Q. ruber


All times are GMT -5. The time now is 05:10 AM.