FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-06-2010, 08:55 AM
 
Default undetected DVD r/w device

For some unknown reason, my DVD r/w device is not detected as such by udev:
I can mount /dev/hda and read a data CD, but /dev/cdrom is not created at boot
time and k3b returns
" 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."
Well, hald IS running on my hardened amd64 system and /etc/udev/rules.d contains
70-persistent-cd.rules. Where should I look now to fix the problem ?

--
~adj~
 
Old 09-06-2010, 10:30 AM
Jake Moe
 
Default undetected DVD r/w device

On 09/06/10 18:55, alain.didierjean@free.fr wrote:
> For some unknown reason, my DVD r/w device is not detected as such by udev:
> I can mount /dev/hda and read a data CD, but /dev/cdrom is not created at boot
> time and k3b returns
> " 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."
> Well, hald IS running on my hardened amd64 system and /etc/udev/rules.d contains
> 70-persistent-cd.rules. Where should I look now to fix the problem ?
>
> --
> ~adj~
What's the contents of 70-persistent-cd.rules? I recently had the same
problem on a HP laptop; the DVD drive worked in most things, but not in
K3B, and I tracked the root down to the fact that while I could see
/dev/sr0, the symlinks for /dev/[cdrom,cdrw,dvd,dvdrw] weren't there. I
could mount /dev/sr0 and the drive worked, but K3B never found the
drive. I believe I fixed it by editing that rules file somehow. I
can't remember while laptop it was on, but here's the two
70-persistent-cd.rules files I have:

(I think this one was the one that worked)

# This file was automatically generated by the /lib/udev/write_cd_rules
# program, run by the cd-aliases-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and set the $GENERATED variable.

# CDDVDW_TS-L633N (pci-0000:00:1f.2-scsi-1:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrom",
ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrw",
ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvd",
ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvdrw",
ENV{GENERATED}="1"

(I think this one was the one that I had to rewrite myself)

SUBSYSTEM=="block", KERNEL=="hdb", SYMLINK+="cdrom", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="hdb", SYMLINK+="cdrw", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="hdb", SYMLINK+="dvd", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="hdb", SYMLINK+="dvdrw", GROUP="cdrom"

HTH,

Jake Moe
 
Old 09-06-2010, 11:13 AM
Stroller
 
Default undetected DVD r/w device

On 6 Sep 2010, at 09:55, alain.didierjean@free.fr wrote:



For some unknown reason, my DVD r/w device is not detected as such
by udev:

I can mount /dev/hda and read a data CD, ...


Current kernels usually call optical drives /dev/sr0 (/dev/sr1, &c).

See last months "DVD borked: SysFS removed" thread:
http://www.gossamer-threads.com/lists/gentoo/user/216290

My advice in that thread applies also to you.

Stroller.
 
Old 09-06-2010, 12:05 PM
 
Default undetected DVD r/w device

alain.didierjean@free.fr wrote:

>
> For some unknown reason, my DVD r/w device is not detected as such by udev:
> I can mount /dev/hda and read a data CD, but /dev/cdrom is not created at boot
> time and k3b returns
> " 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."

If you call cdrecord (release 3.00):

cdrecord -scanbus

or
cdrecord -checkdrive

and it finds a drive, then there is a bug in k3b.

Jörg

--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
 
Old 09-06-2010, 03:06 PM
 
Default undetected DVD r/w device

Selon Stroller <stroller@stellar.eclipse.co.uk>:

>
> On 6 Sep 2010, at 09:55, alain.didierjean@free.fr wrote:
>
> >
> > For some unknown reason, my DVD r/w device is not detected as such
> > by udev:
> > I can mount /dev/hda and read a data CD, ...
>
> Current kernels usually call optical drives /dev/sr0 (/dev/sr1, &c).
>

There's no sr* device on my system !!! Only way to reach the drive: /dev/hda.
Help
 
Old 09-06-2010, 03:11 PM
 
Default undetected DVD r/w device

Selon Stroller <stroller@stellar.eclipse.co.uk>:

>
> On 6 Sep 2010, at 09:55, alain.didierjean@free.fr wrote:
>
> >
> > For some unknown reason, my DVD r/w device is not detected as such
> > by udev:
> > I can mount /dev/hda and read a data CD, ...
>
> Current kernels usually call optical drives /dev/sr0 (/dev/sr1, &c).
>

There's no sr* device on my system !!! Only way to reach the drive: /dev/hda.
Help
 
Old 09-06-2010, 03:20 PM
 
Default undetected DVD r/w device

Selon alain.didierjean@free.fr:

> Selon Stroller <stroller@stellar.eclipse.co.uk>:
>
> >
> > On 6 Sep 2010, at 09:55, alain.didierjean@free.fr wrote:
> >
> > >
> > > For some unknown reason, my DVD r/w device is not detected as such
> > > by udev:
> > > I can mount /dev/hda and read a data CD, ...
> >
> > Current kernels usually call optical drives /dev/sr0 (/dev/sr1, &c).
> >
>
> There's no sr* device on my system !!! Only way to reach the drive: /dev/hda.
> Help

Apologies for the triple post. The blame goes to my ISP
 
Old 09-10-2010, 02:25 PM
 
Default undetected DVD r/w device

Selon alain.didierjean@free.fr:

> Selon Stroller <stroller@stellar.eclipse.co.uk>:
>
> >
> > On 6 Sep 2010, at 09:55, alain.didierjean@free.fr wrote:
> >
> > >
> > > For some unknown reason, my DVD r/w device is not detected as such
> > > by udev:
> > > I can mount /dev/hda and read a data CD, ...
> >
> > Current kernels usually call optical drives /dev/sr0 (/dev/sr1, &c).
> >
>
> There's no sr* device on my system !!! Only way to reach the drive: /dev/hda.
> Help

FOLLOW-Up
I now use the following udev rules (70-persistent-cd.rules)

# TSSTcorpCD_DVDW_SH-W162C (pci-0000:00:06.0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0",
SYMLINK+="cdrom", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0",
SYMLINK+="cdrw", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0",
SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0",
SYMLINK+="dvdrw", ENV{GENERATED}="1"
# ~adj~ added
SUBSYSTEM=="block", KERNEL=="hda", SYMLINK+="cdrom", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="hda", SYMLINK+="cdrw", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="hda", SYMLINK+="dvd", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="hda", SYMLINK+="dvdrw", GROUP="cdrom"

symbolic links get created, no /dev/sr0. k3b still refuses to work.
BUT
when I
# mount --bind / temporary
I do get a /temporary/dev/sr0 !!
What give ? I'm reluctant to add a NAME=sr0 rule as it should be the default;
What's going on ?

--
~adj~
 
Old 09-10-2010, 11:49 PM
walt
 
Default undetected DVD r/w device

On 09/10/2010 07:25 AM, alain.didierjean@free.fr wrote:

Selon alain.didierjean@free.fr:


Selon Stroller<stroller@stellar.eclipse.co.uk>:



On 6 Sep 2010, at 09:55, alain.didierjean@free.fr wrote:



For some unknown reason, my DVD r/w device is not detected as such
by udev:
I can mount /dev/hda and read a data CD, ...



symbolic links get created, no /dev/sr0. k3b still refuses to work.
BUT
when I
# mount --bind / temporary
I do get a /temporary/dev/sr0 !!
What give ? I'm reluctant to add a NAME=sr0 rule as it should be the default;
What's going on ?


AFAICT, you didn't say if you read the earlier thread cited by Stroller:

http://www.gossamer-threads.com/lists/gentoo/user/216290

My apologies if I missed your reply, and I wish you a happy weekend.
 
Old 09-11-2010, 06:38 AM
 
Default undetected DVD r/w device

Selon walt <w41ter@gmail.com>:

> On 09/10/2010 07:25 AM, alain.didierjean@free.fr wrote:
> > Selon alain.didierjean@free.fr:
> >
> >> Selon Stroller<stroller@stellar.eclipse.co.uk>:
> >>
> >>>
> >>> On 6 Sep 2010, at 09:55, alain.didierjean@free.fr wrote:
> >>>
> >>>>
> >>>> For some unknown reason, my DVD r/w device is not detected as such
> >>>> by udev:
> >>>> I can mount /dev/hda and read a data CD, ...
>
> > symbolic links get created, no /dev/sr0. k3b still refuses to work.
> > BUT
> > when I
> > # mount --bind / temporary
> > I do get a /temporary/dev/sr0 !!
> > What give ? I'm reluctant to add a NAME=sr0 rule as it should be the
> default;
> > What's going on ?
>
> AFAICT, you didn't say if you read the earlier thread cited by Stroller:
>
> http://www.gossamer-threads.com/lists/gentoo/user/216290
>

Sure did. didn't help much.
 

Thread Tools




All times are GMT. The time now is 07:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org