LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-11-2005, 11:22 AM   #1
Beebe
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Rep: Reputation: 0
Batch File for format? Bulk Formatting


Hi

We currently use Solaris 8 to format an array of 56 drives via a fibre channel card.

This is a very manual process.. it involves opening a console, typing format. This then gives a list of all 56 drives with a number.

We then have to enter the number of the drive. then we have to type format, then y.

That then starts formatting the drive we have chosen. We have to repeat this 56 times in individual windows!

Do you know if there is any way of writing a batch file or script that can automate this process? or point me in the right direction?

Maybe theres a program we can use to do this instead?

Any advice would be much appreciated.

Paul
 
Old 04-12-2005, 04:03 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Isn't the format (1M) command supporting the "-f" option to allow non-interactive operation ?
 
Old 04-12-2005, 05:07 AM   #3
Beebe
LQ Newbie
 
Registered: Apr 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jlliagre
Isn't the format (1M) command supporting the "-f" option to allow non-interactive operation ?
Thanks for the reply, I am really not sure as I am a newbie to all this. Ill see what I can do... Any more suggestions would be grateful.

Thanks

Paul
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting external harddrive to Linux format DJOtaku Linux - Hardware 12 02-05-2005 09:18 PM
convertion from doc file to pdf in bulk sujith_deva General 6 12-09-2004 11:20 PM
Bulk change image format apokryphos Linux - General 11 09-06-2004 04:17 PM
Bulk File Renaming nevereverend Linux - Newbie 11 07-03-2004 05:28 PM
Bulk image format conversions with a shell script? infidel Linux - Software 4 11-16-2003 07:20 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration