linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* multiple /dev nodes for one device
@ 2004-06-18 16:53 Simon Cooper
  2004-06-18 17:13 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Cooper @ 2004-06-18 16:53 UTC (permalink / raw)
  To: linux-hotplug

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.

2. when applying udev rules to devices using nodes in /dev/input, the corresponding /dev/input/event* gets hosed in the process. This breaks my synaptics touchpad, whos driver uses direct event* lookup and removing other event nodes breaks it for some reason. I need to do this because if my usb mouse is plugged in on bootup it takes mouse0 otherwise it takes mouse2 which screws up my xorg.conf, which is the exact problem udev was meant to overcome.

Is there any way to specify multiple nodes for a device, apart from using kludgy direct name changes for the usb partitions, which could break with anyone using scsi disks for proper? Havent yet found a solution for the /dev/input nodes...

Simon Cooper
(cc to my address pls, not subscribed)


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: multiple /dev nodes for one device
  2004-06-18 16:53 multiple /dev nodes for one device Simon Cooper
@ 2004-06-18 17:13 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2004-06-18 17:13 UTC (permalink / raw)
  To: linux-hotplug

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-18 17:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-18 16:53 multiple /dev nodes for one device Simon Cooper
2004-06-18 17:13 ` Kay Sievers

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).