[Casper] disk identifiers
Thomas Larkin
tlarki at kckps.org
Fri Dec 19 12:34:01 PST 2008
I would assume it reads it from EFI (firmware) and then by bus for
internals and externals just get the next available when plugged in.
You could always try looping your scripts
like
for i in /usr/sbin/diskutil list
if $i = something
then do something
else exit
fi
to give a really rough example...
___________________________
Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
blackberry: 913-449-7589
office: 913-627-0351
>>> "Miles Leacy" <miles.leacy at themacadmin.com> 12/19/08 11:33 AM >>>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20081219/1a8c5b29/attachment.html
More information about the Casper
mailing list