/fd0 grub.conf

From: craig (craig_at_stellarnet.com)
Date: 11/17/04


Date: Tue, 16 Nov 2004 17:54:53 -0600

I'm experimenting here to see how to boot from grub from a floppy.
I created a boot floppy as follows:
[root prompt]# fdformat /dev/fd0H1440

[root prompt]# mke2fs /dev/fd0

[root prompt]# mount -t ext2 /dev/fd0 /mnt/floppy

[root prompt]# grub-install --root-directory=/mnt/floppy '(fd0)'

[root prompt]# cp /boot/grub/grub.conf /mnt/floppy/boot/grub/grub.conf

[root prompt]# umount /mnt/floppy

this gave me a grub.conf on the floppy that reads as follows:

title Fedora Core (2.4.22-1.2199.nptl)
        root (hd0,0)
        kernel /vmlinuz-2.4.22-1.2199.nptl ro root=LABEL=/ rhgb
        initrd /initrd-2.4.22-1.2199.nptl.img
title Fedora Core (2.4.22-1.2115.nptl)
        root (hd0,0)
        kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
grub.conf

When I boot the process haults on a partially visible grub menu. I don't
think it's able to find the root.

Following my fdisk reports:
# fdisk -l /dev/hda
Disk /dev/hda: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 19893 159686100 83 Linux
/dev/hda3 19894 20023 1044225 82 Linux swap

The boot can not find the root as best as I can tell by trying to read
photo negative grub menu that's generated at boot.

I tried editing the line in grub.conf while
kernel /vmlinuz-2.4.22-1.2199.nptl ro real_root=/dev/hda3

It didn't even seem to attempt use the new path but I may have been
mistaken.
 



Relevant Pages

  • Re: GRUB Problems with Dell Optiplex GX1
    ... inappropriate boot image when they turn it on... ... It will boot from a floppy, but installing it to ... FreeBSD folks tend not to use Grub, ...
    (freebsd-questions)
  • RE: Grub failing to work
    ... Take your master CD-DVD for the Distro and boot from it. ... GRUB, while preserving the data on / [root] As a word of warning ... I tried to fix the problem with the boot floppy without success. ...
    (Fedora)
  • swapping master & slave HDs: what to change? (solved - pls comment!)
    ... using GRUB as bootloader and GAG as boot selector. ... Make a GRUB-only boot floppy or CD, ... pointed to any kernel in any partition, ... Grub is deliciously ambiguous with the concept of "root". ...
    (Debian-User)
  • RE: Grub failing to work
    ... Take your master CD-DVD for the Distro and boot from it. ... GRUB, while preserving the data on / [root] As a word of warning ... I tried to fix the problem with the boot floppy without success. ...
    (Fedora)
  • Re: GRUB Problems with Dell Optiplex GX1
    ... inappropriate boot image when they turn it on... ... It will boot from a floppy, but installing it to ... FreeBSD folks tend not to use Grub, ...
    (freebsd-questions)