Hello Sunmanagers, Thanks for all who repsonded, Below is the few which i would like to quote, Spl Thanks to Elliot, Don,Darren and Simon. ------------Responses which helped------------------- Elliot Moore" <elliot@devnull.org.uk http://www.sun.com/bigadmin/content/submitted/label_multi_disks.jsp http://www.sun.com/bigadmin/content/submitted/format_utility.html _____________________________________________________________________ Don Ratliff" <ddratliff@yahoo.com> I've used this in the past, where you have to fill in your own 'c' and 't' numbers in the for loops below. or you could do it manually without the for loops Don --------------------------------------------------- this will label all the drives #!/bin/sh for c in 3 4 5 6 7 8 9 10 11 12 13 14 15; do for t in 0 1 2 3 4 5 8 9 10 11 12 13 ; do format -s -f fmtcf c$c"t"$t"d0" done done where ftmcf is a command file ( see man page for format ) with the word "label" ( without the quotes ) in it _____________________________________________________________________ Darren Dunham" <ddunham@taos.com The format command assumes 'yes' answer to questions when run in non-interactive mode. It also asks to format when a non-labeled disk is selected. So the easiest way is to create a command file like this: disk 1 disk 2 disk 3 disk 4 [...] and feed that to format with -f. Each disk in the list will be selected, and only if it is unlabeled, it will have a new label attached. _____________________________________________________________________ Simon" <simon.zcyuan@gmail.com for disk in `ls /dev/dsk/c#s2|awk -F\/ '{print $NF}'` (replace "#" with the actual controller instance number) do format $disk <<eof >/dev/null 2>&1 type 0 label yes quit eof done . Regards, -Sunny. ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Fri Aug 24 15:01:40 2007
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:06 EST