<!doctype linuxdoctr system>
<article>

<title> Managing Multiple Operating Systems HOWTO</title>
<author> Robert W. Schultz</author>
<date> v0.4, 17 Feb 2000</date>
<trans>日本語訳 千旦裕司
<tdate> v0.4j, 1 Dec 2000

<!--This HOWTO covers the procedures for using  removable hard 
disks to install and manage multiple alternative operating systems while 
leaving a single fixed disk to permanently house and protect the primary 
operating system. It is very scalable and offers a good degree of protection 
to and a stable disk environment for the primary operating system.
-->
<abstract>
この文書では、一台の内蔵ディスクに基本となるオペレーティングシステム
を収納し確実に保護した上で、複数のリムーバブルディスクを使用して他の
いろいろなオペレーティングシステムを導入・運用していくための手順を解
説します。この方法はとても拡張性に富み、それによってもとのオペ
レーティングシステムの充分な保護とディスク周りの安定化が図れます。
</abstract>

<toc>
<!--<sect>Introduction-->
<sect> はじめに

<sect1> Copyright
<p>Copyright (c) 2000 by Robert W. Schultz.
<!-- license.H begin -->

<!--Please freely copy and distribute (sell or give away) this document in
any format. It's requested that corrections and/or comments be forwarded to
the document maintainer. You may create a derivative work and distribute
it provided that you:-->
<p>
この文書の複製もしくは (販売・譲渡による) 配布は、あらゆるフォーマットで
自由に行っていただいて結構です。訂正ならびにコメントについては、文書管理者
までご連絡ください。二次的著作物の作成と配布については、以下の条件を満たす限
り許可します。

<!--1.Send your derivative work (in the most suitable format such as sgml)
to the LDP (Linux Documentation Project) or the like for posting on the
Internet. If not the LDP, then let the LDP know where it is available.-->

<enum>
<item>
作成した二次的著作物は、( sgmlなどの最適な形式で) インターネット上の
 LDP (Linux Documentation Project) かそれに類する団体まで送付
すること。LDP 以外に送付するときは、どこで入手可能かを LDP に知らせること。

<!--2.License the derivative work with this same license or use GPL. Include
a copyright notice and at least a pointer to the license used.-->
<item>
二次的著作物にはこの文書と同一のライセンスか GPL を付与すること。
著作権表示があること、ならびにライセンスに関しては少くともそれを参照
できる場所を明記すること。

<!--3.Give due credit to previous authors and major contributors.-->
<item>
原著作物の著者及びその主要な貢献者の氏名を明示すること。
</enum>

<!--If you're considering making a derived work other than a translation,
it's requested that you discuss your plans with the current maintainer.-->
<!--翻訳ではなく二次文書をつくろうとしているときは、そのプランについて著者と
相談してください。-->

<!-- copyright.H end -->

<!--<sect1> New Versions of this HOWTO-->
<sect1>新しいバージョンについて

<!--<p> New versions of the Managing Multiple Operating Systems HOWTO will
be available to browse and/or download at LDP mirror sites.  For a list
of mirror sites see:-->
<p>
この文書の新しいバージョンは、LDP のミラーサイトで閲覧および
ダウンロードが可能です。ミラーサイトの一覧は以下にあります。

<url url="http://metalab.unc.edu/LDP/mirrors.html">.

<!--Various formats are available.  If you only want to quickly check the
date of the latest version look at-->
<p>
多種のフォーマットで入手が可能ですが、最新版の日付だけが知りたいの
であれば以下のサイトを見てこの文書のバージョンと比べてください :
 v0.4, 17 February 2000

<url url="http://www.linuxdoc.org/HOWTO/MultiOS-HOWTO.html">

<!--and compare it to this version: v0.4, 17 February 2000-->



<!--<sect1>Feedback-->
<sect1> フィードバック

<!--<p> Please send any questions, comments, or suggestions to  <tt><htmlurl
url="mailto:rwschul@smart.net"> (Robert W. Schultz)</tt>.  I am very
willing to help others with problems directly relating to this HOWTO
and will entertain any suggestions for changes/modifications and/or
improvements.  However, having set up my system to my satisfaction,
this HOWTO won't be significantly improved without reader input.-->
<p>
質問・コメント・提案は、こちらに願います。 <tt>&lt;
rwschul@smart.net&gt; (Robert W.Schultz)</tt>
わたしは、この文書に直接関わるような問題で困っている人を手助けした
いと思っており、訂正・修正・改善などの提案は歓迎いたします。しかし
ながら、自分のシステムが充分満足のいくものに仕上がってしまったので、
読者からの情報提供がない限りこの文書に意味のある改善が加えられるこ
とはないでしょう。

<!--<sect> Purpose and goals:-->
<sect> 目的とゴール

<!--<p>The purpose of this HOWTO is to describe a methodology for managing
multiple operating systems on a single computer system.  It is intended
for Linux users who have a basic familiarity with both Linux and LILO
installations.  Nothing here is terribly complex however, considering
the amount of time it takes to install some operating systems it can be
relatively time consuming.-->
<p>
この文書は、一台のコンピュータ上で複数のオペレーティングシステムを
扱うためのひとつの方法論の解説を目的にしています。そして、Linux と LILO 
のインストールにある程度慣れている Linux ユーザを対象にしています。と
はいえ、ひどく複雑なものは何もありません。ただ、オペレーティングシス
テムをいくつかインストールするわけですから、それには比較的時間がかか
るかもしれません。

<!--<p>It is different from other methods in that it doesn't require multiple
operating systems on the boot disk.  Instead it uses a fixed internal disk
containing a single primary operating system and a selection of removable
disks with one or more operating systems installed on each of them.
If you absolutely have to have two, three, or four different operating
systems on a single disk and are trying to get them to behave with each
other, this HOWTO is not for you.-->
<p>
他の方法論と違う点は、複数のオペレーティングシステムをひとつのブー
トディスク上に収める必要がないということです。そのかわり、ひとつの基本
となるオペレーティングシステムが入った内蔵の固定ハードディスクと、各
々がひとつ以上のオペレーティングシステムを含んだ複数のリムーバルディス
クとを使用します。もしあなたがどうしてもたったひとつのディスク上にふたつ、
3 つ、あるいは 4 つのオペレーティングシステムを置く必要があり、それら
を共存させようとしているのなら、この文書はあなた向けではありません。

<!--<p>Its specific goals are:-->
<sect1>具体的なゴール
<p>
<itemize>
<!--<p>* - A primary/operational disk that once configured and installed
is rarely changed.  This includes not having to repartition or
otherwise modify the disk it resides on.-->
<item>
基本となるオペレーティングシステムの入るディスクは、一旦取り
付けてインストールをすませればほとんど変更されないこと。これには、
ディスクのパーテイションを切り直したり、部分的修正を加えたりする必
要のないことも含まれる。

<!--<p>* - Easy selection of multiple alternative operating systems at boot
time without having to go through more than one or two menu selections.-->
<p><item>
一度か二度メニューから選択するだけで、起動時に複数の異なるオペレ
ーティングシステムを簡単に切り替えられること。

<!--<p>* - No need to modify the BIOS, LILO, or any other configuration to
access an O/S once it is installed.-->
<p><item>
インストールが終了すれば、BIOS,LILO その他の設定を変更しなく
ても任意の OS にアクセスできること。

<!--<p>* - Easy addition/removal of operating systems depending on
requirements at the moment.-->
<p><item>
その時々の必要に応じてオペレーティングシステムを簡単に追
加・削除できること。

<!--<p>* - Inexpensive and scalable to allow for an increasing number of
operating systems and versions as time goes on.-->
<p><item>
将来オペレーティングシステムの数が増えたり、新バージョンを
追加したりしても安価で拡張性に富んだ運用ができること。
</itemize>

<!--<p>I think I succeeded admirably in the first three of these requirements.
You can form your own opinions on the last two.-->
<p>
わたしは、これらの要求のうち最初の三点についてはかなり成功したと
思っています。最後のふたつについては、読者の判断に委ねます。

<!--<sect> Background: -->
<sect> バックグラウンド

<!--<p>Even though Linux is becoming much more user friendly and widely 
accepted, most of us still need access to other operating systems.  
I use Linux about 75% of the time but I still need access to Win 9x for 
those few applications that I haven't found acceptable alternatives for 
in Linux.  My wife uses MS Office at work and wants to have access to it 
at home. Other people want to have access to alternative O/S just for fun, 
training, or to keep current in their job.-->
<p>
Linux はますますユーザフレンドリーになり広く受け入れられるよう
にもなってきていますが、われわれの大部分は、今でも他のオペレーテ
ィングシステムを使わざるを得ません。わたしは時間にして 75% くらい
は Linux を使っていますが、それでも満足できるだけの代替品が Linux 
上にない少数のアプリケーションについては、いまも Win9x を使用せざ
るを得ません。私の妻は職場で MS-Office を使い、帰ってからもそれを
使いたがります。他の人は、単なる趣味やトレーニング、あるいは職場
で取り残されないために他の OS を使おうとします。

<!--<p>I tend to treat new O/S's as you would a game; I actually don't do
anything productive with them but installing and learning how to control
them is just as challenging and interesting to me as Quake or SimCity.
Further, being a Computer Scientist, it keeps me current on evolving
technology and has helped me solve a multitude of problems at work.
At any rate, for new Linux users, computer professionals, and those just
trying to migrate from one operating system to another, I believe using
multiple operating systems is the norm rather than the exception.-->
<p>
わたしにとって新しい OS は、他の人にとっての新発売のゲームのようなも
のです。生産的に利用することなど実はまったくないのですが、インストール
して操作方法を覚えること自体が、Quake や SimCity と同様にやりがい
充分で楽しいのです。わたしはコンピュータサイエンティストなので、そのこ
とが、進歩するテクノロジーに歩調を合わせ、仕事上膨大な問題を解決
する手助けにもなっています。いずれにせよ、Linux 初心者、コン
ピュータのプロ、ただ単に別の OS へ乗換えようとしている人々の誰
にとっても、複数のオペレーティングシステムを使うことは例外的と
いうよりもごく普通のことであると思います。

<!--<sect> System requirements:-->
<sect> 動作環境
<p>
<descrip>
<!--<p>BIOS - Any bios that allows automatic identification of disk drive
geometry and allows you to select the sequence of devices to boot from
should work.  I successfully built systems based on both PhoenixBIOS
4.0 and AMI Plug and Play Flash BIOS.
-->
<tag><tt>BIOS</tt></tag>
自動的にディスクドライブのジオメトリを認識し起動デバイスの順序を
変更できるものであれば、どんな BIOS でもかまいません。わたしがシ
ステムの構築に成功したのは、PhoenixBIOS4.0 と AMI Plug and Play 
Flash BIOS の両方です。

<!--<p>DISKS - One fixed internal disk dedicated to Linux. (first disk)
One Removable drive enclosure, with any number of drives. (second disk)
-->
<tag>ディスク</tag>Linux 用の固定された内蔵ディスクが一台(ファーストディスク)。
何本かのドライブをともなったリムーバブルディスク装置が一台(セカンド
ディスク)。

<!--<p>Since a lot of this HOWTO has to do with disks, from now on I will
generally use the terms "first disk" and "second disk".  The first disk is the
one initially accessed when the machine is turned on, commonly known as the
boot disk.  It has LILO installed in the MBR and is dedicated to a single
operating system, specifically Linux.  The second disk is a removable disk
that contains one or more alternative operating systems which may or may not
have a boot loader in the MBR or elsewhere.-->
<p>
この文書はディスク関係の記述が多いので、これからは通常、「ファース
トディスク」「セカンドディスク」という用語を使います。ファーストディ
スクとは一般にブートディスクと言われるもので、マシンに電源をいれ
た時最初にアクセスされるものです。MBR ( Master Boot Record )に
 LILO ( Linux Loader )がインストールされていて、単一のオペレーティング
システム、具体的には Linux 用に割り当てられます。セカンドディスクは
ひとつ以上のオペレーティングシステムを含むリムーバブルディスクであり、
MBR やその他のブートレコードにブートローダを含ことがありますが、そうでない
こともあります。

<!--<p>There are no other hardware/firmware requirements.  Any other
requirements would be dictated by the specific O/S.  For instance, even
though you could install it, Solaris 7 is not going to run well on an
old 90MHz machine!  The configuration and methodology described here
should however work equally well regardless of the CPU speed or other
installed peripherals.-->
<p>
ハードウェアやファームウェアに関してそれ以外に必要な動作環境はあ
りません。ただ、OS ごとに個別の動作環境が指定されているかもしれません。
例えば Solaris7 の場合、古い 90MHz のマシンではインストールならできるかも
しれませんが、快適には動かないでしょう！しかし、ここでの設定と方法論は、
CPU 速度やインストールされた周辺機器に関わりなく同じように有効
なはずです。

<!--<p>Operating Systems - I have tested this process with Linux (Redhat
and Suse), Solaris 7, BeOS, Win 98 and even MSDOS 6.22. I see no reason
why it wouldn't work with Win 95, O/S 2, or FreeBSD.  I am not familiar
with Windows NT or 2000 so I don't know how they would react to this
kind of setup.-->
<tag>オペレーティングシステム</tag>
わたしがこの企画をテストしたのは、Linux ( Redhat と Suse), Solaris7, BeOS, 
Win98, それと MS-DOS6.22 です。
Win95 や OS/2、FreeBSD に関しても問題はないと思います。WindowsNT 
と 2000 についてはよく知らないので、こうした設定をするとどうなる
のかは分かりません。

<!--<p>Boot loader - I used LILO on the first disk and BeOS bootman on the
second disks.  I used LILO on the first disk because it was the only
boot loader that allowed me to select the MBR on the second disk as an
acceptable boot partition.  Any relatively robust boot loader should
work on the second disk.-->
<p>
<tag>ブートローダ</tag>
ファーストディスク上で LILO を、セカンドディスク上で
 BeOS の bootman を使いました。ファーストディスクで LILO を使ったの
は、ブートパーテイションとしてセカンドディスク上の MBR を選択できる
唯一のブートローダであったからです。セカンドディスク上のブートロー
ダは、比較的しっかりしたものであればなんでもかまいません。
</descrip>


<!--<sect> How it works (a scenario):-->
<sect> 使い方（シナリオ）

