Search

How to restore grub in Ubuntu/Debian based Linux distributions PDF Print E-mail
User Rating: / 1
PoorBest 
How to ? - Linux
Saturday, 04 July 2009 06:36

This tutorial explains how to restore GRUB, the default boot loader in Ubuntu/Debian distros. The best way is to boot from a Live CD. When you get to the desktop open a terminal and enter.

          sudo grub

This will give you the grub prompt. There type the following command to find where the grub is installed.

          find /boot/grub/stage1

 

 

The command will return a location. If you have more than one, select the installation that you want to provide the grub files. Here (hd1,7) is the location. Means second hard disk seventh partition.

root (hd1,7)
setup (hd1)

Here it is assumed that the grub is to be loaded to the second hard disk.Make changes as per the out put of find command. Then

quit

 



Add this page to your favorite Social Bookmarking websites
 
Last Updated on Saturday, 04 July 2009 06:45
 

Add comment


Security code
Refresh

We have 114 guests online