(VMware)Solaris 10添加新硬盘
一:装载硬盘到SUN主机,开机进入系统。
二:运行format命令,先选择要进行分区格式化的磁盘
bash-3.2# format #查看已经挂接上的硬盘
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <VMware,-VMware Virtual -1.0 cyl 1955 alt 2 hd 255 sec 63>
/pci@0,0/pci15ad,1976@10/sd@0,0
1. c1t1d0 <VMware,-VMware Virtual -1.0 cyl 1021 alt 2 hd 64 sec 32>
/pci@0,0/pci15ad,1976@10/sd@1,0
Specify disk (enter its number): 1 #选择1硬盘
selecting c1t1d0
[disk formatted]
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
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
三:输入命令fdisk,对硬盘进行分区后,退出fdisk界面。
format> p #新硬盘,要先用fdisk格式化后,才能用partition进行分区,不然会有提示如下:
Please run fdisk first
format> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y
四:输入命令partition,在格式化硬盘后,进行分区
format> p