LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-10-2005, 03:39 AM   #1
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 117

Rep: Reputation: 17
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.

Last edited by Quercus ruber; 10-10-2005 at 09:30 AM.
 
Old 10-10-2005, 02:07 PM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,380

Rep: Reputation: 180Reputation: 180
Run k3b setup. It will ask for the root password and it will change permissions for you.
 
Old 10-10-2005, 03:07 PM   #3
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 117

Original Poster
Rep: Reputation: 17
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...
 
Old 10-10-2005, 05:24 PM   #4
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,380

Rep: Reputation: 180Reputation: 180
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.
 
Old 10-11-2005, 02:35 AM   #5
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,298

Rep: Reputation: 123Reputation: 123
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.
 
Old 10-11-2005, 08:43 AM   #6
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 117

Original Poster
Rep: Reputation: 17
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?
 
Old 10-12-2005, 02:34 AM   #7
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,298

Rep: Reputation: 123Reputation: 123
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.
 
Old 10-14-2005, 04:57 AM   #8
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 117

Original Poster
Rep: Reputation: 17
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...
 
Old 11-10-2005, 06:27 PM   #9
Pier
Member
 
Registered: Oct 2005
Location: Italy
Distribution: Gentoo
Posts: 83

Rep: Reputation: 17
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?
 
Old 11-13-2005, 08:23 AM   #10
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 117

Original Poster
Rep: Reputation: 17
no I still haven't got it fixed.....

Q. ruber
 
Old 01-18-2006, 06:31 AM   #11
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 117

Original Poster
Rep: Reputation: 17
Thumbs up 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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
K3B cd copy issue dickohead Mandriva 7 10-23-2006 10:38 AM
I can't copy CDs under K3B :( mikebalcos Slackware 5 10-27-2005 01:53 AM
k3b audio cd copy rlculver Linux - Software 0 07-11-2004 04:46 AM
K3b Cd Copy... wh33t Linux - Software 14 10-31-2003 03:49 PM
k3b cannot copy a cd krussell Linux - Software 2 09-21-2003 05:36 AM


All times are GMT -5. The time now is 09:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration