Solaris のシステム管理

ディスクをフォーマットする方法

  1. スーパーユーザーになります。

  2. format ユーティリティを起動します。

    # format
    
  3. 画面に表示されるリストから、フォーマットしたいディスクの番号を入力します。

    Specify disk (enter its number): 0
    

    警告 - 警告 -

    システムディスクを選択しないでください。システムディスクをフォーマットすると、オペレーティングシステムや、このディスクに入っているデータが削除されます。


  4. ディスクのフォーマットを開始するには、format> プロンプトで format と入力します。y と入力してコマンドを確認します。

    format> format
    Ready to format. Formatting cannot be interrupted
    and takes 10 minutes (estimated). Continue? y
    
  5. 次のメッセージによりフォーマットが正常に行われたことを確認します。

    Formatting ...
    done
    Verifying media ...
    pass 0 - pattern = 0xc6dec6de
    2035/12/18
    pass 1 - pattern = 0x6db6db6d
    2035/12/18
    total of 0 defective blocks repaired.

例 - ディスクをフォーマットする

次の例では、ディスク c0t2d0 をフォーマットします。

# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c0t1d0 <SUN0535 cyl 1866 alt 2 hd 7 sec 80>
          /sbus@1,f8000000/esp@0,800000/sd@1,0
       1. c0t2d0 <SUN1.05 cyl 2036 alt 2 hd 14 sec 72>
          /sbus@1,f8000000/esp@0,800000/sd@2,0
Specify disk (enter its number):1
Selecting c0t2d0
[disk unformatted]
format> format
Ready to format. Formatting cannot be interrupted
and takes 23 minutes (estimated). Continue? y
Beginning format. The current time is Tue Nov 12 10:04:33 1996
Formatting ...
done
Verifying media ...
pass 0 - pattern = 0xc6dec6de
2035/12/18
pass 1 - pattern = 0x6db6db6d
2035/12/18
total of 0 defective blocks repaired.
format>