- 论坛徽章:
- 0
|
-bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
/pci@0,0/pci15ad,1976@10/sd@0,0
1. c1t1d0 <DEFAULT cyl 1564 alt 2 hd 255 sec 63>
/pci@0,0/pci15ad,1976@10/sd@1,0
Specify disk (enter its number): 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
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
format> partition
PARTITION MENU:
0 - change `0\' partition
1 - change `1\' partition
2 - change `2\' partition
3 - change `3\' partition
4 - change `4\' partition
5 - change `5\' partition
6 - change `6\' partition
7 - change `7\' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> modify
Select partitioning base:
0. Current partition table (original)
1. All Free Hog
Choose base (enter number) [0]? 1
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 1562 11.97GB (1563/0/0) 25109595
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 alternates wm 0 0 (0/0/0) 0
Do you wish to continue creating a new partition
table based on above table[yes]? yes
Free Hog partition[6]? 7
Enter size of partition \'0\' [0b, 0c, 0.00mb, 0.00gb]: 500mb
Enter size of partition \'1\' [0b, 0c, 0.00mb, 0.00gb]: 500mb
Enter size of partition \'3\' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition \'4\' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition \'5\' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition \'6\' [0b, 0c, 0.00mb, 0.00gb]: 5gb
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 64 502.03MB (64/0/0) 1028160
1 swap wu 65 - 128 502.03MB (64/0/0) 1028160
2 backup wu 0 - 1562 11.97GB (1563/0/0) 25109595
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 129 - 781 5.00GB (653/0/0) 10490445
7 unassigned wm 782 - 1562 5.98GB (781/0/0) 12546765
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 alternates wm 0 0 (0/0/0) 0
Okay to make this the current partition table[yes]? yes
Enter table name (remember quotes): disk2
Ready to label disk, continue? yes
partition> q
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
format> verify
Warning: Primary label on disk appears to be different from
current label.
Warning: Check the current partitioning and \'label\' the disk or use the
\'backup\' command.
Primary label contents:
Volume name = < >
ascii name = <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
pcyl = 1565
ncyl = 1563
acyl = 2
bcyl = 0
nhead = 255
nsect = 63
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 1 - 64 502.03MB (64/0/0) 1028160
1 unassigned wm 65 - 128 502.03MB (64/0/0) 1028160
2 backup wu 0 - 1562 11.97GB (1563/0/0) 25109595
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 129 - 781 5.00GB (653/0/0) 10490445
7 unassigned wm 782 - 1562 5.98GB (781/0/0) 12546765
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wm 0 0 (0/0/0) 0
format> q
-bash-3.00#
-bash-3.00# ls c1t1d0s*
c1t1d0s0 c1t1d0s10 c1t1d0s12 c1t1d0s14 c1t1d0s2 c1t1d0s4 c1t1d0s6 c1t1d0s8
c1t1d0s1 c1t1d0s11 c1t1d0s13 c1t1d0s15 c1t1d0s3 c1t1d0s5 c1t1d0s7 c1t1d0s9
-bash-3.00#
接下来,我需要newfs创建文件系统,我知道应该是newfs /dev/rdsk/c1t1d0s*;但是我不确定,我创建了几个片?哪些可以用来newfs?
对这一块一知半解,多谢指点.
[ 本帖最后由 lovehpw 于 2008-9-23 14:18 编辑 ] |
|