Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
k3b not finding CD/DVD burner
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
sheriff-jms
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 79
Location: Pittsburgh, PA, USA

PostPosted: Tue Jan 15, 2008 6:15 am    Post subject: k3b not finding CD/DVD burner Reply with quote

I'm trying to get k3b fired up on a relatively clean Gentoo install (2.6.21-r4). This is on a Dell Latitude
D820 laptop with a built-in DVD burner.

The burner is recognized at boot-up, it is assigned a SCSI ID, and udev gives it an 'sg' character device.
Output from dmesg:

Code:
scsi 1:0:0:0: CD-ROM            _NEC     DVD+-RW ND-6650A 102C PQ: 0 ANSI: 5
scsi 1:0:0:0: Attached scsi generic sg1 type 5


/dev/sg1 exists and appears to have the correct permissions:
Code:
reverb ~ # ls -l /dev/sg1
crw-rw---- 1 root cdrom 21, 1 Jan 14 19:41 /dev/sg1


What I don't see is a block device that k3b will recognize as something it can use to write to the burner.
I would have expected that udev would have also created an "sr" or "scd" block device, but I could be mistaken.
My udev config is vanilla - I haven't made any special hacks to it.

The user who is trying to use k3b is in the cdrom group.

I have a feeling I'm missing something simple here, but I'm having a devil of a time finding it...

Thanks in advance
jms
Back to top
View user's profile Send private message
piewie
Guru
Guru


Joined: 26 Sep 2002
Posts: 489
Location: old Europe

PostPosted: Tue Jan 15, 2008 7:23 am    Post subject: Reply with quote

the output of "# cdrecord -scanbus"?
Back to top
View user's profile Send private message
sheriff-jms
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 79
Location: Pittsburgh, PA, USA

PostPosted: Tue Jan 15, 2008 1:23 pm    Post subject: Reply with quote

cdrecord -scanbus output:
Code:
Cdrecord-ProDVD-ProBD-Clone 2.01.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2007 Jörg Schilling
Linux sg driver version: 3.5.34
Using libscg version 'schily-0.9'.
scsibus0:
        0,0,0     0) 'ATA     ' 'Hitachi HTS72108' 'MC4O' Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) '_NEC    ' 'DVD+-RW ND-6650A' '102C' Removable CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *


This appears to be accurate. The hard drive is serial ATA, so it shows up as a SCSI device.

jms
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 678

PostPosted: Tue Jan 15, 2008 2:08 pm    Post subject: Reply with quote

What's in your fstab?
Back to top
View user's profile Send private message
piewie
Guru
Guru


Joined: 26 Sep 2002
Posts: 489
Location: old Europe

PostPosted: Tue Jan 15, 2008 3:16 pm    Post subject: Reply with quote

So start with the following beginning and enjoy - don't know what you want to do exactly.

# cdrecord -v dev=1,0,0 ....
Back to top
View user's profile Send private message
sheriff-jms
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 79
Location: Pittsburgh, PA, USA

PostPosted: Wed Jan 16, 2008 2:13 am    Post subject: Reply with quote

/etc/fstab contents:

Code:
/dev/sda1               /boot           reiserfs        noauto,noatime,notail 1 2
/dev/sda3               /               reiserfs        noatime         0 1
/dev/sda2               none            swap            sw              0 0
/dev/sda5               /usr            reiserfs        noatime         0 2
/dev/sda6               /var            reiserfs        noatime         0 2
/dev/sda7               /home           reiserfs        noatime         0 2
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0
none                    /tmp            tmpfs           defaults        0 0
proc                    /proc           proc            defaults        0 0
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec 0 0


What I'd like to be able to do is burn from k3b. k3b reports that it can't find a CD/DVD
writer at start-up and won't use /dev/sg1 if I explicitly tell it to because it's not a block device.
k3b knows the drive is there because it resolves the bus/id/lun triplet for /dev/sg1.

Code:
(K3bDevice::DeviceManager) SCANNING FOR GENERIC DEVICES.
(K3bDevice::Device) could not open device /dev/sg0 for reading
                    (Permission denied)
bus: 1, id: 0, lun: 0
Could not resolve /dev/sg2
(K3bDevice::Device) could not open device /dev/sg2 for reading
                    (No such file or directory)


/dev/sg0 is the character device for my SATA hard drive, so I understand why k3b can't open it.
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 678

PostPosted: Wed Jan 16, 2008 6:45 am    Post subject: Reply with quote

I don't know if it'll help you but I once had to change my /dev/cdrom to /dev/hdc in fstab because I had problems.
Back to top
View user's profile Send private message
sheriff-jms
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 79
Location: Pittsburgh, PA, USA