<!--<p>Prior to ignition, I insert a disk, preloaded with an operating system
in the removable drive.  When I turn on the machine, I am presented at the
LILO prompt (by pressing &lt;tab&gt;) with "Linux" and "Disk2" as options.
Linux is the default and would automatically boot if I did nothing.
When selected, Disk2 either boots directly into the single O/S stored on
the second disk or presents me with a second boot menu if there is more
than one O/S on that disk.  If I power down, replace the second disk with
another and power back up, I still get the initial Linux/Disk 2 menu and,
if I select Disk2, a new menu appropriate to the newly inserted disk.
Once installed, I never have to modify the LILO configuration on the
first disk, I never have to change BIOS setting to boot from the second
disk and I never have to go through more than two menu selections to
get my selected O/S up and running.-->
<p>
電源をいれる前にリムーバブルディスクを挿入します。それには、あるオペレーティン
グシステムがあらかじめ入っています。マシンの電源がはいると LILO プロンプトが現
れ、Tab キーを押すと、"<tt>Linux</tt>" と "<tt>Disk2</tt>" というオプションが
表示されます。"<tt>Linux</tt>" はデフォルトで、何もしなければ自動的にそれが起動
します。"<tt>Disk2</tt>" を選択すると、セカンドディスクに入っている単一の OS が
立ち上がるか、ディスクに複数の OS が入っているときはふたつ目のブートメニューが
表示されます。電源を落としセカンドディスクを別の物と差し替えて再起動すると、同
じく最初の "<tt>Linux</tt>" と "<tt>Disk2</tt>" のメニューが表示されますが、
"<tt>Disk2</tt>" を選んだ場合、今度は差し替えたディスクに応じた新しいメニューが
表示されます。一旦インストールしてしまえば、ファーストディスクの LILO の設定を
変える必要はなくなりますし、セカンドディスクからブートさせるのに BIOS の設定を
変更することもなく、好みの OS を起動して走らせるために、多くとも二回のメニュー
で選択で済みます。

<!--<sect> The installation:-->
<sect> インストール

<!--<p>There are three distinct parts to the installation, first building
the primary O/S on its own dedicated drive.  Second, building a second
disk with whatever alternative O/S you selected. Finally, reconfiguring
the BIOS and LILO to support both disks.-->
<p>
インストールは三段階に分かれます。第一は、基本となる OS を所定のドライブ上に構
築すること。第二は、どれでも好きな OS をセカンドディスク上に構築すること。最後
に、両方のディスクが使えるように BIOS と LILO を設定し直すこと。

<!--<sect1> Installing the primary operating system-->
<sect1> 基本となるオペレーティングシステムのインストール

<!--<p>Installation of the primary/operational O/S is fairly straight forward.
Treat the system as if it were a single drive system dedicated to Linux.
Refer to the documentation that came with your distribution or see
<url url="http://www.linuxdoc.org/HOWTO/Installation-HOWTO.html">
for details on installing Linux.-->
<p>
操作の基本となる OS のインストールはきわめて単純です。Linux 用の単一のドライブ
にシステム設定をするときのようにやればいいのです。インストールの詳細について
は、お使いのディストリビューションに付属のドキュメントか、
<url url="http://www.linuxdoc.org/HOWTO/Installation-HOWTO.html">
を参照してください。
(訳注：日本語訳 <url 
url="http://www.linux.or.jp/JF/JFdocs/Installation-HOWTO.html">)

<!--<p> Because this is ultimately a multiple disk installation, there a few
steps that need to be taken to trick the install routines into thinking
that it is, during the installation process, a single disk system.-->
<p>
とはいえ、もともとが複数のディスクシステムでのインストールですから、インストー
ルの過程でインストールルーチンが単一のディスクだと思い込むようなトリックを使う
必要があり、そのためにいくつかの段階を踏みます。

<!--<p> First, Remove the removable Hard Drive and make sure the remaining
drive is identified in the BIOS as the secondary boot device (after the
floppy).  The operating system install program should only see one disk,
the one you are going to install to.  That way, there is no question
as to where it will be installed.  Also, it will install everything
appropriate to a single disk system.-->
<p>
まず最初に、リムーバブルディスク装置のハードドライブを抜きます。そして、BIOS 画
面で、残ったドライブがフロッピーに続く二番目のブートドライブとして認識されてい
ることを確認してください。オペレーティングシステムのインストールプログラムは一
台のディスクだけ、つまりあなたがこれからインストールするディスクだけを見るべき
だからです。そうすれば、どこにインストールするかという問題自体が生じませんし、
単一ディスクのシステム構築に必要なすべてのものがインストールされます。

<!--<p>When asked, tell the install program to use the entire disk for
your operating system.  I accepted the default RedHat partitioning and
installed the generic LILO on the MBR. -->
<p>
インストールプログラムからの質問には、オペレーティングシステムのためにディスク
全体を使うと答えてください。わたしは、Redhat のデフォルトのパーテイション設定の
ままにして、LILO にも手を加えずに MBR にインストールしました。

