Mailinglist Archive: opensuse (3506 mails)

< Previous Next >
udev - how to configure a specific mounting point for external
  • From: Alain Barthélemy <cassandre@xxxxxxxxxxxx>
  • Date: Fri, 8 Sep 2006 22:11:24 +0000 (UTC)
  • Message-id: <20060908221100.GA2940@xxxxxxxxxxxxxxxxxxxxxx>
HD?
Reply-To:
X-OS: Linux portable.maison 2.4.27-2-386
X-Ici: bartydeux

SuSE-10.1 (x86-64) - kernel 2.6.16.13-4

Two external usb HD - one (HD1) with four partitions, one (HD2) with 3
partitions.

They are mounted in a haphazard way /media/usbdisk-1, ...
/media/usbdisk-6

I would like the four partitions of HD1 to be mounted as
/media/disk1.../media/disk4 corresponding to the same partitions (disk1
is always the same partition, disk2, disk3, disk4 too).

With udevinfo -a -p /dev/sda, I know that with HD1
SYSFS(model)=="0BB-00JHC0" and SYSFS(vendor)=="WDC WD80"
but I did not succeed to type the correct udev rule in the script /etc/udev/rules.d/00-perso.rules

I tried the rule:
BUS=="scsi", KERNEL=="sd*", SYSFS{vendor}=="WDC WD80",
SYSFS{model}=="0BB-00JHC0", NAME="%k", SYMLINK+="usbhd%n"

but without success.

Is there a Web site where I can find the right way to type the rules?

--
Alain Barthélemy
cassandre@xxxxxxxxxxxx
http://www.bartydeux.be
Linux User #315631

< Previous Next >
This Thread
  • No further messages