grub: Update README file with the grub-install method, in addition to the purely manual method.

This commit is contained in:
Brett Goulder 2008-03-22 18:20:56 -04:00
parent 71232acbb5
commit 7583f1c993

View File

@ -5,15 +5,34 @@ PRE-INSTALL
POST-INSTALL
After installation you need to copy the stage files to
/boot/grub/:
Automatic setup using grub-install
After installation you should create your own boot menu:
# # Copy sample file
# cp /boot/grub/menu.lst.sample /boot/grub/menu.lst
# # Modify it for your system
# vi /boot/grub/menu.lst
For more information about setting up your own grub boot menu file:
http://www.gnu.org/software/grub/manual/grub.html#Configuration
After making your boot menu you should run grub-install like so:
# grub-install /dev/sdX
In the example above, X needs to be replaced with your hard drive.
Manual setup
After installation you need to copy the stage files to /boot/grub/:
# cp /usr/share/grub/i386-pc/* /boot/grub/
(Of course, you can choose another location as described above but
this guide assumes that you use /boot/grub. Normally you need only
the files stage1 and stage2 - please read the grub documentation if
you don't know why. http://www.uruk.org/orig-grub/ and
(Of course, you can choose another location as described above but this guide
assumes that you use /boot/grub. Normally you need only the files stage1 and
stage2. Please read the grub documentation if you don't know why:
http://www.uruk.org/orig-grub/ and
http://www.gnu.org/software/grub/manual/grub.html)
Now it's time to create your own "boot menu":
@ -22,22 +41,23 @@ POST-INSTALL
# cp /boot/grub/menu.lst.sample /boot/grub/menu.lst
# # Modify it for your system
# vi /boot/grub/menu.lst
For more information about setting up your own grub boot menu file:
http://www.gnu.org/manual/grub-0.92/html_mono/grub.html#Configuration
Last but not least - install/enable the bootmanager:
http://www.gnu.org/software/grub/manual/grub.html#Configuration
Last but not least, install/enable the boot manager:
# # Run grub
# grub
grub> root (hdX,Y)
grub> setup (hdX)
grub> quit
Please correct the path & device names according your configuration.
Also see http://www.gnu.org/software/grub/manual/grub.html#Installation.
In the example above, X and Y need to be replaced with your hard drive
and grub partition.
Please correct the path and device names according to your configuration. Also
see http://www.gnu.org/software/grub/manual/grub.html#Installation. In the
example above, X and Y need to be replaced with your hard drive and grub
partition.
That's all. Good luck ;)
PRECAUTION