蓝红石

生活与工作点滴

   :: 首页  ::  :: 联系 :: 订阅 订阅  :: 管理

有一个20G的硬盘需要挂载

  1 bash-3.00# format
  2 Searching for disks...done
  3 
  4 
  5 AVAILABLE DISK SELECTIONS:
  6        0. c0d0 <DEFAULT cyl 2085 alt 2 hd 255 sec 63>
  7           /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
  8        1. c2t0d0 <DEFAULT cyl 2607 alt 2 hd 255 sec 63>
  9           /pci@0,0/pci15ad,1976@10/sd@0,0
 10 Specify disk (enter its number): 1
 11 selecting c2t0d0
 12 [disk formatted]
 13 
 14 
 15 FORMAT MENU:
 16         disk       - select a disk
 17         type       - select (define) a disk type
 18         partition  - select (define) a partition table
 19         current    - describe the current disk
 20         format     - format and analyze the disk
 21         fdisk      - run the fdisk program
 22         repair     - repair a defective sector
 23         label      - write label to the disk
 24         analyze    - surface analysis
 25         defect     - defect list management
 26         backup     - search for backup labels
 27         verify     - read and display labels
 28         save       - save new disk/partition definitions
 29         inquiry    - show vendor, product and revision
 30         volname    - set 8-character volume name
 31         !<cmd>     - execute <cmd>, then return
 32         quit
 33 format> p
 34 
 35 
 36 PARTITION MENU:
 37         0      - change `0' partition
 38         1      - change `1' partition
 39         2      - change `2' partition
 40         3      - change `3' partition
 41         4      - change `4' partition
 42         5      - change `5' partition
 43         6      - change `6' partition
 44         7      - change `7' partition
 45         select - select a predefined table
 46         modify - modify a predefined partition table
 47         name   - name the current table
 48         print  - display the current table
 49         label  - write partition map and label to the disk
 50         !<cmd> - execute <cmd>, then return
 51         quit
 52 partition> p
 53 Current partition table (original):
 54 Total disk cylinders available: 2607 + 2 (reserved cylinders)
 55 
 56 Part      Tag    Flag     Cylinders        Size            Blocks
 57   0 unassigned    wm       0               0         (0/0/0)           0
 58   1 unassigned    wm       0               0         (0/0/0)           0
 59   2     backup    wu       0 - 2606       19.97GB    (2607/0/0) 41881455
 60   3 unassigned    wm       0               0         (0/0/0)           0
 61   4 unassigned    wm       0               0         (0/0/0)           0
 62   5 unassigned    wm       0               0         (0/0/0)           0
 63   6 unassigned    wm       0               0         (0/0/0)           0
 64   7 unassigned    wm       0               0         (0/0/0)           0
 65   8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
 66   9 unassigned    wm       0               0         (0/0/0)           0
 67 
 68 partition> m
 69 Select partitioning base:
 70         0. Current partition table (original)
 71         1. All Free Hog
 72 Choose base (enter number) [0]? 1
 73 
 74 Part      Tag    Flag     Cylinders        Size            Blocks
 75   0       root    wm       0               0         (0/0/0)           0
 76   1       swap    wu       0               0         (0/0/0)           0
 77   2     backup    wu       0 - 2606       19.97GB    (2607/0/0) 41881455
 78   3 unassigned    wm       0               0         (0/0/0)           0
 79   4 unassigned    wm       0               0         (0/0/0)           0
 80   5 unassigned    wm       0               0         (0/0/0)           0
 81   6        usr    wm       0               0         (0/0/0)           0
 82   7 unassigned    wm       0               0         (0/0/0)           0
 83   8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
 84   9 alternates    wm       0               0         (0/0/0)           0
 85 
 86 Do you wish to continue creating a new partition
 87 table based on above table[yes]? yes
 88 Free Hog partition[6]? 1
 89 Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 20GB
 90 Please specify units in either b(blocks), c(cylinders), m(megabytes) or g(gigabytes)
 91 Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 20g
 92 `20.00gb' is out of range
 93 Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 19g
 94 Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]:
 95 Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]:
 96 Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]:
 97 Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]:
 98 Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]:
 99 
100 Part      Tag    Flag     Cylinders        Size            Blocks
101   0       root    wm       1 - 2481       19.01GB    (2481/0/0) 39857265
102   1       swap    wu    2482 - 2606      980.53MB    (125/0/0)   2008125
103   2     backup    wu       0 - 2606       19.97GB    (2607/0/0) 41881455
104   3 unassigned    wm       0               0         (0/0/0)           0
105   4 unassigned    wm       0               0         (0/0/0)           0
106   5 unassigned    wm       0               0         (0/0/0)           0
107   6        usr    wm       0               0         (0/0/0)           0
108   7 unassigned    wm       0               0         (0/0/0)           0
109   8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
110   9 alternates    wm       0               0         (0/0/0)           0
111 
112 Okay to make this the current partition table[yes]? yes
113 Enter table name (remember quotes): datatab
114 Ready to label disk, continue? ^C
115 partition> quit
116 
117 
118 FORMAT MENU:
119         disk       - select a disk
120         type       - select (define) a disk type
121         partition  - select (define) a partition table
122         current    - describe the current disk
123         format     - format and analyze the disk
124         fdisk      - run the fdisk program
125         repair     - repair a defective sector
126         label      - write label to the disk
127         analyze    - surface analysis
128         defect     - defect list management
129         backup     - search for backup labels
130         verify     - read and display labels
131         save       - save new disk/partition definitions
132         inquiry    - show vendor, product and revision
133         volname    - set 8-character volume name
134         !<cmd>     - execute <cmd>, then return
135         quit
136 format> save
137 Saving new disk and partition definitions
138 Enter file name["./format.dat"]: /etc/format.dat
139 format> quit
140 bash-3.00# newfs /dev/dsk/c2t0d0s1
141 /dev/rdsk/c2t0d0s1: I/O error
142 bash-3.00# newfs /dev/dsk/c2t0d0
143 newfs: /dev/dsk/c2t0d0: No such file or directory
144 bash-3.00# newfs /dev/dsk/c2t0d0s2
145 newfs: construct a new file system /dev/rdsk/c2t0d0s2: (y/n)? y
146 Warning: inode blocks/cyl group (431) >= data blocks (246) in last
147     cylinder group. This implies 3950 sector(s) cannot be allocated.
148 /dev/rdsk/c2t0d0s2:     41877504 sectors in 6816 cylinders of 48 tracks, 128 sectors
149         20448.0MB in 426 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
150 super-block backups (for fsck -F ufs -o b=#) at:
151  32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
152 Initializing cylinder groups:
153 ........
154 super-block backups for last 10 cylinder groups at:
155  40898592, 40997024, 41095456, 41193888, 41292320, 41390752, 41489184,
156  41587616, 41686048, 41784480
157 bash-3.00# mkdir /oracle
158 bash-3.00# mount /dev/dsk/c2t0d0s2 /oracle
159 bash-3.00# /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2 /oracle ufs 2 yes -

 

posted on 2012-06-08 18:13  蓝红石  阅读(3482)  评论(0编辑  收藏  举报