From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 06 Feb 2004 19:40:12 +0000 Subject: Re: /sbin/udev block and /bin/cat: /proc/ide/hd[a-h][1-10]/media: No such file or directory Message-Id: <20040206194012.GA5928@vrfy.org> List-Id: References: <1075922647.29575.8.camel@moen.bioinf.mdc-berlin.de> In-Reply-To: <1075922647.29575.8.camel@moen.bioinf.mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Fri, Feb 06, 2004 at 05:23:12PM -0200, Fr=E9d=E9ric L. W. Meunier wrote: > On Thu, 5 Feb 2004, Bob Barry wrote: >=20 > > On Wed, 04 Feb 2004 20:24, Juergen Rose wrote: > > > during the initilization of udev (/etc/init.d/udev start) I get a lot > > > messages like "/bin/cat: /proc/ide/hda1/media: No such file or > > > directory". > > > > I see the same thing, and I've been watching for an answer. > > > > I use the rule for cdrom from the tarball /etc/udev/udev.rules: > > BUS=3D"ide", PROGRAM=3D"/bin/cat /proc/ide/%k/media", RESULT=3D"cdrom",= NAME=3D"%k", SYMLINK=3D"cdrom" > > > > Links exist in /proc/ide to hda, hdc and hdd. After startup, the cat w= orks: > > > /bin/cat /proc/ide/hd[acd]/media > > disk > > cdrom > > cdrom > > > > Is /proc/ide being used before it is built? >=20 > I'm also seeing it, even running it after the system boots. >=20 > /bin/cat: /proc/ide/hda1/media: No such file or directory > /bin/cat: /proc/ide/hda10/media: No such file or directory > /bin/cat: /proc/ide/hda11/media: No such file or directory > /bin/cat: /proc/ide/hda12/media: No such file or directory > /bin/cat: /proc/ide/hda2/media: No such file or directory > /bin/cat: /proc/ide/hda5/media: No such file or directory > /bin/cat: /proc/ide/hda6/media: No such file or directory > /bin/cat: /proc/ide/hda7/media: No such file or directory > /bin/cat: /proc/ide/hda8/media: No such file or directory > /bin/cat: /proc/ide/hda9/media: No such file or directory > /bin/cat: /proc/ide/hda3/media: No such file or directory >=20 > Is it because I also have devfs enabled ? No it's cause you try to read 'media' on an partition. Just ignore it or use: BUS=3D"ide", KERNEL=3D"*[!0-9]", PROGRAM=3D"/bin/cat /proc/ide/%k/media",= RESULT=3D"cdrom", NAME=3D"%k", SYMLINK=3D"cdrom" It will ignore all kernel names ending with a digit. hope that works for you, Kay ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ 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