Grub Howto

From HotDec

Jump to: navigation, search

Booting with Grub

  1. From the Grub boot-menu press 'c' (for command-line).
  2. Enter in "root (hd0,0)" where the first 0 is the harddrive number (minus one) and the second 0 is the partition number (minus one). This command specifically sets the first partition on the first IDE disk to root.
  3. Enter in "kernel /boot/vm<tab> root=/dev/hda1", where the 1 in "hda1" refers to the same disk as the root command you just gave. (hda1 = hd0, hda2 = hd1, hda3 = hd2 ...) The "<tab>" represents using tab-completion to get the full filename. The full filename should be something like "/boot/vmlinuz-version-foo-bar-stuff.gz."
  4. Finally enter in "boot" and the computer should boot.


The Grub Menu

To avoid entering in these commands every time you boot the computer, edit the file "/boot/grub/menu.lst" (sometimes /boot/grub/grub.conf). The syntax is pretty obvious: you just have to list out the commands that you want to run in the correct spot.

Personal tools