Determine Usable Disks at JumpStart

From: Fabrice Guerini (fabrice@bluemartini.com)
Date: Thu May 16 2002 - 14:46:26 EDT


Folks,

I am trying to programmatically generate a profile for JumpStart
installations. The issue, here, is that I cannot predict the disk that will
be used for O.S. installation.

In 99% of cases, I will be able to use "c0t0d0s0", but there are fringe
cases where the actual disk where I put my root partition is on a different
device name (case in point, my SunFire 280R is installed on "c1t0d0s0",
while the device on controller 0 is the CD-ROM drive).

I know I can determine the list of mountable devices using "iostat -xpn",
but how can I detect whether the device is a writable disk, suitable for
Solaris installation, or if it isn't (CD-ROM drive or other read-only
device)? The "format" command seems to be able to do that.

Thanks in advance.

+===========================================================+
| Fabrice "Script It!" Guerini Blue Martini Software, Inc. |
| Senior Operations Engineer 2600 Campus Drive |
| Tel: (650) 356-7576 San Mateo, CA 94403-2522 |
| Fax: (650) 356-4001 www.bluemartini.com |
+===========================================================+
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:20 EDT