From: Moshe Yudkowsky <moshe@pobox.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: new version of udev has different cd/dvd devices
Date: Thu, 29 Dec 2005 00:10:24 +0000 [thread overview]
Message-ID: <43B32970.1070101@pobox.com> (raw)
In-Reply-To: <43B313ED.40402@bl.com>
Marco d'Itri wrote:
> On Dec 28, Moshe Yudkowsky <msha5_17@bl.com> wrote:
>
>
>>The latest udev (0.079) puts the second drive only for /dev/cdrom, cdrw,
>> dvd, and dvdrw.
the udev distro under Debian has these rules:
> ENV{ID_CDROM}="?*", SYMLINK+="cdrom%e"
> ENV{ID_CDROM_CD_RW}="?*", SYMLINK+="cdrw%e"
> ENV{ID_CDROM_DVD}="?*", SYMLINK+="dvd%e"
> ENV{ID_CDROM_DVD_R}="?*", SYMLINK+="dvdrw%e"
When I modify them to remove the "%e":
> ENV{ID_CDROM}="?*", SYMLINK+="cdrom"
> ENV{ID_CDROM_CD_RW}="?*", SYMLINK+="cdrw"
> ENV{ID_CDROM_DVD}="?*", SYMLINK+="dvd"
> ENV{ID_CDROM_DVD_R}="?*", SYMLINK+="dvdrw"
followed by rmmod ide-cd, modprobe ide-cd, I get the same behavior:
> lrwxrwxrwx 1 root root 30 Dec 28 17:29 /dev/cdrom -> ide/host0/bus1/target1/lun0/cd
> lrwxrwxrwx 1 root root 30 Dec 28 17:29 /dev/cdrw -> ide/host0/bus1/target1/lun0/cd
I.e., they're both pointing to the same drive.
udevmonitor --env reveals what the problem seems to be:
First comes the 1,1,0 drive:
> UDEV [1135814449.322164] remove@/block/hdd
> UDEV_LOG=3
> ACTION=remove
> DEVPATH=/block/hdd
> SUBSYSTEM=block
> SEQNUM\x1166
> MINORd
> MAJOR"
> PHYSDEVPATH=/devices/ide1/1.1
> PHYSDEVBUS=ide
> PHYSDEVDRIVER=ide-cdrom
> UDEVD_EVENT=1
> DEVNAME=/dev/ide/host0/bus1/target1/lun0/cd
> 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_TYPEÍ
> ID_MODEL=TSSTcorpCDDVDW_TS-H552B
> ID_SERIAL=TS-H552BFirmware
> ID_REVISION=TS04
> ID_BUS=ata
> ID_PATH=pcmcia--ide-1:1
Next comes the 1,0,0 drive:
> UDEV [1135814449.429480] remove@/block/hdc
> UDEV_LOG=3
> ACTION=remove
> DEVPATH=/block/hdc
> SUBSYSTEM=block
> SEQNUM\x1167
> MINOR=0
> MAJOR"
> PHYSDEVPATH=/devices/ide1/1.0
> PHYSDEVBUS=ide
> PHYSDEVDRIVER=ide-cdrom
> UDEVD_EVENT=1
> DEVNAME=/dev/ide/host0/bus1/target0/lun0/cd
> ID_CDROM=1
> ID_CDROM_CD_R=1
> ID_CDROM_CD_RW=1
> ID_CDROM_DVD=1
> ID_CDROM_MRW=1
> ID_CDROM_MRW_W=1
> ID_CDROM_RAM=1
> ID_TYPEÍ
> ID_MODEL=HL-DT-ST_RWDVD_GCC-4320B
> ID_SERIAL> ID_REVISION=1.01
> ID_BUS=ata
> ID_PATH=pcmcia--ide-1:0
In other words, the rules match either drive completely, if I'm reading
the rules correctly.
In the meantime, I've modified fstab to use /dev/cdroms/cdrom{0,1}, but
it'd be nice to figure out what happened here!
--
Moshe Yudkowsky * moshe@pobox.com * www.pobox.com/~moshe
"The price of a tyrant's victory is eternal vigilance... This was
once considered the price of liberty. Nothing buys what it used to."
-- Pat Cadigan
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2005-12-29 0:10 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-28 22:38 new version of udev has different cd/dvd devices Moshe Yudkowsky
2005-12-28 22:50 ` Marco d'Itri
2005-12-28 23:29 ` Kay Sievers
2005-12-29 0:10 ` Moshe Yudkowsky [this message]
2005-12-29 0:22 ` Marco d'Itri
2005-12-29 0:44 ` Moshe Yudkowsky
2005-12-29 13:20 ` Phil Howard
2005-12-29 13:36 ` Marco d'Itri
2005-12-29 15:18 ` Phil Howard
2005-12-29 16:57 ` Kay Sievers
2005-12-30 7:46 ` Greg KH
2005-12-30 13:45 ` Phil Howard
2005-12-30 18:09 ` Marco d'Itri
2005-12-30 18:16 ` Darren Salt
2005-12-30 18:49 ` Kay Sievers
2005-12-30 18:56 ` Kay Sievers
2005-12-30 19:12 ` Darren Salt
2005-12-30 19:16 ` Kay Sievers
2005-12-30 19:47 ` Darren Salt
2005-12-30 20:34 ` Kay Sievers
2005-12-30 21:00 ` Darren Salt
2005-12-30 21:45 ` Kay Sievers
2005-12-30 21:58 ` Kay Sievers
2005-12-30 22:51 ` Darren Salt
2005-12-30 23:02 ` Darren Salt
2005-12-30 23:47 ` Marco d'Itri
2005-12-31 0:04 ` Kay Sievers
2005-12-31 0:20 ` Darren Salt
2005-12-31 0:39 ` Marco d'Itri
2006-01-02 10:35 ` Martin Schwenke
2006-01-04 18:48 ` Patrick Mansfield
2006-01-04 21:23 ` Darren Salt
2006-01-05 12:27 ` Marco d'Itri
2006-01-05 17:03 ` Greg KH
2006-01-05 17:52 ` Greg KH
2006-01-05 18:50 ` patman
2006-01-06 0:50 ` Greg KH
2006-01-06 3:40 ` patman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43B32970.1070101@pobox.com \
--to=moshe@pobox.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).