2008年6月14日

grub 起動フロッピーを作る

$ fdformat /dev/fd0 :フォーマット
$ mkfs -t msdos /dev/fd0 :ファイルシステム作成
$ mount /dev/fd0 /media/floppy :マウント
$ mkdir /media/floppy/boot/
$ mkdir /media/floppy/boot/grub/ :/boot/grub/ ディレクトリ作成
$ cp /boot/grub/stage* /media/floppy/boot/ :stage1,stage2 ファイルのコピー
$ cp /boot/grub/menu.1st /media/floppy/boot/ :menu.1st ファイルのコピー
$ grub :grub 起動

grub> root (fd0)

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/menu.lst "... succeeded
Done.

grub> quit
$ umount /dev/fd0 :フロッピーディスクのアンマウント

トラックバックURL

このエントリーのトラックバックURL:
http://www.kurry-jp.sakura.ne.jp/mt4.28/mt-tb.cgi/162

コメントする