デュアルブート

hda1 Win2000(vfat)
hda2 Win2000(vfat)
hda3 VineLinux(ext3)
hda4 VineLinux(swap)

  • 準備

1. hda1のルートにVine26r4-i386.iso grub-0.93-0vl1.2.i386.rpmを置いておく。
2. Vine26r4-i386.isoをCDに焼いてCDブートする。

  • 手順

1. UBS接続のCDROMドライブでブートするとインストール先をCDROMにしてもドライブを見つけられないので、ハードディスクを選択。
2. hda1を選択してインストールを進める。
3. ブートローダーはインストールしない。
4. 終わったら、再度CDブートし、

linux resuce

で起動する。
5. 以下のコマンドを実行

# chroot /mnt/sysimage
# mkdir /mnt/dos
# mount -t msdos /dev/hda1 /mnt/dos
# cp /mnt/dos/grub* /
# rpm -ivh grub*
# cd /usr/share/grub/i386-vine
# cp /usr/share/grub/i386-vine/stage1 stage2 *_stage1_5 /boot/grub
# grub
grub> root (hd0, ← hd0,を入力してTabを押す
Possible partitions are: ← GRUBが認識したパーティション一覧が表示される
grub> root (hd0,2)
grub> setup (hd0,2)
grub> quit
dd if=/dev/hda3 of=/mnt/dos/bootsect.vin bs=512 count=1

6. 再起動してwin2000を起動
7. boot.iniに以下の行を追加

c:\bootsect.vin="Linux"



これで最初はWinのセレクターが走って、そこでVineに行っても、grubでWinに戻ることもできて便利便利(笑)