PostPosted: Wed Jan 16, 2008 1:45 pm    Post subject: Reply with quote

I checked and right now an equivalent block device is not being created for /dev/sg1.

No /dev/sdb*, no dev/sr*, no /dev/scd*, no /dev/hd*
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Wed Jan 16, 2008 6:34 pm    Post subject: Reply with quote

what version of k3b; I had to downgrade to 0.12.17 else had
trouble with drive recognition...
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
sheriff-jms
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 79
Location: Pittsburgh, PA, USA

PostPosted: Thu Jan 17, 2008 1:49 am    Post subject: Reply with quote

This problem existed in 0.12.17. I tried upgrading to 1.0.4, which is what's installed right now, and the
same problem still exists.
Back to top
View user's profile Send private message
sheriff-jms
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 79
Location: Pittsburgh, PA, USA

PostPosted: Thu Jan 17, 2008 10:22 pm    Post subject: Reply with quote

I'm not dead-set on using k3b - it's just one of the few Linux CD/DVD burning apps I've used in the past that worked straight away :).
I've tried many others (eroaster, GNOME CD writer, xcdroast, brasero, etc) and I found most of them to be lacking in one way or another.

I'm open to suggestions on other apps to try. They must be able to burn audio and data CDs and DVDs, regular source files
or ISO images.
Back to top
View user's profile Send private message
gasparov
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2006
Posts: 105

PostPosted: Thu Jan 17, 2008 11:02 pm    Post subject: Reply with quote

Almost the same mess here....

Code:
scsi6 : pata_marvell
scsi7 : pata_marvell
scsi 6:0:0:0: CD-ROM            PHILIPS  SPD2414T         P1.0 PQ: 0 ANSI: 5
scsi 6:0:0:0: Attached scsi generic sg2 type 5


Code:
gentoo gas # ls -l /dev/sg1
crw-rw---- 1 root root 21, 1 2008-01-18 07:34 /dev/sg1


Code:
gentoo gas # cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 2.01.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2007 Jörg Schilling
Linux sg driver version: 3.5.34
Using libscg version 'schily-0.9'.
scsibus0:
   0,0,0     0) 'ATA     ' 'Maxtor 6Y160M0  ' 'YAR5' Disk
   0,1,0     1) *
   0,2,0     2) *
   0,3,0     3) *
   0,4,0     4) *
   0,5,0     5) *
   0,6,0     6) *
   0,7,0     7) *
scsibus1:
   1,0,0   100) 'ATA     ' 'Maxtor 6Y160M0  ' 'YAR5' Disk
   1,1,0   101) *
   1,2,0   102) *
   1,3,0   103) *
   1,4,0   104) *
   1,5,0   105) *
   1,6,0   106) *
   1,7,0   107) *
scsibus6:
   6,0,0   600) 'PHILIPS ' 'SPD2414T        ' 'P1.0' Removable CD-ROM
   6,1,0   601) *
   6,2,0   602) *
   6,3,0   603) *
   6,4,0   604) *
   6,5,0   605) *
   6,6,0   606) *
   6,7,0   607) *
gentoo gas #


The question is...how is that is just k3b that is not working ? I just have a phisically attached drdrw right now.....

However I tried to disable AHCI , deleted udev rules and remerged udev, this time I don't find a "persistent cd .rules" or something like this, so probably is udev related.

Code:
gentoo gas # sg_map
/dev/sg0  /dev/sda
/dev/sg1  /dev/sdb
/dev/sg2


Why is scsi?

P.S. IMO this is not a multimedia issue, should be moved....
Back to top
View user's profile Send private message
gasparov
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2006
Posts: 105

PostPosted: Thu Jan 17, 2008 11:37 pm    Post subject: Reply with quote

gasparov wrote:

Code:
gentoo gas # sg_map
/dev/sg0  /dev/sda
/dev/sg1  /dev/sdb
/dev/sg2


Why is scsi?



...donkey. I even asked.

Character devices named sgX are generic scsi that are mapped to blocked devices, it means that the kernel rconsiders them scsi devices. I didn't have SCSI CDROM support in the kernel and hence it couldn't map the device to a block one.

With the new kernel I finally have a "70-persistent-cd.rules" in /etc/udev/rules and

Code:

/dev/sg0  /dev/sda
/dev/sg1  /dev/sdb
/dev/sg2  /dev/scd0


