Grub boot loader: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
New page: To install grub do >> apt-get install grub Then to activate grub on the MBR do >> grub-install /dev/hdXX #(device where to put the bootloader - generally the / partition if you run moun...
 
No edit summary
Line 18: Line 18:


You don't have to run grub again, it just works after the reboot.
You don't have to run grub again, it just works after the reboot.
-------------
To put grub on a new HD, first create a grub boot floppy with
grub-floppy
then reboot into the grub floppy.
In the grub menu do:
grub> root (hd0,0)
grub> setup (hd0)
and then reboot!

Revision as of 10:38, 10 June 2008

To install grub do

>> apt-get install grub

Then to activate grub on the MBR do

>> grub-install /dev/hdXX #(device where to put the bootloader - generally the / partition if you run mount)

To create the /boot/grub/menu.lst you do

>> update-grub

around the top is the line

default 0

This sets the option that will be run by default (starts at 0 and goes up). Look at the options and see which one will be run - it seems to want to put 2.4 kernels ahead of 2.6 kernels!

You don't have to run grub again, it just works after the reboot.


To put grub on a new HD, first create a grub boot floppy with


grub-floppy


then reboot into the grub floppy.


In the grub menu do:

grub> root (hd0,0)

grub> setup (hd0)


and then reboot!