format的命令有哪些?

来源:百度知道 编辑:UC知道 时间:2024/06/05 05:56:03
问题说明越详细,回答也会越准确!先谢谢了......

由于它的破坏性极大,使用时一定要小心!
两个用途,即格式化硬盘和重新对硬盘分区.
1)格式化硬盘
最好进入单用户模式
#format
系统会显示所有的硬盘并让我们选择要操作硬盘:
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1f,4000/scsi@3/sd@0,0
1. c0t1d0
/pci@1f,4000/scsi@3/sd@1,0
2. c0t2d0
/pci@1f,4000/scsi@3/sd@2,0
3. c0t3d0 u03
/pci@1f,4000/scsi@3/sd@3,0
Specify disk (enter its number): 2
selecting c0t2d0
[disk formatted]
Warning: Current Disk has mounted partitions.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the di