Differences

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~~
blog/linux/restore_grub.txt · Last modified: 2008/01/13 16:57 by donginn
Back to top
Open Systems Lab
Indiana University Computer Science Department
Lindley Hall 215
150 S. Woodlawn Ave.
Bloomington, IN 47405-7104

chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0