All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: multiple /dev nodes for one device
Date: Fri, 18 Jun 2004 17:13:18 +0000	[thread overview]
Message-ID: <1087578798.2645.23.camel@pim> (raw)
In-Reply-To: <20040618175331.750b38f8.thecoop@runbox.com>

On Fri, 2004-06-18 at 17:53 +0100, Simon Cooper wrote:
> afaict atm udev doesnt allow you to create several dev nodes for one device. Ive got two problems caused by this:
> 1. my usb stick has got two partitions on it by default, without any udev rules applied to it I get the following:
> /dev/sda - no fs on it, probably the device itself
> /dev/sda1 - 123MB partition
> /dev/sdb - 1.44MB partition
> When applying the following rule:
> BUS="usb", SYSFS{product}="USB DISK Pro    ", SYSFS{serial}="0745143C0356", NAME="usbstick"
> i can only access the 123MB partition.

This rule matches for all your devices to one single name :).
Catch all device by using one rule for every node by adding
KERNEL="sd*1", or use NAME="usbstick%n".

Kay



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
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

      reply	other threads:[~2004-06-18 17:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-18 16:53 multiple /dev nodes for one device Simon Cooper
2004-06-18 17:13 ` Kay Sievers [this message]

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=1087578798.2645.23.camel@pim \
    --to=kay.sievers@vrfy.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.