Solaris 9 安裝指南

磁碟配置檔案範例

下例顯示在有 104 Mb 磁碟的 系統上建立單一磁碟配置檔案 104_test 的方法。


範例 24-6 建立磁碟配置檔案

您將 prtvtoc 指令的輸出結果重新導向名為 104_test 的單一磁碟配置檔案。


# prtvtoc /dev/rdsk/c0t3d0s2>104_test

104_test 檔案的內容就像下面這樣:

* /dev/rdsk/c0t3d0s2 partition map

*

* Dimensions:

*     512 bytes/sector

*      72 sectors/track

*      14 tracks/cylinder

*    1008 sectors/cylinder

*    2038 cylinders*    2036 accessible cylinders

* Flags:

*   1: unmountable

*  10: read-only

*

*                          First     Sector    Last

* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory

       1      2    00          0     164304   164303   /

       2      5    00          0    2052288  2052287  

       3      0    00     164304     823536   987839   /disk2/b298

       5      0    00     987840     614880  1602719   /install/298/sparc/work

       7      0    00    1602720     449568  2052287   /space

您已經建立了磁碟配置檔案。 "測試設定檔" 包含關於使用磁碟配置檔案來測試設定檔的資訊。