萬盛學電腦網

 萬盛學電腦網 >> Solaris介紹 >> Solaris 10 x86系統上添加新硬盤

Solaris 10 x86系統上添加新硬盤

過程: 1.       識別新增硬盤 root:/# format Searching for disks...done AVAILABLE DISK SELECTIONS:        0. c0d0 <DEFAULT cyl 1302 alt 2 hd 255 sec 63>     &n

過程:

1.       識別新增硬盤

root:/# format

Searching for disks...done

AVAILABLE DISK SELECTIONS:

       0. c0d0 <DEFAULT cyl 1302 alt 2 hd 255 sec 63>

          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0

Specify disk (enter its number): ^C

root:/# devfsadm

root:/# format

Searching for disks...done

AVAILABLE DISK SELECTIONS:

       0. c0d0 <DEFAULT cyl 1302 alt 2 hd 255 sec 63>

          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0

       1. c0d1 <DEFAULT cyl 1303 alt 2 hd 255 sec 63>

          /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0

Specify disk (enter its number): 1

注意:兩次format命令顯示內容的區別。第二次系統識別出新增硬盤c0d1。

在此次試驗中使用命令 devfsadm命令識別出新增硬盤,網絡上還有一些其他方法。

2.       格式化新增硬盤

root:/# format

Searching for disks...done

AVAILABLE DISK SELECTIONS:

       0. c0d0 <DEFAULT cyl 1302 alt 2 hd 255 sec 63>

          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0

       1. c0d1 <DEFAULT cyl 1302 alt 2 hd 255 sec 63>

          /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0

Specify disk (enter its number):  1           ß 注釋:選擇新增加的硬盤

selecting c0d1 

Controller working list found

[disk formatted, defect list found]

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

        show       - translate a disk address

        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

        volname    - set 8-character volume name

        !<cmd>     - execute <cmd>, then return

        quit

format> fdisk                                   ß 注釋:建立分區表

No fdisk table exists. The default partition for the disk is:

  a 100% "SOLARIS System" partition

Type "y" to accept the default partition,  otherwise type "n" to edit the

 partition table.

Y

format> label

Ready to label disk, continue? Y

format>  p                                      ß 注釋:p等於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

        !<cmd> - execute <cmd>, then return

        quit

partition>  print                             ß 注釋:顯示當前分區表

Current partition table (original):

Total disk cylinders available: 1302 + 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 - 1301        9.97GB    (1302/0/0) 20916630

  3 unassigned    wm       0               0   &nb

copyright © 萬盛學電腦網 all rights reserved