<!--<p> Once the installation is complete, shutdown and reboot to confirm
that your system works properly.  At this point you should have a fully
functional machine that boots directly into Linux.-->
<p>
インストールが終了したら、シャットダウンとリブートでシステムがうまく動くか確か
めてください。この段階で、直接 Linux が起動する完全なマシンになっているはずで
す。

<!--<sect1> Installing alternative operating systems-->
<sect1> その他のオペレーティングシステムのインストール

<!--<p> Now that you have a fully functional system, you can move on to
building a second disk with your alternative operating systems.-->
<p>
ここまでで完全に稼働するシステムがひとつできたので、他のオペレーティングシステ
ムをセカンドディスク上に構築する作業に進みましょう。

<!--<p>Select an operating system or two for installation on the second disk.
I decided on, for no good reason, Windows 98 and BeOS for my initial
test case.  I partitioned an 8GB drive into two 4GB primary partitions
and installed Windows 98 in the first partition and BeOS in the second.-->
<p>
セカンドディスクにインストールするオペレーティングシステムをひとつかふたつ選ん
でください。わたしは特別な理由はないのですが、最初のテストケースとして 
Windows98 と BeOS を選択しました。そして、8GB のドライブを 4GB のプライマリ
パーテイションに二分割して、最初のパーテイションに Windows98 を、ふたつ目に 
BeOS をインストールしました。

<!--<p>Do the same things with this install that you did with the first.
Disable the first disk in the BIOS so that this installer will not
even see it.  This is very important.  If you can physically remove or
disconnect the first disk, do it!  This will protect your primary system
from any errors on your part or overly greedy operating systems that
want to take over all the disks they see during the second installation.
If at some time in the future you decide to create another removable
disk make sure and repeat this step.-->
<p>
このインストールでは、前回やったのと同じことをしてください。BIOS でファースト
ディスクを使用不可にして、インストーラからは見ることすらできないようにします。
これはとても大切なことです。ファーストディスクを物理的に取り外すかコネクターを
抜けるなら、そうしてください！ そうすれば、あなたが何らかのミスをしても基本シス
テムは安全ですし、二度目のインストール中に、見つけたすべてのディスクを乗っ取ろう
とする法外に欲の深いオペレーティングシステムの餌食にならずにすむでしょう。
もし将来別のリムーバブルディスクを作ろうと決めたときにも、この手順を繰り返すこ
とを忘れないでください。

<!--<p>Once this is done install your chosen operating systems as if you
were installing them on a single drive system.-->
<p>
それがすんだら、単一ドライブのシステムにインストールする時のように好きなオペ
レーティングシステムをインストールしてください。

<!--<p> If you are only installing one operating system on the second disk,
just plug in the installation disk and let it do its thing.  Windows 95
or 98 or just about any other operating system, including a second Linux
should install just fine this way.  Allow Windows 9x to write to the MBR.
If installing Linux, select MBR as the location to install LILO.-->
<p>
もしセカンドディスクにひとつしかオペレーティングシステムをインス
トールしないのなら、インストールディスクを挿入してそのまま作業を進
めてください。Windows95 や 98、あるいはふたつ目の Linux も含めた他
のオペレーティングシステムであっても、この方法でなんの問題もありま
せん。Windows9x には MBR を上書きさせてあげましょう。Linux のインス
トールなら、LILO の置き場所は MBR にしてください。

<!--<p> I decided to install two operating systems on the second disk so
that I could confirm the functionality of cascading boot loaders.-->
<p>
わたしはセカンドディスクにふたつのオペレーティングシステムをイ
ンストールしようと決めたおかげで、複数のブートローダを使うとどうい
うことが起こるのか確かめることができました。

<!--<p>I first installed Windows 98 because it automatically overwrites the
MBR and would have overwritten any boot loader code I eventually placed
there.  Next, I installed BeOS in the second partition and ran bootman,
the BeOS boot loader.  With it I built a boot menu for the second disk
and intentionally overwrote the Windows 98 MBR.-->
<p>
わたしは最初に Windows98 をインストールしました。なぜなら、
Windows98 は自動的に MBR を上書きするようになっていて、わたしが
結局そこにどんなブートローダのコードを置こうと全部上書きしてし
まうからです。次にわたしはセカンドパーテイションに BeOS をイン
ストールし、BeOS のブートローダである bootman を走らせました。
それを使ってセカンドディスクのブートメニューを作成し、意図的に
 Windows98 の作った MBR を上書きしたのです。

<!--<p>Bootman was not essential, I could have used any MBR based boot
loader but it was available and it works quite will.-->
<p>
Bootman が絶対必要だったわけではなく、MBR に置けるブートローダ
なら何でもよかったのですが、手近にそれがあったのとしかも良くで
きていることから使用しました。

<!--<p>Reboot frequently to make sure that everything works properly as
a single disk system.  I rebooted after each O/S installation to make
sure it worked properly and also to make sure that the boot loader menu
worked properly.-->
<p>
何度か再起動し、単一のディスクシステムとしてすべてうまく動くこと
を確かめてください。わたしはそれぞれの OS のインストール終了時
に再起動して、各々がうまく動くか、またブートローダのメニューが機
能するか確かめました。

