Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] K3b cant find DVD drive (What's New?)
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
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Mon Feb 07, 2011 12:17 am    Post subject: [SOLVED] K3b cant find DVD drive (What's New?) Reply with quote

I hate bothering you guys about every little thing I can't figure out, but if I could figure them out, I wouldn't need to bother you....

Lets say I want to burn a DVD ISO, I fire up K3b, it gives me an error message that indicates that it can't find my DVD drive.
If I run K3b as root, I get an error message that indicates that app-cdr/dvd+rw-tools is not installed. I currently have version 7.1-r1 installed. However, I can mount the DVD drive and burn an ISO without any problems.
This to me means it is a problem with permissions. I have looked up how to resolve this issue and came up with three dozens ways to fix it. I've tried several to no avail. Don't ask which ones I've tried, I don't remember.
What should I look at to determine what I need to do to resolve this issue?

Thanks!


Last edited by Bob Leny on Mon Feb 14, 2011 1:12 am; edited 1 time in total
Back to top
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Mon Feb 07, 2011 2:45 am    Post subject: Reply with quote

Is your user in the cdrom and cdrw groups?
_________________
AMD FX6100 CPU, 16 GiB RAM, OCZ Vertex 3 SSD
ASRock 970 Extreme3 motherboard with S/PDIF audio
Galaxy-NVidia GeForce 8800GT video card, Cyber Power CP550HG USB UPS
Back to top
View user's profile Send private message
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Mon Feb 07, 2011 3:50 am    Post subject: Reply with quote

Yes, I am a member of both groups...
Quote:
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root,bob,adm,haldaemon
lp:x:7:lp
mem:x:8:
kmem:x:9:
wheel:x:10:root,bob
floppy:x:11:root,haldaemon
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:man
console:x:17:
audio:x:18:bob
cdrom:x:19:bob,haldaemon
dialout:x:20:root
tape:x:26:root
video:x:27:root,bob
cdrw:x:80:bob,haldaemon
usb:x:85:bob,haldaemon
users:x:100:games,bob
nofiles:x:200:
smmsp:x:209:smmsp
portage:x:250:portage
utmp:x:406:
nogroup:x:65533:
nobody:x:65534:
sshd:x:22:
bob:x:1000:bob
messagebus:x:199:
haldaemon:x:198:haldaemon
plugdev:x:197:haldaemon
cron:x:16:
scanner:x:196:
games:x:35:
ssmtp:x:195:
crontab:x:194:
lpadmin:x:106:
mysql:x:60:
apache:x:81:
truecrypt:x:1001:bob
vboxusers:x:105:
Back to top
View user's profile Send private message
andrewthomas
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2010
Posts: 93

PostPosted: Tue Feb 08, 2011 2:06 am    Post subject: Reply with quote

What version of kde are you running?

also post the output of

Code:
rc-update show
Back to top
View user's profile Send private message
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Tue Feb 08, 2011 2:02 pm    Post subject: Reply with quote

I am running K3b 2.0.0 on KDE 4.4.5.

Quote:

rc-update show
apache2 | default
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
hald | default
hostname | boot
keymaps | boot
local | default nonetwork
localmount | boot
metalog | default
modules | boot
mysql | default
net.eth0 | default
net.lo | boot
netmount | default
rmnologin | boot
udev-postmount | default
urandom | boot
vboxdrv | default
vboxweb-service | default
xdm | default
Back to top
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Thu Feb 10, 2011 11:25 pm    Post subject: Reply with quote

Does
Code:
$ cdrecord --scanbus
see your cdrw?

Does
Code:
help->system check
in k3b show any problems?
_________________
AMD FX6100 CPU, 16 GiB RAM, OCZ Vertex 3 SSD
ASRock 970 Extreme3 motherboard with S/PDIF audio
Galaxy-NVidia GeForce 8800GT video card, Cyber Power CP550HG USB UPS
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Fri Feb 11, 2011 3:30 pm    Post subject: Reply with quote

Maybe hald is not running? Dbus?

How about ls -l /dev/sr*
_________________
My blog
Back to top
View user's profile Send private message
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Sat Feb 12, 2011 9:44 pm    Post subject: Reply with quote

Quote:
cdrecord --scanbus
scsibus4:
4,0,0 400) 'PIONEER ' 'DVD-RW DVR-216D' '1.08' Removable CD-ROM
4,1,0 401) *
4,2,0 402) *
4,3,0 403) *
4,4,0 404) *
4,5,0 405) *
4,6,0 406) *
4,7,0 407) *


