Solaris 格式化硬盘( 二 )


========= ====== ============ ======== ====== ===
1Solaris1 2523125231 100


WARNING: no partitions are defined!

SELECT ONE OF THE FOLLOWING:

1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Exit (update disk configuration and exit)
5. Cancel (exit without updating disk configuration)
Enter Selection: 4


WARNING: Solaris fdisk partition changed - Please relabel the disk
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
! - execute , then return
quit
partition> print
Current partition table (cyl):
Total disk cylinders available: 252292 (reserved cylinders)


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 - 25228 12.13GB (25229/0/0) 25430832
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 0.49MB (1/0/0) 1008
9 alternates wm 1 - 2 0.98MB (2/0/0)

partition> 0 ( Part 2, 8, 9 是不需要进行任何修改)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0

Enter partition id tag[root]:
( 只可使用 unassigned, boot, root, swap, usr, backup, stand, var, home, alternates )
Enter partition permission flags[wm]:
( wm - read-write, mountable,wu - read-write, unmountable,rm - read-only, mountable,ru -

read-only, unmountable )
Enter new starting cyl[0]: 3 ( 從 Part 8 - 9 可以看到Cylinders 0 - 2 已经给系统使用,所以要

由 3 开始 )
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: ?
Expecting up to 25427808 blocks, 25226 cylinders, 12415.92 megabytes, or 12.12 gigabytes
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 25427808b
partition> print
Current partition table (cyl):
Total disk cylinders available: 252292 (reserved cylinders)


Part Tag Flag Cylinders Size Blocks
0 root wm 3 - 25228 12.13GB (25226/0/0) 25427808
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 25228 12.13GB (25229/0/0) 25430832
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 0.49MB (1/0/0) 1008
9 alternates wm 1 - 2 0.98MB (2/0/0)

partition> label
Ready to label disk, continue? y

partition> quit
format> label ( 为了保险所以输入多一次label )
Ready to label disk, continue? y
format> quit
# newfs /dev/rdsk/c0d0s0 ( c0d0 是硬盘的名称,可参考IDE 和 SCSI 分配名称 。s0 是 Part 0 。
newfs: construct a new file system /dev/rdsk/c0d0s0: (y/n)? y
/dev/rdsk/c0d0s0: 25427808 sectors in 25226 cylinders of 16 tracks, 63 sectors
12415.9MB in 287 cyl groups (88 c/g, 43.31MB/g, 5504 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 88800, 177568, 266336, 355104, 443872, 532640, 621408, 710176, 798944,
887712, 976480, 1065248, 1154016, 1242784, 1331552, 1419296, 1508064, 1596832,
1685600, 1774368, 1863136, 1951904, 2040672, 2129440, 2218208, 2306976,
2395744, 2484512, 2573280, 2662048, 2750816, 2838560, 2927328, 3016096,
3104864, 3193632, 3282400, 3371168, 3459936, 3548704, 3637472, 3726240,
3815008, 3903776, 3992544, 4081312, 4170080, 4257824, 4346592, 4435360,
4524128, 4612896, 4701664, 4790432, 4879200, 4967968, 5056736, 5145504,
5234272, 5323040, 5411808, 5500576, 5589344, 5677088, 5765856, 5854624,
5943392, 6032160, 6120928, 6209696, 6298464, 6387232, 6476000, 6564768,

推荐阅读