This shows you the differences between two versions of the page.
| — |
blog:linux:restore_grub [2008/01/13 16:57] (current) donginn created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Restore grub ====== | ||
| + | Sometimes, you may mess up with your grub and you can not even boot up your system because of the broken grub. | ||
| + | |||
| + | Here is a simple way to restore or re-setup grub. | ||
| + | - Boot up your system with the first install CD or DVD to go to the rescue mode (e.g., linux rescue) | ||
| + | - Let the rescue mode mount your linux partition(your root(/) partition) to /mnt/sysimage. | ||
| + | - chroot /mnt/sysimage | ||
| + | - grub-install /dev/hda <= if your grub is not installed/messed up, try to reinstall it | ||
| + | - grub | ||
| + | - root (hd0,1) <= The first number indicates the disk and second one is for the boot partition | ||
| + | - setup (hd0) | ||
| + | - quit | ||
| + | - And get out of the rescue mode and then boot up your system without your installation CD / DVD | ||
| + | |||
| + | ~~DISCUSSION~~ | ||