Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cd burner tools - no drives detected [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
catkfr
Guru
Guru


Joined: 02 Aug 2004
Posts: 300

PostPosted: Sat Aug 13, 2005 2:07 pm    Post subject: cd burner tools - no drives detected [SOLVED] Reply with quote

I tried to burn an ISO (2005.1 live-cd) a few times this week but it always failed: gnomebaker would crash erasing my CD-RW and k3b would not detect any cd-drives.

I took some time this week-end to take a look but couldn't find what the problem is. I saw others in the forums having similar issues but still no answer. The problem as it boils down to is the following: k3b does not detect any drives (cd writers or readers). I looked at the permissions: /dev/hdc and hdd (my writer and reader) are both in the cdrom group. So I added myself to that group but still no-go. Does anyone know what the problem is?

Thanks in advance

Edit: installed graveman which does not detect any cd drives either as a user. Detection is successful if run as root
PS: graveman is a very nice little software, try it out

Solution:
Add user to the cdrom group
log out and log back in


Last edited by catkfr on Sat Aug 13, 2005 4:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Sat Aug 13, 2005 2:27 pm    Post subject: Reply with quote

Could you please post your
Code:
 /etc/fstab
Back to top
View user's profile Send private message
catkfr
Guru
Guru


Joined: 02 Aug 2004
Posts: 300

PostPosted: Sat Aug 13, 2005 2:37 pm    Post subject: Reply with quote

Code:

/dev/hdc                /mnt/dvdrw      auto            noauto,user,exec        0 0
/dev/hdd                /mnt/dvdrom     auto            noauto,user,exec        0 0


Edit: removed lines not related to DVD drives


Last edited by catkfr on Sat Aug 13, 2005 3:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Sat Aug 13, 2005 2:50 pm    Post subject: Reply with quote

My entry for my cdrom/rw looks somehow like this:

Code:
/dev/cdroms/cdrom0    /mnt/cdrom    auto      noauto,user    0 0


How did you get the idea to name you dvd/rw "hdc/hdd"? :?
Back to top
View user's profile Send private message
catkfr
Guru
Guru


Joined: 02 Aug 2004
Posts: 300

PostPosted: Sat Aug 13, 2005 3:02 pm    Post subject: Reply with quote

The names of the device are the same:

Code:
# ls -l /dev/cdroms
total 0
lrwxrwxrwx  1 root root 6 Aug 13 16:14 cdrom0 -> ../hdc
lrwxrwxrwx  1 root root 6 Aug 13 16:14 cdrom1 -> ../hdd


But that doesn't solve my permissions problem...
If I put a CD in hdc for example, it is automatically mounted by gnome. If I ask it to eject the CD-rom: it unmounts it without a problem but refuses to eject (gives an error)
Back to top
View user's profile Send private message
asiobob
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1375
Location: Bamboo Creek

PostPosted: Sat Aug 13, 2005 3:21 pm    Post subject: Reply with quote

see http://surakshan.surasoft.com/blog/post/index/65/The-correct-easy-way-to-burn-CDs-in-Linux

Does that help?
What kernel are you running?
Back to top
View user's profile Send private message
catkfr
Guru
Guru


Joined: 02 Aug 2004
Posts: 300

PostPosted: Sat Aug 13, 2005 3:38 pm    Post subject: Reply with quote

I was running 2.6.11-r9 (gentoo-sources) for a long time and just switched to 2.6.12-r6. My problems were the same before and after the kernel switch.

I read the article. The only point I was not sure about was (3. do not use ide-scsi emulation) and after checking my kernel config this is not the problem.
Back to top
View user's profile Send private message
asiobob
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1375
Location: Bamboo Creek

PostPosted: Sat Aug 13, 2005 3:50 pm    Post subject: Reply with quote

whats the permissions of your drives?
For an example what's

/dev/hdc and /dev/hdd
Back to top
View user's profile Send private message
catkfr
Guru
Guru


Joined: 02 Aug 2004
Posts: 300

PostPosted: Sat Aug 13, 2005 3:59 pm    Post subject: Reply with quote

As previously stated, I am in the cdrom group

Code:
brw-rw----  1 root cdrom 22,  0 Aug 13 16:14 /dev/hdc
brw-rw----  1 root cdrom 22, 64 Aug 13 16:14 /dev/hdd
Back to top
View user's profile Send private message
catkfr
Guru
Guru


Joined: 02 Aug 2004
Posts: 300

PostPosted: Sat Aug 13, 2005 4:43 pm    Post subject: Reply with quote

Oops... It turns out, I added myself to the cdrom group but this information was not yet available everywhere: when running groups in a terminal, I could see I was in the cdrom group but my X session did not know that. Anyways, logged out and logged back in and now it works.

Thanks for everyone's help.
Back to top
View user's profile Send private message
colo
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 160
Location: Austria

PostPosted: Sat Aug 13, 2005 5:03 pm    Post subject: Reply with quote

my dvd-rom and cdrw drive are owned by root:disk instead of root:cdrom or even root:cdrw, any ideas on how to fix this in my udev-rules?
_________________
Free Software. Free Sociecty. Better Lives.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5060
Location: Dark side of the mood

PostPosted: Sun Aug 28, 2005 8:59 am    Post subject: Reply with quote

colo wrote:
my dvd-rom and cdrw drive are owned by root:disk instead of root:cdrom or even root:cdrw, any ideas on how to fix this in my udev-rules?

Basically the trick is to create a file, /etc/udev/rules.d/10-local.rules that contains some lines from 50-udev.rules. These lines look like
Code:
... PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}" ...

Copy, paste the lines into the new file and append
Code:
, GROUP:="cdrom"
or
Code:
, GROUP:="cdrw"
Note the colon.

Use the lines that begin with BUS="ide" if your CDR/W is IDE or with BUS="scsi" if it's SCSI or SATA. I have a SATA controller and my CDR/W drive appears as SCSI and is listed as /dev/sr0. Here are sample rules I've added to my local rules:
Code:
BUS=="scsi", KERNEL="sg0", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}", GROUP:="cdrom", MODE="0440"
BUS=="scsi", KERNEL="sg1", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}", GROUP:="cdrw", MODE="0660"
BUS=="scsi", KERNEL="sr[0-9]*", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}", GROUP:="cdrw"

The first two rules are there for consistency because I also have /dev/sg? entries. The device node that is used for burning is /dev/sr0 however. I've seen Nautilus query /dev/sg0 when attempting to burn a CD hence the first rule.

If you CDR/W drive is /dev/hdc, for instance, you might have to write the following line in /etc/udev/rules.d/10-local.rules:
Code:
BUS=="ide",  KERNEL="hdc", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}", GROUP:="cdrw", MODE="660"

_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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