From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Liontooth Date: Thu, 22 Dec 2005 21:08:28 +0000 Subject: /dev/disk/by-id incomplete and unhelpful for SATA drives Message-Id: <43AB15CC.9090208@cogweb.net> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org I can see the ID of my SATA drive with # scsi_id -g -p0x80 -x -s /block/sda ID_VENDOR=ATA ID_MODEL=ST3400832AS ID_REVISION=3.03 ID_SERIAL=SATA_ST3400832AS_5NF14TVY ID_TYPE=disk ID_BUS=scsi or with # sdparm --page=sn /dev/sda /dev/sda: ATA ST3400832AS 3.03 Unit serial number VPD page: 5NF14TVY On a Debian sid (amd64) with udev 0.076-6, however, I don't have a /etc/scsi_id.config. Can I give my drives mount points using only /etc/udev.rules? Another possibility would be to use label, which shows correctly in tree: # tree /dev/disk /dev/disk |-- by-id | |-- ata-Maxtor_7B250R0_B61NS9FH -> ../../hda | |-- ata-Maxtor_7B250R0_B61NS9FH-part1 -> ../../hda1 | |-- ata-Maxtor_7B250R0_B61NS9FH-part2 -> ../../hda2 | |-- ata-Maxtor_7B250R0_B61NS9FH-part3 -> ../../hda3 | |-- ata-Maxtor_7B250R0_B61NS9FH-part4 -> ../../hda4 | |-- ata-Maxtor_7B250R0_B61NS9FH-part5 -> ../../hda5 | |-- ata-Maxtor_7B250R0_B61NS9FH-part6 -> ../../hda6 | |-- ata-Maxtor_7B250R0_B61NS9FH-part7 -> ../../hda7 | |-- ata-Maxtor_7B250R0_B61NS9FH-part8 -> ../../hda8 | |-- scsi-0ATA_ST3400832AS_Linux_ATA-SCSI_simulator -> ../../sda | `-- scsi-0ATA_ST3400832AS_Linux_ATA-SCSI_simulator-part1 -> ../../sda1 |-- by-label | |-- bc5 -> ../../sda1 | |-- bc6 -> ../../sdb1 | `-- bcspare -> ../../hda8 I have drives with several different filesystems, but perhaps that makes no difference? These three labels are all XFS. The board has two SATA chips, sata_sil and sata_nv, and device nodes vary depending on how many drives are present. I remove drives as they fill and put them in SATA-to-USB enclosures. Ideally I'd have them mount to the same location also as external drives. Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ 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