K2b's System Check is what gives me the error when I first start K3b.
"It gives me an error message that indicates that it can't find my DVD drive."
Quote:
No optical drive found.
K3b did not find any optical device in your system.
Solution: Make sure HAL daemon is running, it is used by K3b for finding devices.


dE_logics wrote:
Maybe hald is not running? Dbus?

I don't know what you mean by Dbus, but Hald is running:
Quote:
/etc/init.d/hald start
* WARNING: hald has already been started.


Quote:
ls -l /dev/sr*
brw-rw---- 1 root cdrom 11, 0 Feb 11 12:07 /dev/sr0
Back to top
View user's profile Send private message
IanPo
n00b
n00b


Joined: 30 May 2006
Posts: 64
Location: Moscow, Russia

PostPosted: Sun Feb 13, 2011 1:19 pm    Post subject: Reply with quote

As i take it, dbus policy has changed.
Being started by a user (to see log run it from console), k3b can't find a drive:

Code:

k3b(9771)/kdeui (kdelibs): Attempt to use QAction "view_projects" with KXMLGUIFactory!
k3b(9771)/kdeui (kdelibs): Attempt to use QAction "view_dir_tree" with KXMLGUIFactory!
k3b(9771)/kdeui (kdelibs): Attempt to use QAction "view_contents" with KXMLGUIFactory!
k3b(9771)/kdeui (kdelibs): Attempt to use QAction "location_bar" with KXMLGUIFactory!
QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&)  error:  "org.freedesktop.DBus.Error.AccessDenied"



For the same reason krusader(run as user) can't get a list of mounted drives anymore.
I think we are to give the user some rights.
Back to top
View user's profile Send private message
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Sun Feb 13, 2011 3:06 pm    Post subject: Reply with quote

Ok, how do I give myself these rights?

This is the lack of error I get when I run K3b as root:
Quote:
George bob # sudo k3b
kdeinit4: preparing to launch /usr/lib64/libkdeinit4_klauncher.so
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeinit4: preparing to launch /usr/lib64/libkdeinit4_kded4.so
kdeinit4: preparing to launch /usr/lib64/libkdeinit4_kbuildsycoca4.so
kbuildsycoca4 running...
kdeinit4: preparing to launch /usr/lib64/libkdeinit4_kconf_update.so
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
k3b(8070)/kdeui (kdelibs): Attempt to use QAction "view_projects" with KXMLGUIFactory!
k3b(8070)/kdeui (kdelibs): Attempt to use QAction "view_dir_tree" with KXMLGUIFactory!
k3b(8070)/kdeui (kdelibs): Attempt to use QAction "view_contents" with KXMLGUIFactory!
k3b(8070)/kdeui (kdelibs): Attempt to use QAction "location_bar" with KXMLGUIFactory!
George bob # kdeinit4: preparing to launch /usr/lib64/kde4/kio_trash.so
kdeinit4: preparing to launch /usr/lib64/kde4/kio_file.so
kdeinit4: preparing to launch /usr/lib64/kde4/kio_file.so
kdeinit4: preparing to launch /usr/lib64/kde4/kio_file.so


When I run K3b as a normal user, I get the following error which is very similar to the error you presented.
Quote:
bob@George ~ $ k3b
QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&) error: "org.freedesktop.DBus.Error.AccessDenied"

k3b(7914)/kdeui (kdelibs): Attempt to use QAction "view_projects" with KXMLGUIFactory!
k3b(7914)/kdeui (kdelibs): Attempt to use QAction "view_dir_tree" with KXMLGUIFactory!
k3b(7914)/kdeui (kdelibs): Attempt to use QAction "view_contents" with KXMLGUIFactory!
k3b(7914)/kdeui (kdelibs): Attempt to use QAction "location_bar" with KXMLGUIFactory!
bob@George ~ $ QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&) error: "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&) error: "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&) error: "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&) error: "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&) error: "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&) error: "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&) error: "org.freedesktop.DBus.Error.AccessDenied"

