主要看2条红线之间的部分。
Last login: Fri Sep 2 23:36:26 2011 from 10.127.245.79
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
Sourcing //.profile-EIS.....
root@suzsysadmin #
root@suzsysadmin # format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0
/pci@1c,600000/scsi@2/sd@1,0
2. c1t2d0
/pci@1c,600000/scsi@2/sd@2,0
3. c1t3d0
/pci@1c,600000/scsi@2/sd@3,0
4. c3t8d0
/pci@1c,600000/scsi@2,1/sd@8,0
5. c3t9d0
/pci@1c,600000/scsi@2,1/sd@9,0
6. c3t10d0
/pci@1c,600000/scsi@2,1/sd@a,0
7. c3t11d0
/pci@1c,600000/scsi@2,1/sd@b,0
Specify disk (enter its number): 3
selecting c1t3d0
[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
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
! - execute , then return
quit
format> verify
Primary label contents:
Volume name = < >
ascii name =
pcyl = 14089
ncyl = 14087
acyl = 2
nhead = 24
nsect = 424
Part Tag Flag Cylinders Size Blocks
0 root wm 413 - 1443 5.00GB (1031/0/0) 10491456
1 swap wu 0 - 412 2.00GB (413/0/0) 4202688
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 var wm 1444 - 1856 2.00GB (413/0/0) 4202688
4 usr wm 1857 - 3095 6.01GB (1239/0/0) 12608064
5 unassigned wm 3096 - 6191 15.02GB (3096/0/0) 31504896
6 unassigned wm 6192 - 10313 20.00GB (4122/0/0) 41945472
7 home wm 10314 - 11931 7.85GB (1618/0/0) 16464768
format>
format> help
Expecting one of the following: (abbreviations ok):
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 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
! - execute , then return
quit
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> modify
Select partitioning base:
0. Current partition table (original)
1. All Free Hog
Choose base (enter number) [0]? 0
Warning: Non-contiguous partition (0) in table.
Warning: Overlapping partition (1) in table.
Warning: Fix, or select a different partition table.
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
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 - 14086 68.35GB (14087/0/0) 143349312
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
Do you wish to continue creating a new partition
table based on above table[yes]? yes
Free Hog partition[6]? 0
Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]: 68.35
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]: 0
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 0
Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]: 0
Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]: 0
Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]: 0
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 14072 68.29GB (14073/0/0) 143206848
1 swap wu 14073 - 14086 69.56MB (14/0/0) 142464
2 backup wu 0 - 14086 68.35GB (14087/0/0) 143349312
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
Okay to make this the current partition table[yes]? yes
Enter table name (remember quotes): data
Ready to label disk, continue? yes
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
partition> print
Current partition table (data):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 14072 68.29GB (14073/0/0) 143206848
1 swap wu 14073 - 14086 69.56MB (14/0/0) 142464
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 var wm 0 0 (0/0/0) 0
4 usr wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 home wm 0 0 (0/0/0) 0
partition> help
Expecting one of the following: (abbreviations ok):
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> label
Ready to label disk, continue? yes
partition> print
Current partition table (data):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 14072 68.29GB (14073/0/0) 143206848
1 swap wu 14073 - 14086 69.56MB (14/0/0) 142464
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 var wm 0 0 (0/0/0) 0
4 usr wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 home wm 0 0 (0/0/0) 0
partition> quit
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 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
! - execute , then return
quit
format> quit
root@suzsysadmin # format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0
/pci@1c,600000/scsi@2/sd@1,0
2. c1t2d0
/pci@1c,600000/scsi@2/sd@2,0
3. c1t3d0
/pci@1c,600000/scsi@2/sd@3,0
4. c3t8d0
/pci@1c,600000/scsi@2,1/sd@8,0
5. c3t9d0
/pci@1c,600000/scsi@2,1/sd@9,0
6. c3t10d0
/pci@1c,600000/scsi@2,1/sd@a,0
7. c3t11d0
/pci@1c,600000/scsi@2,1/sd@b,0
Specify disk (enter its number): 3
selecting c1t3d0
[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
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
! - execute , then return
quit
format> verify
Primary label contents:
Volume name = < >
ascii name =
pcyl = 14089
ncyl = 14087
acyl = 2
nhead = 24
nsect = 424
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 14072 68.29GB (14073/0/0) 143206848
1 swap wu 14073 - 14086 69.56MB (14/0/0) 142464
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 var wm 0 0 (0/0/0) 0
4 usr wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 home wm 0 0 (0/0/0) 0
format> quit
root@suzsysadmin # cd /dev/dsk/
root@suzsysadmin # ls
c0t0d0s0 c0t0d0s6 c1t0d0s4 c1t1d0s2 c1t2d0s0 c1t2d0s6 c1t3d0s4 c3t10d0s2 c3t11d0s0 c3t11d0s6 c3t8d0s4 c3t9
c0t0d0s1 c0t0d0s7 c1t0d0s5 c1t1d0s3 c1t2d0s1 c1t2d0s7 c1t3d0s5 c3t10d0s3 c3t11d0s1 c3t11d0s7 c3t8d0s5 c3t9
c0t0d0s2 c1t0d0s0 c1t0d0s6 c1t1d0s4 c1t2d0s2 c1t3d0s0 c1t3d0s6 c3t10d0s4 c3t11d0s2 c3t8d0s0 c3t8d0s6 c3t9
c0t0d0s3 c1t0d0s1 c1t0d0s7 c1t1d0s5 c1t2d0s3 c1t3d0s1 c1t3d0s7 c3t10d0s5 c3t11d0s3 c3t8d0s1 c3t8d0s7 c3t9
c0t0d0s4 c1t0d0s2 c1t1d0s0 c1t1d0s6 c1t2d0s4 c1t3d0s2 c3t10d0s0 c3t10d0s6 c3t11d0s4 c3t8d0s2 c3t9d0s0 c3t9
c0t0d0s5 c1t0d0s3 c1t1d0s1 c1t1d0s7 c1t2d0s5 c1t3d0s3 c3t10d0s1 c3t10d0s7 c3t11d0s5 c3t8d0s3 c3t9d0s1 c3t9
root@suzsysadmin # mount /dev/dsk/c1t3d0s0 /mnt/c1t3d0s0
mount: /dev/dsk/c1t3d0s0 is not this fstype
root@suzsysadmin # newfs ufs /dev/dsk/c1t3d0s0
usage: newfs [ -v ] [ mkfs-options ] raw-special-device
where mkfs-options are:
-N do not create file system, just print out parameters
-T configure file system for eventual growth to over a terabyte
-s file system size (sectors)
-b block size
-f frag size
-t tracks/cylinder
-c cylinders/group
-m minimum free space %
-o optimization preference (`space' or `time')
-r revolutions/minute
-i number of bytes per inode
-a number of alternates per cylinder
-C maxcontig
-d rotational delay
-n number of rotational positions
-S print a textual version of the calculated superblock to stdout
-B dump a binary version of the calculated superblock to stdout
root@suzsysadmin # newfs /dev/dsk/c1t3d0s0
newfs: construct a new file system /dev/rdsk/c1t3d0s0: (y/n)? y
Warning: 3648 sector(s) in last cylinder unallocated
/dev/rdsk/c1t3d0s0: 143206848 sectors in 23309 cylinders of 48 tracks, 128 sectors
69925.2MB in 1457 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
............................
super-block backups for last 10 cylinder groups at:
142250912, 142349344, 142447776, 142546208, 142644640, 142743072, 142841504,
142939936, 143038368, 143136800
root@suzsysadmin #
root@suzsysadmin # mount /dev/dsk/c1t3d0s0 /mnt/c1t3d0s0
root@suzsysadmin # df -hk /mnt/c1t3d0s0
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t3d0s0 67G 64M 67G 1% /mnt/c1t3d0s0
root@suzsysadmin # df -hk /dev/dsk/c1t3d0s2
df: -h option incompatible with unmounted special device (/dev/dsk/c1t3d0s2)
root@suzsysadmin # cd /mnt/c1t3d0s0
root@suzsysadmin # ls
lost+found
root@suzsysadmin #
root@suzsysadmin # cd /mnt
root@suzsysadmin # ls
c1t3d0s0 c1t3d0s1 c1t3d0s2 c1t3d0s3 c1t3d0s4 c1t3d0s5 c1t3d0s6 c1t3d0s7 c3t10d0s0 c3t10d0s2
root@suzsysadmin # df -hk
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d10 65G 47G 17G 74% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 4.7G 1.6M 4.7G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
65G 47G 17G 74% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
65G 47G 17G 74% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
swap 4.7G 72K 4.7G 1% /tmp
swap 4.7G 64K 4.7G 1% /var/run
/dev/dsk/c1t2d0s0 134G 37G 95G 29% /export/root/mnt/disk2
/dev/dsk/c1t3d0s0 67G 64M 67G 1% /mnt/c1t3d0s0
root@suzsysadmin #
阅读(686) | 评论(0) | 转发(0) |