スーパーユーザーになります。
欠陥セクターの存在するスライス内のファイルシステムをマウント解除します。
詳細は、mount(1M) のマニュアルページを参照してください。
# umount /dev/dsk/device-name |
format と入力して format ユーティリティを起動します。
# format |
調べるディスクを選択します。
Specify disk (enter its number):1 selecting c0t2d0: [disk formatted] Warning: Current Disk has mounted partitions. |
format> プロンプトで analyze と入力して、analyze メニューに入ります。
format> analyze |
analyze> プロンプトで setup と入力して、検索手順に使用する解析パラメータを設定します。次のパラメータを使用してください。
analyze> setup Analyze entire disk [yes]? n Enter starting block number [0, 0/0/0]: 12330 Enter ending block number [2052287, 2035/13/71]: 12360 Loop continuously [no]? y Repair defective blocks [yes]? n Stop after first error [no]? n Use random bit patterns [no]? n Enter number of blocks per transfer [126, 0/1/54]: 1 Verify media after formatting [yes]? y Enable extended messages [no]? n Restore defect list [yes]? y Create defect label [yes]? y |
read コマンドを使用して欠陥を見つけます。
analyze> read Ready to analyze (won't harm SunOS). This takes a long time, but is interruptible with Control-C. Continue? y pass 0 2035/12/1825/7/24 pass 1 Block 12354 (18/4/18), Corrected media error (hard data ecc) 25/7/24 ^C Total of 1 defective blocks repaired. |