跳过导航链接 | |
退出打印视图 | |
Oracle Solaris 管理:设备和文件系统 Oracle Solaris 11 Information Library (简体中文) |
磁盘通常由制造商或转售商进行格式化。在安装驱动器时,通常无需重新格式化磁盘。
必须已对磁盘进行格式化后才能执行以下操作:
将数据写入磁盘。不过,大多数磁盘都已经格式化。
使用 Oracle Solaris 安装实用程序安装系统。
注意 - 格式化磁盘是一个破坏性过程,因为它覆盖磁盘上的数据。由于此原因,磁盘通常仅由制造商或转售商进行格式化。如果认为磁盘缺陷是导致问题反复出现的原因,则可以使用 format 实用程序执行表面分析。但是,应非常谨慎地仅使用不会破坏数据的命令。 |
有关更多信息,请参见《Oracle Solaris 管理:安全服务》中的"如何获取管理权限"。
# format
显示磁盘的编号列表。
Specify disk (enter its number): 0
[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]
磁盘由制造商进行格式化。很少出现重新格式化磁盘。该过程很耗费时间,并且会删除磁盘上的所有数据。
有关更多信息,请参见《Oracle Solaris 管理:安全服务》中的"如何获取管理权限"。
# format
显示磁盘的编号列表。
Specify disk (enter its number): 3
注意 - 请勿选择包含根文件系统的磁盘。如果格式化根池磁盘,则会删除该磁盘上的 OS 和任何数据。 |
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
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.
format> quit