作業 |
説明 |
手順の説明 |
---|---|---|
1. ディスクの接続とブート |
システムディスク 新しいディスクを接続して、ローカルまたはリモートの Solaris CD からブートする | |
|
二次ディスク 新しいディスクを接続し、システムでディスクが認識されるように再構成ブートを実行する。 | |
2. スライスとディスクラベルの作成 |
まだディスクメーカーによって実行されていない場合は、ディスクスライスとディスクラベルを作成する。 | |
3. ファイルシステムの作成 |
newfs コマンドを使用してディスクスライス上に UFS ファイルシステムを作成する。ルート (/) および /usr ファイルシステムは、システムディスク上に作成しなければならない。 | |
4. ファイルシステムの復元 |
システムディスク上にルート (/) および /usr ファイルシステムを復元する。必要に応じて、二次ディスク上にファイルシステムを復元する。 | |
5. ブートブロックのインストール |
システムディスクのみ システムをブートできるように、ルート (/) ファイルシステムにブートブロックをインストールする。 |
次のガイドラインに従って fdisk パーティションを設定してください。
ディスクは最大 4 つの fdisk パーティションに分割できます。いずれか 1 つのパーティションを Solaris パーティションにしなければなりません。
Solaris パーティションをディスク上でアクティブなパーティションにしなければなりません。アクティブなパーティションとは、システム起動時にデフォルトでオペレーティングシステムがブートされるパーティションです。
Solaris の fdisk パーティションは、シリンダ境界から始めなければなりません。
最初のディスクの先頭のセクターには、ブート情報 (マスターブートレコードを含む) が書き込まれるので、最初のディスクの 1 番目の fdisk パーティションとして、Solaris の fdisk パーティションを作成する場合は、ディスクのシリンダ 0 ではなくシリンダ 1 から始めなければなりません。
Solaris の fdisk パーティションにディスク全体を使用するか、それより小さくして DOS パーティションに使用する余地を残すことができます。また、既存のパーティションに影響を与えずに、ディスク上に新しい fdisk パーティションを作成できます (それを作成する余地がある場合)。
Solaris スライスはパーティションと呼ばれることがあります。このマニュアルではスライスという用語を使用しますが、Solaris のマニュアルやプログラムによっては、スライスをパーティションと呼ぶ場合があります。混乱を避けるために、Solaris のマニュアルでは、 fdisk パーティション (Intel 版 Solaris でのみサポートされます) と、スライスやパーティションと呼ばれる Solaris の fdisk パーティションを区別するようにしています。
この手順は、システムがシャットダウンされていることを前提としています。
損傷したシステムディスクをシステムから外します。
追加しようとするディスクにシステム上の他のデバイスとは異なるターゲット番号が設定されているかどうかを確認します。
通常は、ディスクの背面にそのための小型スイッチが付いています。
交換用のディスクをシステムに正しく接続します。
インストールについての詳細は、ディスクのハードウェアインストールガイドを参照してください。また、ディスクに固有のハードウェア構成要件については、『Solaris 7 デバイスの構成 (Intel 版)』を参照してください。
ローカルまたはリモートの Solaris CD からブートする場合は、手順 a から e までを実行します。ネットワークからブートする場合は、手順 a をスキップします。
Solaris のインストール CD を CD-ROM ドライブに挿入します。
Solaris ブートフロッピーディスクを主フロッピーディスクドライブ (DOS ドライブ A) に挿入します。
Type any key to continue プロンプトが表示されたら、任意のキーを押してシステムをリブートします。また、システムがシャットダウンされている場合は、リセットボタンを押してシステムを再起動します。
数分後に Multiple Device Boot Subsystem メニューが表示されます。
Multiple Device Boot Subsystem メニューから、ブートデバイスとして CD-ROM drive または net(work) を選択します。
Secondary Boot Subsystem メニューが表示されます。
システムをシングルユーザーモードでブートします。
Select the type of installation: b -s |
数分後に root プロンプト (#) が表示されます。
システムをブートしたら、ディスク上にスライスとディスクラベルを作成できます。「x86: ディスクスライスとディスクラベルを作成する方法」を参照してください。
スーパーユーザーになります。
ディスクが Solaris ソフトウェアでサポートされない場合は、ハードウェアに添付された説明書に従って、そのディスクのデバイスドライバを追加します。
システムのブート時に読み込まれる /reconfigure ファイルを作成します。
# touch /reconfigure |
/reconfigure ファイルを作成すると、電源を入れるとき、または後からシステムをブートするときに、SunOS ソフトウェアは新しくインストールされた周辺デバイスの有無をチェックします。
システムをシャットダウンします。
# shutdown -i0 -g30 -y |
-i0 |
システムを init 状態 0 (電源切断) にする。 |
-gn |
ログインしているユーザーに、n 秒後にシステムのシャットダウンが始まることを通知する。 |
-y |
コマンドがユーザーの介入なしで実行されるように指定する。 |
Type any key to continue プロンプトが表示されます。
システムとすべての外部周辺デバイスの電源を切ります。
追加しようとするディスクにシステム上の他のデバイスとは異なるターゲット番号が設定されているかどうかを確認します。
通常は、ディスクの背面にそのための小型スイッチが付いています。
ディスクをシステムに正しく接続します。
インストールについての詳細は、ディスクのハードウェアインストールガイドを参照してください。また、ディスクに固有のハードウェア構成要件については、『Solaris 7 デバイスの構成 (Intel 版)』を参照してください。
すべての外部周辺デバイスの電源を入れます。
システムの電源を入れます。
システムがブートされ、ログインプロンプトが表示されます。
システムをブートしたら、ディスク上にスライスとディスクラベルを作成できます。「x86: ディスクスライスとディスクラベルを作成する方法」を参照してください。
「x86: fdisk パーティションの作成上のガイドライン」を必ず読んでください。
スーパーユーザーになります。
# format |
画面に表示されたリストから、Solaris fdisk パーティションを作成するディスクの番号を入力します。
Specify disk (enter its number): disk-number |
disk-number |
Solaris fdisk パーティションを作成するディスクの番号 |
fdisk メニューに移動します。
format> fdisk |
表示される fdisk メニューは、fdisk パーティションがすでにディスク上に存在しているかどうかにより異なります。次の表を使用して、次に行う手順を決定してください。
何をしたいのか |
次の手順 |
参照 |
---|---|---|
ディスク全体を占有する Solaris fdisk パーティションを作成する。 |
手順 6 | |
Solaris fdisk パーティションを作成し、既存の Solaris 以外の fdisk パーティションは変更しない。 |
手順 7 |
「x86: 例 - 既存の fdisk パーティションを変更せずに、Solaris fdisk パーティションを作成する」 |
Solaris fdisk パーティションと、Solaris 以外の fdisk パーティションを追加作成する。 |
手順 7 |
ディスク全体にまたがる Solaris fdisk パーティションを作成してそれをアクティブにするには、プロンプトで y を入力します。次に、手順 14 に進みます。
The recommended default partitioning for your disk is: a 100% "SOLARIS System" partition. To select this, please type "y". To partition your disk differently, type "n" and the "fdisk" program will let you select other partitions. y |
ディスク全体にまたがる Solaris fdisk パーティションを作成しない場合は、プロンプトで n を入力します。
To select this, please type "y". To partition your disk differently, type "n" and the "fdisk" program will let you select other partitions. n Total disk size is 2694 cylinders Cylinder size is 765 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ======== ===== === ====== === THERE ARE NO PARTITIONS CURRENTLY DEFINED SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Change Active (Boot from) partition 3. Delete a partition 4. Exit (Update disk configuration and exit) 5. Cancel (Exit without updating disk configuration) Enter Selection: |
「1、Create a partition 」を選択し、fdisk パーティションを作成します。
Total disk size is 2694 cylinders Cylinder size is 765 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ======== ===== === ====== === THERE ARE NO PARTITIONS CURRENTLY DEFINED SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Change Active (Boot from) partition 3. Delete a partition 4. Exit (Update disk configuration and exit) 5. Cancel (Exit without updating disk configuration) Enter Selection: 1 |
「1(=Solaris)」を選択して、Solaris fdisk パーティションを作成します。
Indicate the type of partition you want to create (1=SOLARIS, 2=UNIX, 3=PCIXOS, 4=Other, 8=DOSBIG) (5=DOS12, 6=DOS16, 7=DOSEXT, 0=Exit) ? 1 |
Solaris fdisk パーティション用に割り当てるディスクのパーセントを指定します。このパーセントを計算するときには、既存の fdisk パーティションのサイズを考慮してください。
Indicate the percentage of the disk you want this partition to use (or enter "c" to specify in cylinders). nn |
プロンプトで y を入力して、Solaris fdisk パーティションをアクティブにします。
Do you want this to become the Active partition? If so, it will be activated each time you reset your computer or when you turn it on again. Please type "y" or "n". y |
fdisk パーティションがアクティブになった後、Enter Selection: プロンプトが表示されます。
別の fdisk パーティションを作成する場合は、「1.Create a partition」を選択します。
ディスク構成を更新し、Selection メニューから fdisk メニューに戻ります。
Selection: 4 |
label コマンドを使用して、ディスクに新しいラベルを付けます。
WARNING: Solaris fdisk partition changed - Please relabel the disk format> label Ready to label disk, continue? yes format> |
format> quit |
ディスク上に Solaris fdisk パーティションを作成し終わったら、ディスク上にスライスを作成できます。「x86: ディスクスライスとディスクラベルを作成する方法」を参照してください。
次の例は、format の fdisk オプションを使用して、ディスク全体にまたがる Solaris fdisk パーティションを作成する方法を説明しています。
# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t0d0 <DEFAULT cyl 1479 alt 2 hd 7 sec 79> /eisa/eha@1000,0/cmdk@0,0 1. c0t2d0 <SUN1.05 cyl 2692 alt 2 hd 9 sec 85> /eisa/eha@1000,0/cmdk@2,0 Specify disk (enter its number): 1 selecting c0t2d0 [disk formatted] format> fdisk The recommended default partitioning for your disk is: a 100% "SOLARIS System" partition. To select this, please type "y". To partition your disk differently, type "n" and the "fdisk" program will let you select other partitions. y WARNING: Solaris fdisk partition changed - Please relabel the disk format> label Ready to label disk, continue? yes format> quit |
次の例は、DOS-BIG fdisk パーティションがすでに存在しているディスクに、Solaris fdisk パーティションを作成する方法を説明しています。
format> fdisk Total disk size is 2694 cylinders Cylinder size is 765 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ======== ===== === ====== === 1 DOS-BIG 1 538 538 20 SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Change Active (Boot from) partition 3. Delete a partition 4. Exit (Update disk configuration and exit) 5. Cancel (Exit without updating disk configuration) Enter Selection: 1 Indicate the type of partition you want to create (1=SOLARIS, 2=UNIX, 3=PCIXOS, 4=Other, 8=DOSBIG) (5=DOS12, 6=DOS16, 7=DOSEXT, 0=Exit) ?1 Indicate the percentage of the disk you want this partition to use (or enter "c" to specify in cylinders). 80 Do you want this to become the Active partition? If so, it will be activated each time you reset your computer or when you turn it on again. Please type "y" or "n". y Partition 2 is now the Active partition Total disk size is 2694 cylinders Cylinder size is 765 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ======== ===== === ====== === 1 DOS-BIG 1 538 538 20 2 Active SOLARIS 539 2693 2155 80 SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Change Active (Boot from) partition 3. Delete a partition 4. Exit (Update disk configuration and exit) 5. Cancel (Exit without updating disk configuration) Enter Selection: Selection: 4 WARNING: Solaris fdisk partition changed - Please relabel the disk format> label Ready to label disk, continue? yes format> q |
次の例は、Solaris fdisk パーティションと DOSBIG fdisk パーティションを作成する方法を説明しています。
format> fdisk The recommended default partitioning for your disk is: a 100% "SOLARIS System" partition. To select this, please type "y". To partition your disk differently, type "n" and the "fdisk" program will let you select other partitions. n Total disk size is 2694 cylinders Cylinder size is 765 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ======== ===== === ====== === THERE ARE NO PARTITIONS CURRENTLY DEFINED SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Change Active (Boot from) partition 3. Delete a partition 4. Exit (Update disk configuration and exit) 5. Cancel (Exit without updating disk configuration) Enter Selection: 1 Indicate the type of partition you want to create (1=SOLARIS, 2=UNIX, 3=PCIXOS, 4=Other, 8=DOSBIG) (5=DOS12, 6=DOS16, 7=DOSEXT, 0=Exit) ?8 Indicate the percentage of the disk you want this partition to use (or enter "c" to specify in cylinders). 20 Do you want this to become the Active partition? If so, it will be activated each time you reset your computer or when you turn it on again. Please type "y" or "n". n Total disk size is 2694 cylinders Cylinder size is 765 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ======== ===== === ====== === 1 DOS-BIG 1 538 538 20 SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Change Active (Boot from) partition 3. Delete a partition 4. Exit (Update disk configuration and exit) 5. Cancel (Exit without updating disk configuration)Enter Selection: 1 Indicate the type of partition you want to create (1=SOLARIS, 2=UNIX, 3=PCIXOS, 4=Other, 8=DOSBIG) (5=DOS12, 6=DOS16, 7=DOSEXT, 0=Exit) ?1 Indicate the percentage of the disk you want this partition to use (or enter "c" to specify in cylinders). 80 Do you want this to become the Active partition? If so, it will be activated each time you reset your computer or when you turn it on again. Please type "y" or "n". y Partition 2 is now the Active partition Total disk size is 2694 cylinders Cylinder size is 765 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ======== ===== === ====== === 1 DOS-BIG 1 538 538 20 2 Active SOLARIS 539 2693 2155 80 SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Change Active (Boot from) partition 3. Delete a partition 4. Exit (Update disk configuration and exit) 5. Cancel (Exit without updating disk configuration) Enter Selection: 4 format> q |
スーパーユーザーになります。
# format |
画面に表示されるリストから、パーティションを変更したいディスクの番号を入力します。
Specify disk (enter its number): disk-number |
disk-number |
パーティションを変更したいディスクの番号 |
partition メニューに移動します (スライスを設定できます)。
format> partition |
現在のパーティション (スライス) テーブルを表示します。
partition> print |
変更作業を開始します。
partition> modify |
ディスクをすべて free hog に設定します。
Choose base (enter number) [0]? 1 |
free hog スライスについての詳細は、「free hog スライスの使用方法」を参照してください。
続行するかどうかを尋ねるプロンプトが表示されたら、yes と応答して新しいパーティションテーブルを作成します。
Do you wish to continue creating a new partition table based on above table[yes]? yes |
プロンプトが表示されたら、free hog パーティション (スライス) と各スライスのサイズを指定します。
システムディスクを追加するときは、次のスライスを設定しなければなりません。
ルート (スライス 0)、スワップ (スライス 1) (必須)
および
/usr (スライス 6) (省略可能)
スライスの情報を設定すると、新しいパーティションテーブルが表示されます。
プロンプトが表示されたら yes と応答して、表示されたパーティションテーブルを現在のパーティションテーブルにします。
Okay to make this the current partition table[yes]? yes |
表示されたパーティションテーブルが希望どおりでないために変更したい場合は、no と応答して 手順 6 に戻ります。
パーティションテーブルに名前を付けます。
Enter table name (remember quotes): "partition-name" |
partition-name |
新しいパーティションテーブルの名前 |
新しいディスク上でスライスを割り当て終ったら、新しいパーティションテーブルを使用してディスクにラベルを付けます。
Ready to label disk, continue? yes |
partition メニューを終了します。
partition> quit |
verify コマンドで、新しいディスクラベルを確認します。
format> verify |
format> quit |
ディスクスライスとディスクラベルを作成し終ったら、ディスク上にファイルシステムを作成できます。「x86: ファイルシステムを作成する方法」を参照してください。
スーパーユーザーになります。
newfs コマンドを使用して、スライスごとにファイルシステムを作成します。
# newfs /dev/rdsk/cwtxdysz |
/dev/rdsk/cwtxdysZ |
作成するファイルシステムの raw デバイス |
newfs コマンドについての詳細は、第 27 章「ファイルシステムの作成手順」を参照してください。
未使用のマウントポイントにマウントすることによって、新しいファイルシステムを確認します。
# mount /dev/dsk/cwtxdysz /mnt # ls /mnt lost+found |
追加するディスク |
参照先 |
---|---|
システムディスク |
ディスク上にルート (/) と /usr のファイルシステムを復元する必要がある。第 35 章「ファイルとファイルシステムの復元の手順」を参照。 ルート (/) と /usr ファイルシステムの復元後、ブートブロックをインストールする。「x86: システムディスクにブートブロックをインストールする方法」を参照。 |
二次ディスク |
新しいディスク上にファイルシステムを復元しなければならないことがある。第 35 章「ファイルとファイルシステムの復元の手順」を参照。
新しいディスク上にファイルシステムを復元しない場合は、二次ディスクを追加する作業が終ったことになる。ファイルシステムをユーザーが利用できるようにする方法については、第 28 章「ファイルシステムのマウントとマウント解除の手順」を参照。 |
スーパーユーザーになります。
# /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/pboot /usr/platform/`uname -i` /lib/fs/ufs/bootblk /dev/rdsk/cwtxdys2 |
/usr/platform/`uname -i`/lib/fs/ufs/pboot |
パーティションのブートファイル |
/usr/platform/`uname -i`/lib/fs/ufs/bootblk |
ブートブロックコード |
/dev/rdsk/cwtxdys2 |
ディスク全体を表す raw デバイス名 |
システムをリブートし、レベル 3 で実行することによって、ブートブロックがインストールされていることを確認します。
# init 6 |
# /usr/sbin/installboot /usr/platform/i86pc/lib/fs/ufs/pboot /usr/platform/i86pc/lib/fs/ufs/bootblk /dev/rdsk/c0t6d0s2 |