Code:
gentoo rules.d # ls -al /dev/|grep scd0
lrwxrwxrwx  1 root root         3 2008-01-18 08:22 scd0 -> sr0
gentoo rules.d # ls -al /dev/|grep sr0
lrwxrwxrwx  1 root root         3 2008-01-18 08:22 cdrom -> sr0
lrwxrwxrwx  1 root root         3 2008-01-18 08:22 cdrw -> sr0
lrwxrwxrwx  1 root root         3 2008-01-18 08:22 dvd -> sr0
lrwxrwxrwx  1 root root         3 2008-01-18 08:22 dvdrw -> sr0
lrwxrwxrwx  1 root root         3 2008-01-18 08:22 scd0 -> sr0
brw-rw----  1 root cdrom  11,   0 2008-01-18 08:22 sr0


Back to normal

kernel config = expires after 1 month
Back to top
View user's profile Send private message
sheriff-jms
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 79
Location: Pittsburgh, PA, USA

PostPosted: Thu Jan 17, 2008 11:51 pm    Post subject: partially solved... Reply with quote

I looked through my udev configs and ran a 'udevtest /class/scsi_device/1:0:0:0' and I noticed that there was no output
after udevd tried to do a 'modprobe mod_sr', which would create the /dev/sr* block devices that k3b is looking for...

I checked my kernel config and sure enough, there were some options that needed to be enabled. Specifically I enabled:

Device Drivers -> SCSI Device Support -> SCSI target support
Device Drivers -> SCSI Device Support -> SCSI CDROM support

I enabled these options, rolled a new kernel and rebooted. I could have also built the SCSI CDROM support as a module
and tested without needing to reboot, but I opted to roll a new kernel. When I rebooted, I saw good things in dmesg:

Code:
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
sr 1:0:0:0: Attached scsi CD-ROM sr0
sd 0:0:0:0: Attached scsi generic sg0 type 0
sr 1:0:0:0: Attached scsi generic sg1 type 5


and now the block device /dev/sr0 exists, with the correct permissions:

Code:
brw-rw---- 1 root cdrom 11, 0 Jan 17 13:13 /dev/sr0


k3b no longer complains that it can't find a CD/DVD writer.

The next issue I'm wrestling with is that cdrecord is now unhappy and won't write CDs, based on the debugging output from k3b:

Code:
System
-----------------------
K3b Version: 1.0.4

KDE Version: 3.5.7
QT Version:  3.3.8
Kernel:      2.6.21-gentoo-r4
Devices
-----------------------
_NEC DVD+-RW ND-6650A 102C (/dev/sr0, /dev/sg1) [CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD+R DL] [DVD-ROM, DVD-R Sequential, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW] [SAO, TAO, RAW, SAO/R96R, RAW/R96R, Restricted Overwrite]

K3bIsoImager
-----------------------
mkisofs print size result: 283492 (580591616 bytes)
Pipe throughput: 117760 bytes read, 113408 bytes written.

Used versions
-----------------------
mkisofs: 2.1.1a34
cdrecord: 2.1.1a34

cdrecord
-----------------------
/usr/bin/cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits./usr/bin/cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
/usr/bin/cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
/usr/bin/cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: '/dev/sr0'
devname: '/dev/sr0'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
SCSI buffer size: 64512
Cdrecord-ProDVD-ProBD-Clone 2.01.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2007 Jörg Schilling
TOC Type: 3 = CD-ROM XA mode 2
Using libscg version 'schily-0.9'.
Driveropts: 'burnfree'
atapi: 1
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   :
Vendor_info    : '_NEC    '
Identifikation : 'DVD+-RW ND-6650A'
Revision       : '102C'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD+R/DL
Profile: DVD+R
Profile: DVD+RW
Profile: DVD-RW sequential recording
Profile: DVD-RW restricted overwrite
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW
Profile: CD-R (current)
Profile: CD-ROM (current)
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
Drive buf size : 1343488 = 1312 KB
FIFO size      : 4194304 = 4096 KB
/usr/bin/cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl.
/usr/bin/cdrecord: Operation not permitted. Cannot open or use SCSI driver.
/usr/bin/cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
/usr/bin/cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Track 01: data   553 MB       
Total size:      635 MB (62:59.92) = 283494 sectors
Lout start:      636 MB (63:01/69) = 283494 sectors

cdrecord command:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/sr0 speed=24 -tao driveropts=burnfree -eject -multi -xa -tsize=283492s -

mkisofs
-----------------------
/usr/bin/mkisofs: Warning: Cannot add inode hints with -no-cache-inodes.
/usr/bin/mkisofs: Warning: Cannot add inode hints with -no-cache-inodes.
283492
/usr/bin/mkisofs: Warning: Cannot add inode hints with -no-cache-inodes.

