[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No /dev/cdrw anymore, udev problem?



#include <hallo.h>
* Marco d'Itri [Mon, Jan 08 2007, 02:21:12PM]:
> On Jan 08, Eduard Bloch <edi@gmx.de> wrote:
> 
> > Also note that it seems like there is currently nothing to create that
> > symlink. It seems like kernel passes only names like /dev/cdrwX where X
> > is steadily increasing. Only /dev/cdrom seems to be useable as a
> > constant filename but for many people their cdrom reader is not the same
> > as writer.
> WTF? It's supposed to work, *especially* if /dev/cdrom is correct.
> Just to be sure, delete z25_persistent-cd.rules and reboot.

I moved that file to another location and rebootet. Now there are no
more /dev/cdrw or /dev/dvdrw links anymore but all the usual files and
procfs contents are there. See logs below. As next I rmmoded
usb-storage, ehci-hcd, ide-cd and reloaded them again, now some extra
links have been created but they are called /dev/cdrw1 and /dev/dvdrw1.
Still no /dev/cdrw there.

My impression is that it always takes the X string part from cdromX and
appends it to cdrw, resulting in no "cdrw" symlink if "cdrom" has no
writting capabilities. If I am right then... uhm, it sucks and should be
changed ASAP. A setup like mine (first drive a pure reader and the
second is the writter) is not that uncommon.

And it still does not explain the failure after rebooting.

> > I think we have a problem here. As a workaround, I am going to add a bit
> > code to parse /proc/sys/dev/cdrom/info and pickup the first CDR or
> > DVDR capable device there (depending on the track size, IMO).
> Please don't. If there is a bug in udev help me to fix it.
> (Or use HAL if you need an higher level interface.)

Using HAL means more library dependencies.

Eduard.


This is a laptop with a DVD-ROM drive and a DVD-RW recorder attached via USB.

Reloading ide-cd:

UEVENT[1168264818.152462] add@/module/ide_cd/drivers
ACTION=add
DEVPATH=/module/ide_cd/drivers
SUBSYSTEM=module
SEQNUM=1882

UEVENT[1168264818.153658] add@/module/ide_cd
ACTION=add
DEVPATH=/module/ide_cd
SUBSYSTEM=module
SEQNUM=1883

UEVENT[1168264818.154340] add@/bus/ide/drivers/ide-cdrom
ACTION=add
DEVPATH=/bus/ide/drivers/ide-cdrom
SUBSYSTEM=drivers
SEQNUM=1884

UDEV  [1168264818.156409] add@/module/ide_cd/drivers
UDEV_LOG=3
ACTION=add
DEVPATH=/module/ide_cd/drivers
SUBSYSTEM=module
SEQNUM=1882
UDEVD_EVENT=1

UDEV  [1168264818.158562] add@/bus/ide/drivers/ide-cdrom
UDEV_LOG=3
ACTION=add
DEVPATH=/bus/ide/drivers/ide-cdrom
SUBSYSTEM=drivers
SEQNUM=1884
UDEVD_EVENT=1

UDEV  [1168264818.160750] add@/module/ide_cd
UDEV_LOG=3
ACTION=add
DEVPATH=/module/ide_cd
SUBSYSTEM=module
SEQNUM=1883
UDEVD_EVENT=1

UEVENT[1168264818.195736] add@/block/hdc
ACTION=add
DEVPATH=/block/hdc
SUBSYSTEM=block
SEQNUM=1885
MINOR=0
MAJOR=22
PHYSDEVPATH=/devices/pci0000:00/0000:00:1f.1/ide1/1.0
PHYSDEVBUS=ide
PHYSDEVDRIVER=ide-cdrom

UDEV  [1168264818.272818] add@/block/hdc
UDEV_LOG=3
ACTION=add
DEVPATH=/block/hdc
SUBSYSTEM=block
SEQNUM=1885
MINOR=0
MAJOR=22
PHYSDEVPATH=/devices/pci0000:00/0000:00:1f.1/ide1/1.0
PHYSDEVBUS=ide
PHYSDEVDRIVER=ide-cdrom
UDEVD_EVENT=1
ID_CDROM=1
ID_CDROM_DVD=1
ID_CDROM_MRW=1
ID_CDROM_MRW_W=1
ID_TYPE=cd
ID_MODEL=TOSHIBA_DVD-ROM_SD-C2612
ID_SERIAL=Y2Z4901121
ID_REVISION=1315
ID_BUS=ata
ID_PATH=pci-0000:00:1f.1-ide-1:0
GENERATED=1
DEVNAME=/dev/ide/host0/bus1/target0/lun0/cd
DEVLINKS=/dev/hdc /dev/cdroms/cdrom0 /dev/disk/by-id/ata-TOSHIBA_DVD-ROM_SD-C2612_Y2Z4901121 /dev/disk/by-path/pci-0000:00:1f.1-ide-1:0 /dev/cdrom /dev/dvd

Reloading usb modules:

UDEV  [1168264902.500409] add@/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0
SUBSYSTEM=usb
SEQNUM=1999
PHYSDEVBUS=usb
DEVICE=/proc/bus/usb/001/002
PRODUCT=152d/2338/100
TYPE=0/0/0
INTERFACE=8/6/80
MODALIAS=usb:v152Dp2338d0100dc00dsc00dp00ic08isc06ip50
UDEVD_EVENT=1

UEVENT[1168264902.528662] add@/module/usb_storage/drivers
ACTION=add
DEVPATH=/module/usb_storage/drivers
SUBSYSTEM=module
SEQNUM=2003

UEVENT[1168264902.529792] add@/module/usb_storage
ACTION=add
DEVPATH=/module/usb_storage
SUBSYSTEM=module
SEQNUM=2004

UEVENT[1168264902.531037] add@/bus/usb/drivers/usb-storage
ACTION=add
DEVPATH=/bus/usb/drivers/usb-storage
SUBSYSTEM=drivers
SEQNUM=2005

UEVENT[1168264902.533447] add@/class/scsi_host/host1
ACTION=add
DEVPATH=/class/scsi_host/host1
SUBSYSTEM=scsi_host
SEQNUM=2006
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1

UDEV  [1168264902.537488] add@/module/usb_storage/drivers
UDEV_LOG=3
ACTION=add
DEVPATH=/module/usb_storage/drivers
SUBSYSTEM=module
SEQNUM=2003
UDEVD_EVENT=1

UDEV  [1168264902.539701] add@/bus/usb/drivers/usb-storage
UDEV_LOG=3
ACTION=add
DEVPATH=/bus/usb/drivers/usb-storage
SUBSYSTEM=drivers
SEQNUM=2005
UDEVD_EVENT=1

UDEV  [1168264902.558831] add@/class/usb_device/usbdev1.2
UDEV_LOG=3
ACTION=add
DEVPATH=/class/usb_device/usbdev1.2
SUBSYSTEM=usb_device
SEQNUM=2002
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1
PHYSDEVBUS=usb
PHYSDEVDRIVER=usb
MAJOR=189
MINOR=1
UDEVD_EVENT=1
INTERFACE=6/1/1
DEVNAME=/dev/bus/usb/001/002

UDEV  [1168264902.560482] add@/class/scsi_host/host1
UDEV_LOG=3
ACTION=add
DEVPATH=/class/scsi_host/host1
SUBSYSTEM=scsi_host
SEQNUM=2006
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1
UDEVD_EVENT=1

UDEV  [1168264902.562118] add@/module/usb_storage
UDEV_LOG=3
ACTION=add
DEVPATH=/module/usb_storage
SUBSYSTEM=module
SEQNUM=2004
UDEVD_EVENT=1

UEVENT[1168264907.533283] add@/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
SUBSYSTEM=scsi
SEQNUM=2007
PHYSDEVBUS=scsi

UEVENT[1168264907.537029] add@/block/sr0
ACTION=add
DEVPATH=/block/sr0
SUBSYSTEM=block
SEQNUM=2008
MINOR=0
MAJOR=11
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
PHYSDEVBUS=scsi
PHYSDEVDRIVER=sr

UEVENT[1168264907.537115] add@/class/scsi_device/1:0:0:0
ACTION=add
DEVPATH=/class/scsi_device/1:0:0:0
SUBSYSTEM=scsi_device
SEQNUM=2009
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
PHYSDEVBUS=scsi
PHYSDEVDRIVER=sr

UEVENT[1168264907.537171] add@/class/scsi_generic/sg0
ACTION=add
DEVPATH=/class/scsi_generic/sg0
SUBSYSTEM=scsi_generic
SEQNUM=2010
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
PHYSDEVBUS=scsi
PHYSDEVDRIVER=sr
MAJOR=21
MINOR=0

UDEV  [1168264907.556698] add@/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
SUBSYSTEM=scsi
SEQNUM=2007
PHYSDEVBUS=scsi
UDEVD_EVENT=1

UDEV  [1168264907.561483] add@/class/scsi_device/1:0:0:0
UDEV_LOG=3
ACTION=add
DEVPATH=/class/scsi_device/1:0:0:0
SUBSYSTEM=scsi_device
SEQNUM=2009
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
PHYSDEVBUS=scsi
PHYSDEVDRIVER=sr
UDEVD_EVENT=1

UDEV  [1168264907.598845] add@/class/scsi_generic/sg0
UDEV_LOG=3
ACTION=add
DEVPATH=/class/scsi_generic/sg0
SUBSYSTEM=scsi_generic
SEQNUM=2010
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
PHYSDEVBUS=scsi
PHYSDEVDRIVER=sr
MAJOR=21
MINOR=0
UDEVD_EVENT=1
DEVNAME=/dev/scsi/host1/bus0/target0/lun0/generic
DEVLINKS=/dev/sg0

UDEV  [1168264907.652628] add@/block/sr0
UDEV_LOG=3
ACTION=add
DEVPATH=/block/sr0
SUBSYSTEM=block
SEQNUM=2008
MINOR=0
MAJOR=11
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/0000:03:00.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
PHYSDEVBUS=scsi
PHYSDEVDRIVER=sr
UDEVD_EVENT=1
ID_CDROM=1
ID_CDROM_CD_R=1
ID_CDROM_CD_RW=1
ID_CDROM_DVD=1
ID_CDROM_DVD_R=1
ID_CDROM_MRW=1
ID_CDROM_MRW_W=1
ID_CDROM_RAM=1
ID_VENDOR=PLEXTOR
ID_MODEL=DVDR_PX-760A
ID_REVISION=1.02
ID_SERIAL=PLEXTOR_DVDR_PX-760A_222222295020
ID_TYPE=cd
ID_BUS=usb
ID_PATH=pci-0000:03:00.2-usb-0:1:1.0-scsi-0:0:0:0
GENERATED=1
DEVNAME=/dev/scsi/host1/bus0/target0/lun0/cd
DEVLINKS=/dev/sr0 /dev/cdroms/cdrom1 /dev/disk/by-id/usb-PLEXTOR_DVDR_PX-760A_222222295020 /dev/disk/by-path/pci-0000:03:00.2-usb-0:1:1.0-scsi-0:0:0:0 /dev/cdrom1 /dev/cdrw1 /dev/dvd1 /dev/dvdrw1





Reply to: