系统管理指南:设备和文件系统

analyze 菜单

analyze 菜单的显示与以下内容类似。


format> analyze

 

ANALYZE MENU:

    read     - read only test   (doesn't harm SunOS)

    refresh  - read then write  (doesn't harm data)

    test     - pattern testing  (doesn't harm data)

    write    - write then read      (corrupts data)

    compare  - write, read, compare (corrupts data)

    purge    - write, read, write   (corrupts data)

    verify   - write entire disk, then verify (corrupts data)

    print    - display data buffer

    setup    - set analysis parameters

    config   - show analysis parameters

    quit

analyze> 

下表描述了 analyze 菜单项。

表 16–4 analyze 菜单项的说明

子命令 

说明 

read

读取当前磁盘上的每个扇区。缺省情况下会修复有缺陷的块。 

refresh

读取当前磁盘上的数据然后再将数据写入磁盘,而不损害数据。缺省情况下会修复有缺陷的块。 

test

将一组模式写入磁盘,而不损害数据。缺省情况下会修复有缺陷的块。 

write

将一组模式写入磁盘,然后读回磁盘上的数据。破坏磁盘上的现有数据。缺省情况下会修复有缺陷的块。 

compare

将一组模式写入磁盘,读回数据,然后将其与写缓冲区中的数据进行比较。破坏磁盘上的现有数据。缺省情况下会修复有缺陷的块。 

purge

从磁盘中删除所有数据,以便不能通过任何方式检索数据。通过在整个磁盘(或磁盘的一部分)范围写入三种不同的模式来删除数据。 如果验证通过,则将在整个磁盘(或磁盘的一部分)范围内写入十六进制位模式。 

缺省情况下会修复有缺陷的块。 

verify

第一遍将特殊数据写入整个磁盘上的每个块。 第二遍读取并验证这些数据。破坏磁盘上的现有数据。缺省情况下会修复有缺陷的块。 

print

显示读/写缓冲区中的数据。 

setup

用于指定以下分析参数: 

Analyze entire disk? yes

Starting block number: depends on drive

Ending block number: depends on drive

Loop continuously? no

Number of passes: 2

	Repair defective blocks? yes

Stop after first error? no

Use random bit patterns? no

Number of blocks per transfer: 126 (0/n/nn)

Verify media after formatting? yes

Enable extended messages? no

Restore defect list? yes

Restore disk label? yes

config

显示当前分析参数。 

quit

退出 analyze 菜单。