The UNIX and Linux Forums  


Go Back   Die UNIX-und Linux-Foren > Betriebssysteme > SUN Solaris
.
Google unix.com



SUN Solaris Das Solaris Operating System, in der Regel auch nur Solaris, ist ein freies Unix-basierten Betriebssystem, die von Sun Microsystems.

Mehr UNIX-und Linux-Forum Themen Vielleicht finden Sie hilfreiche
Faden Thread Starter Forum Antworten Last Post
Version Kennzeichnung ist außer Kontrolle iBot UNIX-und Linux-RSS-News 0 06-07-2008 10:40 AM
Automatische Überwachung Speicherplatz Anuradha Dateisysteme, Festplatten und Memory 3 01-15-2008 03:37 PM
FDA sagt keine neue Beschriftung für Nanotech-Produkte - Washington Post iBot UNIX-und Linux-RSS-News 0 07-25-2007 05:00 PM
Automatische Überwachung Speicherplatz nfbeerse Shell Programmierung und Scripting 3 03-01-2004 04:16 AM
automatische su OMRAN Shell Programmierung und Scripting 1 08-19-2002 06:03 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Suche diesen Thread Rate Thread Anzeige-Modi
  #1 (permalink)  
Old 09-25-2006
kwachtler kwachtler is offline
Registrierte Nutzer
  
 

Join Date: Sep 2006
Beiträge: 15
Automatische Beschriftung der Festplatte

First post ...
Hier ist ein Skript für die automatische Kennzeichnung von zuvor unlabeled Festplatten.
Andere Methoden bestehen (Format-f cmd_file), aber ich mag das, weil es an einem Ort.

Code:
#!/bin/ksh
#----------------------
# format_label
# Automatic labeling of previously unlabeled disks
# 2006.08.31 ken.wachtler
#----------------------
 
# Enter a list of disks, as format's banner would report them
Disks="
c4t50060482CCAB2987d27
c4t50060482CCAB2987d28
c4t50060482CCAB2987d29
c4t50060482CCAB2987d30
c4t50060482CCAB2987d31
c4t50060482CCAB2987d32
c4t50060482CCAB2987d33
c4t50060482CCAB2987d34
c4t50060482CCAB2987d35
c4t50060482CCAB2987d36
c4t50060482CCAB2987d37
c4t50060482CCAB2987d38
c4t50060482CCAB2987d39
c4t50060482CCAB2987d40
c4t50060482CCAB2987d41
c4t50060482CCAB2987d42
c4t50060482CCAB2987d43
c4t50060482CCAB2987d44
c4t50060482CCAB2987d45
c4t50060482CCAB2987d46
c4t50060482CCAB2987d47
c4t50060482CCAB2987d48
c4t50060482CCAB2987d49
c4t50060482CCAB2987d50
c4t50060482CCAB2987d51
c4t50060482CCAB2987d52
c4t50060482CCAB2987d53
c4t50060482CCAB2987d54
c4t50060482CCAB2987d55
c4t50060482CCAB2987d56
c4t50060482CCAB2987d57
c4t50060482CCAB2987d58
c4t50060482CCAB2987d59
c4t50060482CCAB2987d60
c4t50060482CCAB2987d61
c4t50060482CCAB2987d62
"
 
for d in $Disks ; do
 
  # write label
  printf "label\nyes\nquit\n" | format -d $d
 
  # check label
  printf "\n\n${d}\n\n"
  prtvtoc /dev/dsk/${d}s0 | egrep '^P  |^  '
  echo "<cr> to cont: "
  read a
 
done


Zuletzt bearbeitet von Lötlampe; am 09-25-2006 11:19 PM.. Grund: Code-Tags hinzufügen
 

Lesezeichen

Thread Tools Suche diesen Thread
Suche diesen Thread:

Erweiterte Suche
Anzeige-Modi Rate this thread
Rate this thread:

Forumregeln
Du möglicherweise nicht neue Themen
Du möglicherweise nicht nach Antworten
Du möglicherweise nicht post-Anlagen
Du möglicherweise nicht bearbeiten Sie Ihre Beiträge

BB-Code ist Auf
Smilies sind Auf
[IMG] Code Auf
HTML-Code ist Aus
Trackbacks sind Auf
Pingbacks sind Auf
Refbacks sind Auf




Alle Zeiten sind GMT -4. Es ist jetzt 03:21 AM.


Powered by: vBulletin, Copyright © 2000 - 2006, Jelsoft Enterprises Ltd. Sprachliche Übersetzungen Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
Die UNIX-und Linux-Foren Content © Copyright 1993-2009. Alle Rechte Reserved.Ad Management von RedTyger

Content Relevant URLs durch vBSEO 3.2.0