JavaScript is required to for searching.
跳过导航链接
退出打印视图
Oracle Solaris 管理:设备和文件系统     Oracle Solaris 11 Information Library (简体中文)
search filter icon
search icon

文档信息

关于本书

1.  管理可移除介质(概述)

2.  管理可移除介质(任务)

3.  访问可移除介质(任务)

4.  写入 CD 和 DVD(任务)

5.  管理设备(概述/任务)

6.  动态配置设备(任务)

7.  使用 USB 设备(概述)

8.  使用 USB 设备(任务)

9.  使用 InfiniBand 设备(概述/任务)

10.  管理磁盘(概述)

11.  管理磁盘(任务)

管理磁盘(任务列表)

确定系统中的磁盘

如何确定系统中的磁盘

格式化磁盘

如何确定磁盘是否已格式化

如何格式化磁盘

显示磁盘分片

如何显示磁盘分片信息

创建和检查磁盘标签

如何为磁盘设置标签

如何检查磁盘标签

恢复损坏的磁盘标签

如何恢复损坏的磁盘标签

添加第三方磁盘

12.  SPARC:设置磁盘(任务)

13.  x86:设置磁盘(任务)

14.  使用 COMSTAR 配置存储设备

15.  配置和管理 Oracle Solaris Internet 存储名称服务 (Internet Storage Name Service, iSNS)

16.  format 实用程序(参考)

17.  管理文件系统(概述)

18.  创建和挂载文件系统(任务)

19.  配置附加交换空间(任务)

20.  复制文件和文件系统(任务)

21.  管理磁带机(任务)

索引

格式化磁盘

磁盘通常由制造商或转售商进行格式化。在安装驱动器时,通常无需重新格式化磁盘。

必须已对磁盘进行格式化后才能执行以下操作:


注意

注意 - 格式化磁盘是一个破坏性过程,因为它覆盖磁盘上的数据。由于此原因,磁盘通常仅由制造商或转售商进行格式化。如果认为磁盘缺陷是导致问题反复出现的原因,则可以使用 format 实用程序执行表面分析。但是,应非常谨慎地仅使用不会破坏数据的命令。


如何确定磁盘是否已格式化

  1. 成为管理员。

    有关更多信息,请参见《Oracle Solaris 管理:安全服务》中的"如何获取管理权限"

  2. 调用 format 实用程序。
    # format

    显示磁盘的编号列表。

  3. 键入要检查的磁盘的编号。
    Specify disk (enter its number): 0
  4. 通过查看以下消息,验证所选磁盘是否已格式化:
    [disk formatted]

示例 11-2 确定磁盘是否已格式化

以下示例说明磁盘 c2t3d0 已格式化。

# format
AVAILABLE DISK SELECTIONS:
       0. c2t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@0,0
       1. c2t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@1,0
       2. c2t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1c,600000/scsi@2/sd@2,0
       3. c2t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1c,600000/scsi@2/sd@3,0
Specify disk (enter its number): 3
selecting c2t3d0
[disk formatted]

如何格式化磁盘

磁盘由制造商进行格式化。很少出现重新格式化磁盘。该过程很耗费时间,并且会删除磁盘上的所有数据。

  1. 成为管理员。

    有关更多信息,请参见《Oracle Solaris 管理:安全服务》中的"如何获取管理权限"

  2. 调用 format 实用程序。
    # format

    显示磁盘的编号列表。

  3. 键入要格式化的磁盘的编号。
    Specify disk (enter its number): 3

    注意

    注意 - 请勿选择包含根文件系统的磁盘。如果格式化根池磁盘,则会删除该磁盘上的 OS 和任何数据。


  4. 要开始格式化磁盘,请在 format> 提示符下键入 format。通过键入 y 确认该命令。
    format> format
    The protection information is not enabled
    The disk will be formatted with protection type 0
    
    Ready to format.  Formatting cannot be interrupted
    and takes 169 minutes (estimated). Continue? yes
  5. 通过查看以下消息,验证磁盘格式化是否已成功:
    Beginning format. The current time is Fri Apr 1 ...
    
    Formatting...
    done
    
    Verifying media...
            pass 0 - pattern = 0xc6dec6de
    14086/23/734  
    
            pass 1 - pattern = 0x6db6db6d
       14086/23/734  
    
    Total of 0 defective blocks repaired.
  6. 退出 format 实用程序。
    format> quit