QStringList Solid::Backends::Hal::HalManager::findDeviceByDeviceInterface(const Solid::DeviceInterface::Type&) error: "org.freedesktop.DBus.Error.AccessDenied"


I would say it is quite obvious that this is a permissions issue. Who do I need to give permissions to, K3b or me?
Back to top
View user's profile Send private message
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Sun Feb 13, 2011 3:35 pm    Post subject: Reply with quote

In my searches for a solution to my problem, I found a file located at /usr/share/doc/k3b-2.0.0/ called PERMISSIONS.bz2.
It reads:
Quote:
K3b needs some special permissions to work properly. Most distrobutions come with permissions that I don't like
very much and make problems when adding new CD/DVD devices to your system.
If you set up your system as follows you can be sure to never have K3b permission problems again.

1. Disable pam authentication for cdrom and burner devices in /etc/security/console.perm. Otherwise your permissions
will be overwritten when loggin in and it's not possible for two users to use K3b at the same time.
In my opinion one should disable this completely and create a proper configuration instead. The most annoying
issue with this pam stuff is that you cannot have two sessions with two different users running because the first
one owns all the sound and cd devices.

2. Create a cdrom or cdrw or whatever group (if it not already exists) and add all users that should be able to
use K3b to that group. You may also skip this step and let everybody use K3b. In that case simply use root as
the group and permissions 4711 and 666 instead of 4710 and 660 in the following steps.

3. Change the permissions of cdrecord and cdrdao to 4710 root.cdrom (substitute cdrom with the group from 2).
This way both will run suid root which allows them to increase their scheduling priority resulting in a more
stable burning process.

4. Change the permissions of all your cdrom device to 660 root.cdrom (substitute cdrom with the group from 2).
With devfs you may do this with lines like this (the first changes all ide cd devices while the second takes
care of the scsi cd devices):
REGISTER ^ide/host.*/bus.*/target.*/lun.*/cd PERMISSIONS root.cdrom 660
REGISTER ^scsi/host.*/bus.*/target.*/lun.*/cd PERMISSIONS root.cdrom 660
In case you are not using devfs you may determine the devices by running K3b once as root and looking in the
device settings. The corresponding devices are listed there.

5. Change the permissions of the generic SCSI devices to 660 root.cdrom (substitute cdrom with the group from 2).
Both cdrecord and cdrdao use the generic devices to access the scsi drives. So you don't need to perform this step
if you only have IDE devices.
Use a line like the following for devfs:
REGISTER ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS root.cdrom 660
In case you are not using devfs the devices are /dev/sg*.


This file seems to indicate that I need to give the cdrw and cdrom groups more permissions, but doesn't seem to specify how to do that. I know how to change the permissions of a file, which is all I can seem to find online, but I don't know how to change the permissions of a group. I also don't have a /etc/security/console.perm....

I guess, if no one has any other ideas, how do I change group permissions?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Feb 13, 2011 3:59 pm    Post subject: Reply with quote

Try not to mess with things you don't quite understand.

KDE upstream tends to give misguided advices anyway.

