Solaris格式化新磁盘- 天下无贼- 51CTO技术博客

# df -k 
文件系统              千字节    用了    可用 容量      挂接在
/dev/dsk/c0d0s0      7879079 3957379 3842910    51%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 1108972     960 1108012     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                     7879079 3957379 3842910    51%    /lib/libc.so.1
fd                         0       0       0     0%    /dev/fd
swap                 1108092      80 1108012     1%    /tmp
swap                 1108036      24 1108012     1%    /var/run
/dev/dsk/c0d0s7      1478063    1505 1417436     1%    /export/home

AVAILABLE DISK SELECTIONS:
       0. c0d0 <DEFAULT cyl 1302 alt 2 hd 255 sec 63>
         
       1. c2t0d0 <DEFAULT cyl 4093 alt 2 hd 128 sec 32>
         
Specify disk (enter its number): 1     #这里选择第二张盘。
selecting c2t0d0
[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> p
WARNING - This disk may be in use by an application that has
          modified the fdisk table. Ensure that this disk is
          not currently in use before proceeding to use fdisk.
format> fdisk
No fdisk table exists. The default partition for the disk is:
n
             Total disk size is 4095 cylinders
             Cylinder size is 4096 (512 byte) blocks
                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  3890    3890     95
          2                 Solaris2       3891  4053     163      4

SELECT ONE OF THE FOLLOWING:
   1. Create a partition
   2. Specify the active partition
   3. Delete a partition
   4. Change between Solaris and Solaris2 Partition IDs
   5. Exit (update disk configuration and exit)
   6. Cancel (exit without updating disk configuration)
Enter Selection: 5  

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> p
Current partition table (original):
Total disk cylinders available: 3888 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0         (0/0/0)           0
  1 unassigned    wm       0               0         (0/0/0)           0
  2     backup    wu       0 - 3887        7.59GB    (3888/0/0) 15925248
  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       0               0         (0/0/0)           0
  7 unassigned    wm       0               0         (0/0/0)           0
  8       boot    wu       0 -    0        2.00MB    (1/0/0)        4096
  9 unassigned    wm       0               0         (0/0/0)           0
partition> 0
Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0         (0/0/0)           0
Enter partition id tag[unassigned]: usr  
Enter partition permission flags[wm]:
Enter new starting cyl[1]: 3
Enter partition size[0b, 0c, 3e, 0.00mb, 0.00gb]: 3072mb
partition> p
Current partition table (unnamed):
Total disk cylinders available: 3888 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders        Size            Blocks
  0        usr    wm       3 - 1538        3.00GB    (1536/0/0)  6291456
  1 unassigned    wm       0               0         (0/0/0)           0
  2     backup    wu       0 - 3887        7.59GB    (3888/0/0) 15925248
  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       0               0         (0/0/0)           0
  7 unassigned    wm       0               0         (0/0/0)           0
  8       boot    wu       0 -    0        2.00MB    (1/0/0)        4096
  9 unassigned    wm       0               0         (0/0/0)           0
partition> 1
Part      Tag    Flag     Cylinders        Size            Blocks
  1 unassigned    wm       0               0         (0/0/0)           0
Enter partition id tag[unassigned]: usr
Enter partition permission flags[wm]:
Enter new starting cyl[1]: 1539
Enter partition size[0b, 0c, 1539e, 0.00mb, 0.00gb]: 3887e
partition> p
Current partition table (unnamed):
Total disk cylinders available: 3888 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders        Size            Blocks
  0        usr    wm       3 - 1538        3.00GB    (1536/0/0)  6291456
  1        usr    wm    1539 - 3887        4.59GB    (2349/0/0)  9621504
  2     backup    wu       0 - 3887        7.59GB    (3888/0/0) 15925248
  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       0               0         (0/0/0)           0
  7 unassigned    wm       0               0         (0/0/0)           0
  8       boot    wu       0 -    0        2.00MB    (1/0/0)        4096
  9 unassigned    wm       0               0         (0/0/0)           0




郑重声明:资讯 【Solaris格式化新磁盘- 天下无贼- 51CTO技术博客】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【在线投诉】,我们审核后将会尽快处理。
—— 相关资讯 ——