/sbus@2,0/QLGC,isp@2,10000/sd@0,0
1. /dev/rdsk/c1t1d0s0 /sbus@2,0/QLGC,isp@2,10000/sd@1,0
(4)选择新的硬盘号码,进入硬盘设置菜单,使用下面命令进入分区菜单:
format> partition
(5)查看分区情况:
partition> print
(6)修改分区设置:
partition> modify
(7)写入lalel标识中:
partition>label
(8)离开分区菜单:
partition>quit
(9)保存设置,并退出:
format>save
format>quit
#
(10)使用命令newfs来为每一个分区创建文件系统:
#newfs /dev/rdsk/c?t?d?s?
(11)修改/etc/vfstab文件,使新的硬盘分区可以在系统启动的时候别自动mount。
2.在x86平台上增添第2块硬盘
在x86平台上添加第2块硬盘比起在SPARC平台上稍微复杂些。因为x86平台上有个fdisk分区的概念。fdisk分区是区分Solaris系统分区和其他如DOS分区、Linux分区的,毕竟大多数x86平台都可以运行着多操作系统,而在SPARC平台上就没有这些考虑了。
在fdisk分区之后,只有分给Solaris系统的硬盘部分,我们才可以和在SPARC平台上一样进行盘片的分割。限于篇幅,这部分我们将不再叙述,请参见上面的SPARC部分。
下面我们主要介绍x86的fdisk分区:
format> fdisk
Total disk size is 3498 cylinders
Cylinder size is 1199 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ====== ===== === ====== ===
1 Active DOS-BIG 1 699 699 20
可以看出原盘只有DOS分区,下面建立Solaris分区:
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 1
选择1,则可创建分区。
Indicate the type of partition you want to create
1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other
5=DOS12 6=DOS16 7=DOSEXT 8=DOSBIG
9=DOS16LBA A=x86 Boot B=Diagnostic C=FAT32
D=FAT32LBA E=DOSEXTLBA F=EFI 0=Exit?1
键入1,则可选择创建Solaris分区。
Indicate the percentage of the disk you want this partition
to use (or enter "c" to specify in cylinders). 80
指出分区的大小百分比。
Should this become the active partition? If yes, it will be
activated each time the computer is or turned on.
Please type "y" or "n". y
键入y,设定为活动分区。
Total disk size is 3498 cylinders
Cylinder size is 1199 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ========= ===== === ====== ===
1 DOS-BIG 1 699 699 20
2 Active Solaris2 700 3497 2798 80
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection:5
键入5,选择退出fdisk分区设置。
接下来就是划分Solaris分区的盘片了,这里不再叙述。