Anyway, for KDE <4.6.0 you still need to be in plugdev group (it's a hal thing).
Back to top
View user's profile Send private message
IanPo
n00b
n00b


Joined: 30 May 2006
Posts: 64
Location: Moscow, Russia

PostPosted: Sun Feb 13, 2011 5:25 pm    Post subject: Reply with quote

Found (and successfully tested) this solution:

~/.xinitrc

before:
exec startfluxbox

now:
exec ck-launch-session startfluxbox

Interesting about deprecated HAL:
http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.8-upgrade-guide.xml
Back to top
View user's profile Send private message
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Mon Feb 14, 2011 1:11 am    Post subject: Reply with quote

Your kidding me all I needed to do was add myself to plugdev!? If only I had known that a year ago... lol

The device notifier shows up now when I put a DVD in the drive too!

Thanks for your help!
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Feb 14, 2011 1:14 am    Post subject: Reply with quote

Well, given that KDE packages tend to be stabilized quickly, it's not that helpful,
given 4.6.0 changes.
Back to top
View user's profile Send private message
DancesWithWords
Guru
Guru


Joined: 29 Jun 2002
Posts: 347
Location: ottawa, canada

PostPosted: Tue Mar 15, 2011 12:07 am    Post subject: Reply with quote

dE_logics wrote:
Maybe hald is not running? Dbus?

How about ls -l /dev/sr*


I've got the same problem.

When I performed the the above function I got

nothing.

if I do the following I get:
bbox / # ls -l /dev/sd*
brw-rw---- 1 root disk 8, 0 Mar 13 16:49 /dev/sda
brw-rw---- 1 root disk 8, 1 Mar 13 16:49 /dev/sda1
brw-rw---- 1 root disk 8, 2 Mar 13 16:49 /dev/sda2
brw-rw---- 1 root disk 8, 3 Mar 13 16:49 /dev/sda3
brw-rw---- 1 root disk 8, 16 Mar 13 16:49 /dev/sdb
brw-rw---- 1 root disk 8, 17 Mar 13 16:49 /dev/sdb1
brw-rw---- 1 root disk 8, 32 Mar 13 16:49 /dev/sdc

bbox / # ls -l /dev/hd*
brw-rw---- 1 root disk 3, 0 Mar 13 16:49 /dev/hda


do that mean I've got something setup wrong in my kernel?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Mar 15, 2011 3:23 am    Post subject: Reply with quote

@DancesWithWords: as a start, complete the libata migration.
Hard to tell if it helps, but it shouldn't hurt.
Back to top
View user's profile Send private message
DancesWithWords
Guru
Guru


Joined: 29 Jun 2002
Posts: 347
Location: ottawa, canada

PostPosted: Tue Mar 15, 2011 4:38 pm    Post subject: Reply with quote

VoidMage wrote:
@DancesWithWords: as a start, complete the libata migration.
Hard to tell if it helps, but it shouldn't hurt.


I'll follow that up and get back to you with the results.
Back to top
View user's profile Send private message
DancesWithWords
Guru
Guru


Joined: 29 Jun 2002
Posts: 347
Location: ottawa, canada

PostPosted: Wed Mar 16, 2011 1:31 am    Post subject: Reply with quote

VoidMage wrote:
@DancesWithWords: as a start, complete the libata migration.
Hard to tell if it helps, but it shouldn't hurt.


See quote for gentoo kernal doc's.
Quote:

Additionally, your storage devices will be treated as SCSI devices, which means SCSI disk/cdrom support is required too. Your SATA hard disk will be named as (e.g.) /dev/sda and your SATA CD/DVD drive will be named as (e.g.) /dev/sr0.


So I'm not supposed to have a DVDRW with a /dev/sr0 it is /dev/hda as it is supposed to.

But now I'm back to square one. How to get k3b to see my DVDRW?? I followed https://forums.gentoo.org/viewtopic-t-858965.html, but as someone pointed out k3b must have hal to work. So what now? Any ideas?
Back to top
View user's profile Send private message
DancesWithWords
Guru
Guru


Joined: 29 Jun 2002
Posts: 347
Location: ottawa, canada

PostPosted: Wed Mar 16, 2011 2:20 am    Post subject: Reply with quote

DancesWithWords wrote:
VoidMage wrote:
@DancesWithWords: as a start, complete the libata migration.
Hard to tell if it helps, but it shouldn't hurt.


See quote for gentoo kernal doc's.
Quote:

Additionally, your storage devices will be treated as SCSI devices, which means SCSI disk/cdrom support is required too. Your SATA hard disk will be named as (e.g.) /dev/sda and your SATA CD/DVD drive will be named as (e.g.) /dev/sr0.


So I'm not supposed to have a DVDRW with a /dev/sr0 it is /dev/hda as it is supposed to.

But now I'm back to square one. How to get k3b to see my DVDRW?? I followed https://forums.gentoo.org/viewtopic-t-858965.html, but as someone pointed out k3b must have hal to work. So what now? Any ideas?


So I Solved my problem by removing IDE support from the kernel. yahaaaaa! :P :D :lol: :!:
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