Hey all,
I know that disk identifiers (disk0, disk1, etc) are assigned in the order
in which the disks were attached. For example, if you boot a Mac with a
single internal drive, that drive will be disk0. Once booted, you can
insert an optical disk, and the optical disk will be called disk1. If you
later plug in a USB disk, the USB disk will be disk2.
I'm trying to find out the order in which disk identifiers are assigned at
boot time.
For example, if you have an Xserve with three internal hard disks, an
optical disk inserted, and a USB drive attached, can you count on the
internal disks having the disk0, disk1, and disk2 identifiers? What
identifiers would the optical and USB disks get?
I'm guessing there's an order of precedence by bus, but is this documented
somewhere? I've been flipping through Mac OS X Internals by Amit Singh and
haven't found the answer yet. most of the comments I've found by googling
assume that disk identifier assignment is a form of voodoo. This is a
computer, not a witches' brew, so there has to be a set of rules that govern
disk identifier assignment, and I'm hoping someone on the list knows what
those rules are.
I ask because I want to implement some diskutil scripts, but I need to know
whether my assumption that SATA (or at least internal hard) disks always get
the lowest disk identifiers at boot is true.
----------
Miles A. Leacy IV
? Certified System Administrator 10.4
? Certified Technical Coordinator 10.5
? Certified Trainer
Certified Casper Administrator
----------
voice: 1-347-277-7321
miles.leacy at themacadmin.com
www.themacadmin.com
