LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-31-2004, 06:13 PM   #1
seagreen
Member
 
Registered: Jun 2004
Distribution: Suse 8.2
Posts: 42

Rep: Reputation: 15
K3B problem as user


When I try to burn with K3B as user I get the following message:

ERROR: cannot open SCSI device '0,0,0': cannot open '/dev/sg0
ERROR: please use option '--device [proto:]bus,id,lun', e.g. --device

Where do I need to go to set this right?
 
Old 10-31-2004, 07:59 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Is your cdr/w or dvdr/w device mounted as a scsii device and is it device /dev/sg0?

It looks like k3b is trying to open your recorder and can't
It could be that you don't have your cdr/w mounted correctly.

You say as "user" does user have access permissions to burner?

look at
/etc/fstab
You'll have to bo root to modify it
su
password
open the file for editing

Read the man pages for mount

dmesg | grep ^hd
will show you the drives on your machine I think

hdparm -i /dev/sg0 will show you the drive info if it is at /dev/sg0

Just a few thoughts.
Post your fstab file and someone will help
 
Old 11-01-2004, 02:55 AM   #3
seagreen
Member
 
Registered: Jun 2004
Distribution: Suse 8.2
Posts: 42

Original Poster
Rep: Reputation: 15
Burner does burn in root

Cannot find any driver at /dev/sg0


This is my fstab file:

/dev/hda3 / reiserfs defaults 1 1
/dev/hdb5 /data1 auto noauto,user 0 0
/dev/hda2 /windows/C vfat users,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0
/dev/hdb1 /windows/D vfat users,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0
/dev/hda1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrecorder /media/cdrecorder auto user,unhide,ro,noauto,exec 0 0
/dev/cdrom /media/cdrom auto user,unhide,ro,noauto,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
/dev/sda1 /media/sda1 auto noauto,user,exec 0 0 #HOTPLUG B3Fu.FLeb1Nx9Om8
 
Old 11-01-2004, 03:40 AM   #4
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
I think that /dev/cdrecorder is a symbolic link to another device. Execute the folllowing commands:
Code:
cd /dev
ls -l | grep -i cdrecorder
Now you will probably see that cdrecorder is a symbolic link to another device.

This is what I did. I created a 'burn' group, added my user to that group and gave the group access permission to my cdrecorder. I'm not really sure which permissions I've set on the device. I think 'read' permissions for the group are sufficient.
 
Old 11-01-2004, 05:07 AM   #5
seagreen
Member
 
Registered: Jun 2004
Distribution: Suse 8.2
Posts: 42

Original Poster
Rep: Reputation: 15
cd /dev
ls -1 | grep -i cd recorder
gives me
cdrecorder
 
Old 11-01-2004, 02:28 PM   #6
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
I'm at home now (behind my Debian machine), so I'll see what I can do.

The command actually isn't "ls -1 | grep -i cdrecorder" but "ls -l | grep -i cdrecorder" (so that is -L, lowercase that is).

Could you try that command please. I'm almost possitive that "cdrecorder" is a symbolic link to another device.
 
Old 11-01-2004, 02:51 PM   #7
seagreen
Member
 
Registered: Jun 2004
Distribution: Suse 8.2
Posts: 42

Original Poster
Rep: Reputation: 15
This is what I get:

lrwxrwxrwx 1 root root 3 2004-11-27 11:45 cdrecorder -> sr0
 
Old 11-01-2004, 03:19 PM   #8
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
OK, now we're getting somewhere

I think this 'sr0' is also a symbolic link (at least it is on my system ). I'll try to give you a complete walkthrough now, otherwise we'll keep posting messages

Again, the same command, but now a "grep -i" on sr0, so "ls -l | grep -i sr0". Do this "ls -l | grep -i" thing as long as it gives symbolic links to other devices.

On my machine, "ls -l | grep -i sr0" gives me:
lrwxrwxrwx 1 root root 4 Apr 12 2004 sr0 -> scd0

When I then do a "ls -l | grep -i scd0", I get:
brw-rw---- 1 root burning 11, 0 Mar 14 2002 scd0

Now, scd0 is a device and not a symbolic link (it doens't list a "->") to a device. Now create a group called "burning", add your user to that group.

Next, change the group of the device (in my case device scd0) to "burning". You can do this with the command "chgrp burning [devicename]", so in my case "chgrp burning scd0"

Next, change the permissions on the device. The command for this action is "chmod 660 [devicename]", so in my case "chmod 660 scd0". The 660 just says to give read & write permissions to the owner and group of the device and no permissions to "world".

If you have done everything right (just run that "ls" command again on the device, you should see the same output as me, except for maybe a different devicename), you're able to burn with your user account.

Good luck.
 
Old 11-01-2004, 03:57 PM   #9
seagreen
Member
 
Registered: Jun 2004
Distribution: Suse 8.2
Posts: 42

Original Poster
Rep: Reputation: 15
Here is what I did and got:

[user]@linux:/dev> ls -l| grep -i sr0
lrwxrwxrwx 1 root root 3 2004-11-27 11:45 cdrecorder -> sr0
brw------- 1 [user] disk 11, 0 2003-03-14 14:07 sr0
[user]@linux:/dev> chgrp burning sr0
[user]@linux:/dev> chmod 660 sr0
[user]@linux:/dev> ls -l| grep -i sr0
lrwxrwxrwx 1 root root 3 2004-11-27 11:45 cdrecorder -> sr0
brw-rw---- 1 [user] burning 11, 0 2003-03-14 14:07 sr0

But K3b still isn't working in user.
Since the ERROR message says "cannot open '/dev/sg0", shouldn't I be ending up with sg0 and not sr0?

Thanks for your patience!
 
Old 11-01-2004, 04:22 PM   #10
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
Yeah, that's real strange

OK, I looked some more into it (I'm actually f&cking up my own system to see if I can get that error )

You did add your user to the "burning" group ??

Let's see. When you do a "ls -l | grep -i sg0", what kind of output do you get ??? It should be something like this (my cdrecorder is sg2):

crw-rw---- 1 root cdrom 21, 1 Mar 14 2002 sg2

If it doesn't say "cdrom" as group, change the group into "cdrom" (using the command chgrp explained earlier), make sure that owner and group have "rw" permissions on it (chmod 660) and make sure that your user is in the cdrom group.

Then try K3B again (you might need to log on and off for permissions to work).

Good luck.
 
Old 11-01-2004, 05:28 PM   #11
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Under wich kernel are you trying to burn as user?
 
Old 11-01-2004, 05:52 PM   #12
seagreen
Member
 
Registered: Jun 2004
Distribution: Suse 8.2
Posts: 42

Original Poster
Rep: Reputation: 15
Victory!
i did a "grep -i" on sg0 and changed "disk" to "cdrom" and gave "rw" permissions with chmod 660.
It did the trick
But then I had no sound on my cdrom player, so I ran alsaconf again to fix the problem.
A million thanks for your help!

I'm using Kernel 2.4.2
 
Old 11-01-2004, 06:21 PM   #13
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
YES !!!!!!!!

I love to fix these problems. Good luck with the burner.
 
  


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
Using k3b as a user infornography Slackware 7 09-29-2005 10:30 PM
k3b as user under kernel 2.6.9 doralsoral Linux - Software 10 12-21-2004 12:54 AM
k3b does not work when I am a normal user svebe Mandriva 3 03-28-2004 11:36 PM
k3b won't work as user Glock Shooter Slackware 4 11-29-2003 01:33 PM
Using k3b as ordinary user friendly_guy Slackware 4 11-06-2003 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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