<!--<sect1> Final BIOS and LILO configuration:-->
<sect1> 最後に BIOS と LILO の設定

<!--<p>Next, reconfigure the BIOS so that it again recognizes the first disk
(physically reconnect it if you disconnected it earlier) as the boot
disk and so that it also recognizes the second disk. How to do this is
very system specific and dependent on your BIOS and whether you have a
SCSI/IDE or IDE/IDE setup.  I haven't tried a SCSI/SCSI setup because
SCSI disks and removable frames are significantly more expensive than
IDE disks and frames.  I wanted performance for my primary O/S but could
accept cheap on the other ones.-->
<p>
次に、BIOS を再設定してファーストディスクをブートディスクとして認識し直すように
します（先ほどケーブルを物理的に抜いていた場合は、再接続してください）。セカン
ドディスクの方も認識させたままにしてください。設定方法は、使っているシステムに
よって異なり、使用する BIOS, 及びディスク構成が SCSI/IDE か IDE/IDE のいずれで
あるかにも依存します。SCSI ディスクとそのリムーバブルフレームは IDE のものに比
べてかなり値段が高いので、わたしは、SCSI/SCSI 構成については試していません。
基本となる OS についてはパフォーマンスが欲しいですが、他方に関しては安物でかま
わないからです。

<!--<p>Make sure and set the second disk type to "Auto" or "Automatic".
This will force the BIOS to dynamically determine the disk type at
boot time.  I have been able to successfully use an ancient 512MB
disk, a 4GB, an 8GB, and even a 100MB IDE Zip disk as the second disk.
All recognized automatically by the BIOS.-->
<p>
セカンドディスクのディスクタイプを "<tt>Auto</tt>" か "<tt>Automatic</tt>" に
設定するのを忘れないでください。そうすることで、起動の際 BIOS が動的にディスク
タイプを決定するようにするのです。わたしはセカンドディスクとして、年代物の 
512MB ディスク、4GB, 8GB,それに 100MB の IDE ZIP ディスクを使ってうまくいきまし
た。BIOS はすべてを自動で認識しました。

<!--<p>Reboot the system and get back to Linux.  At this point, even though
there are at least two operating systems installed, this LILO only knows
about the original Linux and should boot to it automatically.  Watch the
boot process and you should see a message about automatically identifying
a disk.  Once booted, check dmesg to make sure Linux recognized the
second disk.-->
<p>
システムを再起動し、Linux に戻りましょう。この時点で少なくともふたつのオペレー
ティングシステムがインストールされているのですが、それにもかかわらずこのマシン
の LILO はもとの Linux のことしか知らないので、自動的にそれを起動しに行きます。
ブートプロセスを注意して見ていてください。そうすると、ディスクをひとつ自動認
識したというメッセージが出てくるはずです。起動が終了したら、Linux がセカンド
ディスクを認識したかどうか <tt>dmesg</tt> でチェックしてください。

<!--<p>Once this is done, you need to reconfigure LILO on the first disk
to make it aware of the second disk. Here are two different lilo.conf
files, one for a SCSI/IDE and another for an IDE/IDE system.  Each has
some strengths and weaknesses...-->
<p>
以上が済んだら、ファーストディスクにある LILO の設定を変更
して、LILO にもセカンドディスクを認識させなければなりません。
以下は二種類の <tt>lilo.conf</tt> ファイルです。ひとつは SCSI/IDE システ
ム用で、もうひとつは IDE/IDE 用です。どちらのシステムも一長一短
といったところでしょうか...

<!-- 
<verb>
# lilo.conf file for an internal SCSI disk and a removable disk
# configured as a master on the primary IDE connection
-->
<verb>
# 以下の lilo.conf ファイルは、内蔵 SCSI ディスクと IDE の primary master に
# 接続されたリムーバブルディスクのためのものです。 
</verb>

<!--
disk = /dev/sda		#  These four lines are necessary
   bios = 0x80		#  to get the SCSI disk re-mapped as
disk = /dev/hda		#  the primary drive even though it
   bios = 0x81		#  is selected in the BIOS as the
			#  boot device.  This might be a BIOS
			#  specific problem.

# Without them you get the following errors from LILO:
#  
#  LILO version 21, Copyright 1992-1998 Werner Almesberger
#
# ading boot sector from /dev/sda
# Warning: /dev/sda is not on the first disk
# And LILO either hangs at LI or repeats endless "01 "'s across the screen
-->
<verb>
disk = /dev/sda		#  左の四行は、SCSI ディスクをプライマリディスク
   bios = 0x80		#  としてマッピングし直すために必要です。
disk = /dev/hda		#  BIOS で SCSI ディスクが起動ディスクになってい
   bios = 0x81		#  たとしても設定してください。
			#  この設定は、BIOS によって異なるようです。
			#  (訳注: bios = 0x?? は、ディスク構成と BIOS に
                        #  依存します。)

# 上記の設定をしないと、LILO から以下のメッセージをもらうでしょう:
#  
#  LILO version 21, Copyright 1992-1998 Werner Almesberger
#
# ading boot sector from /dev/sda
# Warning: /dev/sda is not on the first disk
# そして LILO は、LI でハングするか、01 を画面いっぱいに永遠と出力し続け
# るでしょう。
</verb>

<!--  
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.12-20smp
   label=Linux
   root=/dev/sda1
   initrd=/boot/initrd-2.2.12-20smp.img
   read-only
other = /dev/hda
# other = /dev/hda is the key element.  Instead of redirecting lilo to
# a specific partition, it redirects it to the MBR on the second disk.
# that way, LILO doesn't have to know anything about the second disk and
# we can replace it with another because LILO always goes to the same place
# regardless of which specific disk is installed.  LILO was the only boot
# loader I found that would do this.
   label = Disk2
   map-drive = 0x80
      to = 0x81
   map-drive = 0x81
      to = 0x80
# The map-drive lines are necessary to make the second disk think it is
# actually the boot disk.
-->
<verb>
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.12-20smp
   label=Linux
   root=/dev/sda1
   initrd=/boot/initrd-2.2.12-20smp.img
   read-only
other = /dev/hda

# other = /dev/hda というのが鍵です。特定のパーテイションに LILO を
# リダイレクトする代りに、セカンドディスクの MBR にリダイレクト
# しています。
# そうすれば、LILO はセカンドディスクに関して何も知る必要がなくなります。
# セカンドディスク上のディスクの種類に関係なく LILO がいつも同じ場所を
# アクセスするので、セカンドディスクの交換が可能になります。
# こんなことができるブートローダは、わたしの知る限り LILO だけです。
   label = Disk2
   map-drive = 0x80
      to = 0x81
   map-drive = 0x81
      to = 0x80
# map-drive という行が必要なのは、セカンドディスクに自分が本当に
# ブートディスクであることを自覚させるためです。
</verb>

<verb>


</verb>

<!--
# lilo.conf file for a system with two IDE drives.  Both are masters,
# /dev/hda on the primary connector and /dev/hdc on the secondary.
# /dev/hdb is a CDROM slave on the primary IDE connector.
# disk = /dev/hda	# These lines are not necessary for the
#    bios = 0x80	# IDE/IDE installation because the BIOS
# disk = /dev/hdc	# already knows what order they are in
#    bios = 0x81
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.5-15
        label=linux
        root=/dev/hda4
        read-only
other = /dev/hdc
# other = /dev/hdc is again the key.  This just redirects LILO to the
# MBR of the second disk.  Whatever is there gets control.
   label = Disk2
   map-drive = 0x80
      to = 0x81
   map-drive = 0x81
      to = 0x80
-->
<verb>
# 以下の lilo.conf ファイルは、ふたつの IDE ディスクを持ったシステム
# のためのものです。
# どちらも master で、/dev/hda は primary 、/dev/hdc は secondary で
# 接続されています。
# /dev/hdb には IDE の primary/slave 接続で、CD-ROM を繋いでいます。
# disk = /dev/hda	# 左の行は、IDE/IDE のインストールでは不要です。
#    bios = 0x80	# どういう順序で接続されているか、BIOS はすでに
# disk = /dev/hdc	# 知っているからです。
#    bios = 0x81
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.5-15
        label=linux
        root=/dev/hda4
        read-only
other = /dev/hdc
# other = /dev/hdc というのがここでも鍵を握っています。この設定に
# よって、LILO はセカンドディスクの MBR にリダイレクトされます。
# そこにどんなプログラムがあってもそれに処理を引き継がせるわけです。
   label = Disk2
   map-drive = 0x80
      to = 0x81
   map-drive = 0x81
      to = 0x80
</verb>

<!--<p>The /dev, boot, map and image entries are system specific and yours
will probably be different that mine.  The entries in your initial
/etc/lilo.conf file should give you an accurate guide for your system.
I copied the "Linux" entry from the original install generated lilo.conf
file directly into the new lilo.conf.  This should allow you to boot into
"Linux" and modify your lilo.conf even if the "Disk2" entry fails totally.-->
<p>
上記の <tt>/dev, boot, map, image</tt> といった設定項目はシステム固有のもので、
おそらくあなたの設定とわたしのとでは異なるでしょう。あなたの Linux の最初の 
<tt>/etc/lilo.conf</tt> ファイルを見てください。その設定値を見れば、ご自分の
システムを知る正確な指針が得られるはずです。わたしは、Linux に関する項目をその
最初のインストール時に生成された <tt>lilo.conf</tt> ファイルから新しい 
<tt>lilo.conf</tt> ファイルに直接コピーしました。こうしておけば万一、 "<tt>
Disk2</tt>" の設定に完全に失敗しても、"<tt>Linux</tt>" を起動して <tt>
lilo.conf</tt> を修正することができます。

