linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Liontooth <liontooth@cogweb.net>
To: linux-hotplug@vger.kernel.org
Subject: /dev/disk/by-id incomplete and unhelpful for SATA drives
Date: Thu, 22 Dec 2005 21:08:28 +0000	[thread overview]
Message-ID: <43AB15CC.9090208@cogweb.net> (raw)
In-Reply-To: <doc5jl$acv$1@sea.gmane.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_id\x16865&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

  parent reply	other threads:[~2005-12-22 21:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-21 18:05 /dev/disk/by-id incomplete and unhelpful for SATA drives Chris Paulson-Ellis
2005-12-21 18:55 ` Kay Sievers
2005-12-21 21:57 ` Chris Paulson-Ellis
2005-12-22  4:35 ` Kay Sievers
2005-12-22 11:24 ` Chris Paulson-Ellis
2005-12-22 18:35 ` Bill Nottingham
2005-12-22 21:08 ` David Liontooth [this message]
2005-12-22 22:48 ` Chris Paulson-Ellis
2005-12-23  0:12 ` Chris Paulson-Ellis
2006-01-06  1:36   ` patman
2006-01-06  2:57     ` Douglas Gilbert
2006-01-06 12:39       ` [PATCH] " Douglas Gilbert
2006-01-06 13:34         ` Chris Paulson-Ellis
2006-01-06 18:58           ` Patrick Mansfield
2006-01-06 19:46         ` Patrick Mansfield
2006-01-06 23:44           ` Douglas Gilbert
2006-03-06 20:08         ` Jeff Garzik
2006-03-07 17:05           ` Douglas Gilbert

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=43AB15CC.9090208@cogweb.net \
    --to=liontooth@cogweb.net \
    --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 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).