mkboot with grub 

Newsgroups: gmane.linux.debian.user
Date: Fri, 3 Jun 2005
> I'm using Grub. Is there a method of making a bootdisk with grub bootloader?

No problem with lilo, but if you like grub:

  1. format a floppy
  2. cd /floppy
  3. mkdir /doc
  4. mkdir /grub
  5. mkdir /pict
  6. then,

    cp ......stage1 /floppy/grub/
    cp ......stage2 /floppy/grub/

create and edit a file menu.lst as follows:

splashimage (fd0)/boot/grub/images/linuxinside.xpm.gz

# Boot automatically after 30 secs.
timeout 30

# By default, boot the first entry.
default 0

# Fallback to the second entry.
fallback 1

# For booting Debian Linux
title  Debian 2.6.8
root (hd0,1)  # = /boot -> /dev/hda2
kernel /vmlinuz-2.6.8-1-386  root=/dev/hda5  # '/' device
initrd /initrd.img-2.6.8-1-386

title  Debian 2.6.10
root (hd0,1)
kernel /vmlinuz-2.6.10-1-686  root=/dev/hda5
initrd=/initrd.img-2.6.10-1-686

(adjust vmlinuz and initrd… and where your /boot/vmlinuz… is, here first hd second oartition)

Save this file to /floppy/grub/

Adapt also your splashimage if necessary.

mess-mate @free.fr