[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mkboot with grub

Vegard|drageV <vegardlr@gmail.com> wrote:
| When trying to make a bootfloppy, I get this output:
| hjem:/home/vegard# mkboot /boot/vmlinuz-2.6.8-2-686
| Insert a floppy diskette into your boot drive, and press <Return>.
| Creating a lilo bootdisk...
| Kernel is at /boot/vmlinuz-2.6.8-2-686 in /boot
| Matching initrd image is /boot/initrd.img-2.6.8-2-686
| /usr/sbin/mkboot: line 361: /etc/lilo.conf: Ingen slik fil eller filkatalog
| Could not find the requested kernel in your
|    current /etc/lilo.conf .
| The mkboot script can probably do better.
| Here is the proposed lilo.conf:
| # floppy lilo.conf
|         boot = /dev/fd0
|         install = boot.b
|         map = map
| root = /dev/hda1
| You can install the boot-loader from this best guess,
| or you can try to install from a `vanilla\' lilo.conf .
| Which do you choose? (Enter B for best, V for vanilla): B
| Installing the best-guess lilo.conf...
| /usr/sbin/mkboot: line 240: lilo: command not found
| hjem:/home/vegard#
| I'm using Grub. Is there a method of making a bootdisk with grub bootloader?
No problem with lilo, but if you like grub:
-format a floppy
-cd /floppy
-mkdir /doc
-mkdir /grub
-mkdir /pict
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

(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.

You are only young once, but you can stay immature indefinitely.

Reply to: