Grub boot loader: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
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!
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.
Then you run grub


This puts you in the grub menu.
In the grub menu do:
grub> root (hd0,0)
grub> setup (hd0)
Then reboot and see how it went!
-------------
-------------



Revision as of 09:59, 8 July 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!

Then you run grub

This puts you in the grub menu.

In the grub menu do:

grub> root (hd0,0)

grub> setup (hd0)

Then reboot and see how it went!


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!