○ grub起動イメージの保存

・# 記号はrootでの実行を意味します
・grub起動イメージをfloopyに保存します
・grub.confが変更されたら、作り直しします
・formatはvfatで行なっています

$ su -
password:
[root@mars:~]
# mformat -f 1440 a:
# mount -t vfat /dev/fd0 /media/floppy
# mkdir -p /media/floppy/boot/grub
# cd /boot/grub
[root@mars:/boot/grub]
#
# cp grub.conf stage1 stage2 /media/floppy/boot/grub
# ls /media/floppy/boot/grub
grub.conf  stage1  stage2
# umount /media/floppy
# grub

   GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]

grub> root (fd0)
 Filesystem type is fat, using whole disk

grub> setup (fd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/fat_stage1_5" exists... no
 Running "install /boot/grub/stage1 (fd0) /boot/grub/stage2 p /boot/grub/grub.c
onf "... succeeded
Done.

grub> quit

Probing devices to guess BIOS drives. This may take a long time.
#

・BIOSを"floppy boot"に変更して動作確認をします

○ Copyright(c) 528p.com All Rights Reserved.