3. Installation to HDD

3.1. Installing grub in HDD

Did booting from the floppy work without an error? If so, let's install grub in your HDD.

     # /sbin/grub-install /dev/hda 
   

This will overwrite your MBR of /dev/hda.

When rebooted, the boot screen becomes the same as the one when booted from the floppy disk.

3.2. Booting up using the grub menu

Now, grub in your HDD should be able boot your system.

In the present condition, you have to input a command each time. That is very troublesome, isn't it?

grub can also boot the system from a menu.

To use a menu you need to edit a file at /boot/grub/grub.conf. Mine is put on below as an example.

    # timeout (second)      
    timeout 5      

    # The entry booted as default (numbered from the top as 0, 1, 2, 3 ...)
    default 0      

    ## splash image      
    # When using a picture for a background, specify here.
    splashimage = (hd0,0)/boot/grub/splash.xpm.gz      

    ## Starting Momonga      
    # title is shown in the menu
    title Momonga Linux
    root (hd0,0)
    kernel /boot/vmlinuz-2.4.19-12m root=/dev/hda1
    initrd /boot/initrd-2.4.19-12m.img

    ## Starting Windows
    # We have to spell 'makeactive' and 'chainloader' for this OS.
    title Windows 98
    root (hd0,1)
    makeactive
    chainloader+1
   

The menu screen is shown now when booted. If no keys are pressed in 5 seconds, Linux will be booted.