[pocket-linux] Beta testers wanted for GRUB boot disk instructions

David Horton dhorton at speakeasy.net
Mon Mar 8 19:46:24 CST 2004


Hi Everyone,

I am working on rewriting the Pocket Linux Guide to use GRUB instead of 
LILO.  One nice thing about using GRUB is that it's relatively easy to 
build from source and I have written up some instructions to do just 
that.  I would appreciate some help verifying the instructions.  If you 
have a few free minutes please try out the procedure below and let me 
know how it goes.

(Note: I left out the part about building and installing a kernel to 
save on time, but if you want to copy an existing kernel from the LILO 
boot disk it should work.  You will have to load the kernel manually or 
create a menu.lst file.  See Rick Stocker's instructions for help.)

Dave



Download the grub-0.94 source from ftp://alpha.gnu.org/gnu/grub


Prepare a boot floppy

bash# mke2fs -m0 /dev/fd0
bash# mount /dev/fd0 /mnt


Build GRUB

bash# cd /usr/src/grub-0.94
bash# export CC="gcc -mcpu=i386"
bash# ./configure --host=i386-pc-linux-gnu --without-curses
bash# make


Copy the GRUB bootloader files to the floppy

bash# mkdir -p /mnt/boot/grub
bash# cp stage1/stage1 /mnt/boot/grub
bash# cp stage2/stage2 /mnt/boot/grub
bash# cp stage2/e2fs_stage1_5 /mnt/boot/grub


Run the GRUB shell

bash# umount /dev/fd0
bash# grub/grub


Install GRUB onto the boot floppy

grub> root (fd0)
grub> setup (fd0)
grub> quit


Boot from the GRUB floppy and explore the GRUB shell

grub> help
grub> help kernel
grub> help boot
grub> help halt
grub> help reboot


Remove the boot floppy and reboot the PC

grub> reboot




More information about the Pocket-Linux mailing list