mkisofs calculate size command:
-----------------------
/usr/bin/mkisofs -gui -graft-points -print-size -quiet -volid dsotm-20071026 -volset  -appid K3B THE CD KREATOR (C) 1998-2006 SEBASTIAN TRUEG AND THE K3B TEAM -publisher  -preparer  -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-streiner/k3bd23i4b.tmp -rational-rock -hide-list /tmp/kde-streiner/k3byiEuuc.tmp -joliet -joliet-long -hide-joliet-list /tmp/kde-streiner/k3bxOaCbc.tmp -no-cache-inodes -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-streiner/k3b5BEjpc.tmp

mkisofs command:
-----------------------
/usr/bin/mkisofs -gui -graft-points -volid dsotm-20071026 -volset  -appid K3B THE CD KREATOR (C) 1998-2006 SEBASTIAN TRUEG AND THE K3B TEAM -publisher  -preparer  -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-streiner/k3bBpz3Ub.tmp -rational-rock -hide-list /tmp/kde-streiner/k3bjTal8a.tmp -joliet -joliet-long -hide-joliet-list /tmp/kde-streiner/k3b0fHYuc.tmp -no-cache-inodes -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-streiner/k3bUFyDoc.tmp


cdrecord-scanbus shows the same information as before:

Code:
Linux sg driver version: 3.5.34
Cdrecord-ProDVD-ProBD-Clone 2.01.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-20
07 Jörg Schilling
Using libscg version 'schily-0.9'.
scsibus0:
        0,0,0     0) 'ATA     ' 'Hitachi HTS72108' 'MC4O' Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) '_NEC    ' 'DVD+-RW ND-6650A' '102C' Removable CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *


So, at least some progess has been made. We're getting there... :)
Back to top
View user's profile Send private message
Odinist
Apprentice
Apprentice


Joined: 09 Aug 2006
Posts: 176
Location: Silesia, Poland

PostPosted: Fri Jan 18, 2008 2:01 pm    Post subject: Reply with quote

What about running k3b from root?
Back to top
View user's profile Send private message
sheriff-jms
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 79
Location: Pittsburgh, PA, USA

PostPosted: Fri Jan 18, 2008 3:43 pm    Post subject: Reply with quote

I tested that last night. Running k3b as root works, so it looks like it's down to being a permissions problem.

/dev/sr0 looks like it has the right permissions and the non-root user I originally tried to use k3b as is in the "cdrom" group.
Back to top
View user's profile Send private message
Odinist
Apprentice
Apprentice


Joined: 09 Aug 2006
Posts: 176
Location: Silesia, Poland

PostPosted: Fri Jan 18, 2008 3:57 pm    Post subject: Reply with quote

Try
Code:
$ chmod 0666 /dev/sr0

for me works ;P


Last edited by Odinist on Sun Jan 20, 2008 12:21 am; edited 1 time in total
Back to top
View user's profile Send private message
jakeluck
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2003
Posts: 84

PostPosted: Sat Jan 19, 2008 7:08 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-644915.html

i am having a similarly sounding problem though on a newer kernel and with a SATA burner. what does
your /proc/sys/dev/cdrom/info say?
Back to top
View user's profile Send private message
sheriff-jms
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 79
Location: Pittsburgh, PA, USA

PostPosted: Sat Jan 19, 2008 4:56 pm    Post subject: Reply with quote

my /proc/sys/dev/cdrom/info says:

Code:
drive name:             sr0
drive speed:            24
drive # of slots:       1
Can close tray:         1
Can open tray:          1
Can lock tray:          1
Can change speed:       1
Can select disk:        0
Can read multisession:  1
Can read MCN:           1
Reports media changed:  1
Can play audio:         1
Can write CD-R:         1
Can write CD-RW:        1
Can read DVD:           1
Can write DVD-R:        1
Can write DVD-RAM:      0
Can read MRW:           1
Can write MRW:          1
Can write RAM:          1
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Mon Jan 21, 2008 1:58 pm    Post subject: Reply with quote

are you in the cdrw group?
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
sheriff-jms
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 79
Location: Pittsburgh, PA, USA

PostPosted: Tue Jan 22, 2008 1:01 am    Post subject: Reply with quote

Yes, I am in both the cdrom and cdrw groups.
Back to top
View user's profile Send private message
tgurr
Retired Dev
Retired Dev


Joined: 27 Jan 2004
Posts: 571
Location: germany

PostPosted: Tue Jan 22, 2008 7:10 am    Post subject: Reply with quote

Try with cdrkit instead of cdrtools.
Code:
emerge -C app-cdr/cdrtools && emerge app-cdr/cdrkit --oneshot
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1709

PostPosted: Tue Jan 22, 2008 8:22 am    Post subject: Reply with quote

This may be a dumb question, but if it's only a permissions issue at this point, are you sure that you ran 'K3BConfig' (or whatever the K3B config program is called)?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum