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 4.9G 983M 3.9G 20% /mnt/c1t3d0s0
root@suzsysadmin # ls
Desktop bin devices jumpstart mbox platform tftpboot var
Documents boot etc kernel mnt proc tmp vfstab
InstallShield core export lib net sbin u01 vol
SWAP dev home lost+found opt system usr
root@suzsysadmin # mount /dev/dsk/c1t3d0s3 /mnt/c1t3d0s3
mount: The state of /dev/dsk/c1t3d0s3 is not okay
and it was attempted to be mounted read/write
mount: Please run fsck and try again
root@suzsysadmin # fsck /dev/dsk/c1t3d0s3
** /dev/rdsk/c1t3d0s3
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups
FILE SYSTEM STATE IN SUPERBLOCK IS WRONG; FIX? yes
7085 files, 74448 used, 1983871 free (183 frags, 247961 blocks, 0.0% fragmentation)
root@suzsysadmin #
root@suzsysadmin # mount /dev/dsk/c1t3d0s3 /mnt/c1t3d0s3
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 4.9G 983M 3.9G 20% /mnt/c1t3d0s0
/dev/dsk/c1t3d0s3 2.0G 75M 1.8G 4% /mnt/c1t3d0s3
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):
root@suzsysadmin #
root@suzsysadmin #
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 4.9G 983M 3.9G 20% /mnt/c1t3d0s0
root@suzsysadmin # ls
Desktop bin devices jumpstart mbox platform tftpboot
Documents boot etc kernel mnt proc tmp
InstallShield core export lib net sbin u01
SWAP dev home lost+found opt system usr
root@suzsysadmin # mount /dev/dsk/c1t3d0s3 /mnt/c1t3d0s3
mount: The state of /dev/dsk/c1t3d0s3 is not okay
and it was attempted to be mounted read/write
mount: Please run fsck and try again
root@suzsysadmin # fsck /dev/dsk/c1t3d0s3
** /dev/rdsk/c1t3d0s3
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups
FILE SYSTEM STATE IN SUPERBLOCK IS WRONG; FIX? yes
7085 files, 74448 used, 1983871 free (183 frags, 247961 blocks, 0.0% fragmentation)
root@suzsysadmin #
root@suzsysadmin # mount /dev/dsk/c1t3d0s3 /mnt/c1t3d0s3
root@suzsysadmin # df -hk'
root@suzsysadmin >
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 4.9G 983M 3.9G 20% /mnt/c1t3d0s0
/dev/dsk/c1t3d0s3 2.0G 75M 1.8G 4% /mnt/c1t3d0s3
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]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1t3d0s0 is currently mounted on /mnt/c1t3d0s0. Please see umount(1M).
/dev/dsk/c1t3d0s3 is currently mounted on /mnt/c1t3d0s3. Please see umount(1M).
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> 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 (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
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
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> format
Cannot format disk while it has mounted partitions.
format> quit
root@suzsysadmin # umount /mnt/c1t3d0s
c1t3d0s0/ c1t3d0s1/ c1t3d0s2/ c1t3d0s3/ c1t3d0s4/ c1t3d0s5/ c1t3d0s6/ c1t3d0s7/
root@suzsysadmin # umount /mnt/c1t3d0s0
root@suzsysadmin # umount /mnt/c1t3d0s3
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> format
Ready to format. Formatting cannot be interrupted
and takes 169 minutes (estimated). Continue? yes
Beginning format. The current time is Fri Sep 2 23:00:29 2011
Formatting...
99% complete (00:00:33 remaining) done
Verifying media...
pass 0 - pattern = 0xc6dec6de
1003/23/52
1015/23/286
1054/17/94
^C 1057/16/356
Total of 0 defective blocks repaired.
format>
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> print
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
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
partition> label
Ready to label disk, continue? yes
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? y
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> 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> 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> 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> 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> 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> label
Ready to label disk, continue? yes
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 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来看,c1t3d0的格式是unknow,格式化好了,就可以了。但是格式化,没有改变什么。
本来以为想通过格式化,来把新加的这块硬盘给他重新分区的。
阅读(1403) | 评论(0) | 转发(0) |