From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 29 Jun 2004 07:00:56 +0000 Subject: Re: Questions concerning udev and removeable media, dvd and links Message-Id: <20040629070056.GA3614@kroah.com> List-Id: References: <20040629060122.GH14667@gamma.logic.tuwien.ac.at> In-Reply-To: <20040629060122.GH14667@gamma.logic.tuwien.ac.at> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Jun 29, 2004 at 08:50:52AM +0200, Norbert Preining wrote: > Hi Greg! > > Thanks for the hints: > > On Mon, 28 Jun 2004, Greg KH wrote: > > > Thus, is it possible to do some changes that the partition devnodes are > > > *always* also created for these kinds of disks, or all? > > > > Yes, look at the section in the udev manpage that talks about > > NAME{all_partitions}. > > I have added the following to /etc/udev/rules.d/local.rules: Why "local.rules"? Try "00-local.rules" instead to make sure that file is read first. Anyway, it looks like your rules are not matching the device properly, because of: > BUS="scsi", SYSFS{model}="HS-CF", NAME{all_partitions}="sda" > BUS="scsi", SYSFS{model}="HS-MS", NAME{all_partitions}="sdb" > BUS="scsi", SYSFS{model}="HS-SM", NAME{all_partitions}="sdc" > BUS="scsi", SYSFS{model}="HS-SD/MMC", NAME{all_partitions}="sdd" > > But restarting udev didn't create the partitions: > udev[7998]: creating device node '/dev/sdd' > udev[8000]: creating device node '/dev/sdc' > udev[8002]: creating device node '/dev/sdb' > udev[8004]: creating device node '/dev/sda' > udev[8006]: configured rule in '/etc/udev/rules.d/udev.rules' at line 19 applied, 'hdd' becomes '%k' No mention of using the local.rules file :( Are you sure the sda device has a SYSFS{model}="HS-CF" field? What does: udevinfo -p /sys/block/sda -a show? > > > Where should I configure this. > > > > Add a symlink for ttyUSB1 with a rule like: > > KERNEL="ttyUSB1", SYMLINK="pilot" > > ok, thanks. > BUT: Is it will create it *in advance* so that pilot-xfer etc do not > bomb out because device is not existent! pilot-xfer knows better than to die these days. Anyway, creating a link that points to a device node that isn't there isn't going to help pilot-xfer out any. This is just the way the hardware works for pilot devices, sorry. greg k-h ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ 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