Rob Landley wrote:
> On Sunday 05 August 2007 11:50:33 am Douglas Gilbert wrote:
>> Stefan Richter wrote:
>>> Rob Landley wrote:
>>>> There are such things as external SATA enclosures, but
>>>> they're A) few and far between,
>>> What? They are all the rage now. :-)
...
> My point is that there are something like ten million of laptops produced
> annually and with enclosures you're talking about a technology where the
> entire production run generally doesn't hit six figures in unit volume. That
> would be "few and far between" in my book. (Don't get me started on cell
> phones. :)
The case of a laptop with a single sealed "spindle" (and maybe an
optical drive) is easy. Among else, you have the following options:
- Let the distributor figure it out for you.
- Link the driver for the onboard SATA controller statically into
the kernel. Make all other SCSI low-level providers (e.g. usb-
storage) modular.
In other words, if SATA and USB and other disks are mixed up, let the
distributor deal with the mix-up. You only ever deal with device
aliases in /dev/disk/by-*/ or with an even higher-level representation
by the desktop environment. _Or_ you enforce that the built-in SATA
drive is always /dev/sda, by having this drive always added first.
...
> Right now "this is a SATA drive" isn't exposed in sysfs, that I can find.
Have a look at the udev scripts or at Doug's lsscsi. Or simply use
lsscsi like a blackbox.
--
Stefan Richter
-=====-=-=== =--- --==-
http://arcgraph.de/sr/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html