From: "Volker Augustin" <[EMAIL PROTECTED]>
Subject: Antw: Re: Antw: Re: Testing grub
Date: Tue, 17 Oct 2000 17:15:59 +0200

> How exactly can this be done? :-) Volker

  See the description on "device map file" and the command "device" in
the manual, for details. I explain only one example.

Create a floppy image on GNU/Linux:

$ dd if=/dev/zero of=floppy bs=512 count=2880
$ mke2fs floppy
$ su
# mount -o loop floppy /mnt
# mkdir /mnt/boot
# cp -a /boot/grub /mnt/boot
# umount /mnt

Use the image:

$ echo '(fd0)' `pwd`/floppy > map
$ grub --device-map=map --config-file='(fd0)/boot/grub/menu.lst'

There are various ways to do the same thing (e.g. just copy a real
floppy to a file). And, it is much more difficult to create a hard
disk image from scratch. If you are interested in using a hard disk
image, I can explain how to do that, but I'm now very sleepy.

Okuji

_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to