SUMMARY: How to script labeling of new disks to avoid manually using format?

From: Jeff Lucas <jhl22_at_yahoo.com>
Date: Fri May 24 2002 - 10:26:47 EDT
Wow. I did not expect to get bombarded with responses!

Thanks to all!

In summary, there were many variations of piping
prtvtoc output to fmthard.  Some examples are as
follows...

##############
Example 1
##############
label one disk, let's say /dev/rdsk/c0t0d0s2, then do
prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - <every other
disk>

##############
Example 2
##############
for i in 1 2 3 4 5 6 7 8 9 ; do
prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s -
/dev/rdsk/c2t0d$is2
done

There were other suggestions which included using
perl.  Let me know if you want them.

Thanks.

-Jeff
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri May 24 10:32:41 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:44 EST