<!--<p>Finally, run lilo -vvv to make sure it agrees with everything you
are trying to do.-->
<p>
最後に、<tt>lilo -vvv</tt> と打って、LILO があなたの設定に同意するか
確かめてください。

<!--<sect> Cost and  gotcha's:-->
<sect> コストと雑記

<!--<sect1> Cost:-->
<sect1> コスト

<!--<p>I found a Frame and 1 drawer removable drive mount for $20.00.
It is the  "SNT MOBILE RACK".  Disks didn't cost me anything because I
had several old or small IDE drives around from upgrades etc.  Even if
you have to buy them, 2GB IDE drives are cheap.-->
<p>
わたしは、リムーバブルドライブ用のディスク装置(Frame)ひとつとカートリッジ
(drawer)一本で、 20 ドルかかりました。"SNT MOBILE RACK" という製品です。それ以
外のディスクについてコストはかかっていません。アップグレードしたりしているうち
に、古かったり容量が小さかったりした IDE ドライブがいくつか手元にあったからで
す。購入しなければならないとしても、2GB の IDE ドライブなら安価です。

<!--<sect1> Gotcha's-->
<sect1> 雑記

<!--<p>1.  Once you decide whether your removable drive is going to be a
master or slave, make sure and jumper it properly before securing it
in its case.  If you forget this step it can take quit a while to trace
booting problems back to an improper jumper setting.-->
<p>
<enum>
<item>
リムーバブルドライブをマスターにするかスレイブにするか決めたら、ケースに設置し
てしまう前にジャンパピンの設定が正しいか確認すること。これを忘れると、起動時に
生じる問題がジャンパの設定ミスにあることを長時間かけて調べることになる。

<!--<p>2.  Make sure that O/S installation routines can ONLY see the drive
they are installing to.  RedHat refused to let me install LILO to the
SCSI MBR if it could see the IDE drive.  So, to install to an internal
SCSI drive, I had to physically remove the IDE.  To install to the IDE,
I had to disable SCSI support in the BIOS.-->
<p><item>
OS のインストールルーチンには、インストール先のドライブしか見せないこと。
Redhat は、IDE ドライブが見えると、SCSI ドライブの MBR に LILO をインストール
させてくれなかった。その結果、わたしは内蔵 SCSI ドライブにインストールするため
に、IDE ドライブを物理的に外すはめになった。IDE にインストールするには、BIOS 
上で SCSI サポートを無効にせざるを得なかった。

<!--<p>3. If an O/S installation routine tells you it is going to repartition
ALL your drives and overwrite EVERYTHING believe it.-->
<p><item>
ある OS のインストールルーチンは、全ドライブのパーテイションを切り直し、全
データを上書きすると語るかもしれない。その言葉を信じること。

<!--<p>4.  It is very easy to install an IDE cable backwards.-->
<p><item>
IDE ケーブルは逆にも簡単に差せる。

<!--<p>5.  I only tested an IDE master/master set up.  I am not sure how a
master/slave would work.-->
<p><item>
わたしがテストしたのは、IDE の <tt>master/master</tt> だけである。
<tt>master/slave</tt> でどうなるかは知らない。

<!--<p>6.  Installing the removable disk frame does require opening up the
computer case.  If you are uncomfortable with this get a friend to help.-->
<p><item>
リムーバブルディスクのフレームを組み込むには、コンピュータのケースを開ける必要
がある。それが苦手なら、友人に助けを求めなければならない。

<!--<p>7.  If you set the removable disk to a specific disk type in the BIOS
it will work fine until you replace it with another disk of a different
type.  Then you will get errors or warnings and the system might not boot.-->
<p><item>
リムーバブルディスクのディスクタイプを BIOS 上で特定したとしても、
違うタイプのディスクに差し替えるまでなら、きわめて順調に動く。そして
その直後に、エラーか警告が出る。システムが起動しなくなることもある。

<!--<p>8.  Plan everything in advance.-->
<p><item>
あらかじめ、すべての計画を練っておくこと。

<!--<p>9. With a quick change to the BIOS, the second disk becomes your
boot disk.  This means that you can have a fully functional O/S available
as your emergency/recovery disk.-->
<p><item>
BIOS 設定のわずかな変更で、セカンドディスクがブートディスクになる。すなわち、
緊急及び復旧用のディスクとして完全な OS が手に入るわけである。
</enum>


<sect1> 日本語訳について
<p>

<verb>
翻訳 千旦 裕司
校正 早川 仁
     山下 義之
     武井 伸光
     森本 淳
     川嶋 勤
</verb>

誤訳、誤字・脱字等がありましたら、JF メーリングリスト 
<tt>&lt;JF@linux.or.jp&gt;</tt> か、訳者 <tt>&lt;ysenda@pop01.odn.ne.jp&gt;
</tt> までご連絡ください。

</article>


