On 10/11/07, Edwards, David  (JTS) <[EMAIL PROTECTED]> wrote:
> Hi again.
>
> Just a wrap up to this thread.
> -----------------
>
> Disk naming seems to be consistent after you first plug the device in.
>
> So:
> The first disk plugged into a port (say "addr 2") gets sd1 (if your SATA
> disk is sd0)
> The second disk plugged into another port (say "addr 3") gets sd2, etc
>
> If you unplug the first and the second and then plug the second in again
> first (to the same port of course "addr 3" :-) it still seems to get
> sd2.  But I doubt you can rely on this.  Also at boot time, it's unclear
> which disk device will be allocated to which physical port.
>
> I'm not happy with the fact that the script uses dmesg output.  dmesg
> uses a ring buffer and that can fill very quickly (say if you unplug a
> usb disk while something is writing to it) which will break the above
> script totally.  However, currently I don't have the time (or probably
> the expertise) to go through the source to work out a better way to do
> it.

everything in dmesg is also dumped to /var/log/messages.
disk naming *is* consistent in OpenBSD. devices are all named in a
deterministic manner, so that they won't change on you without you
realizing it / adding an extra layer of naming indirection.

What are you actually trying to do here? boot from a USB disk?

-Nick

Reply via email to