DIGIT-ARC read-only archive · snapshot: July 23, 2026

Grub restoring problem

5 posts · originally from https://geek.digit.in/community/threads/grub-restoring-problem.41478/

The Outsider
The Outsider Original post #1
Nov 17, 2006 at 2:28 PM
reinstalled windows and then tried to restore grub,

my root partition is /dev/hdb4

first i tried the Kubuntu Edgy alternate install cd from which i had installed the distro.
Entered the rescue mode and tried to install the grub on mbr (/dev/hdb), after 50% i got an error, "grub-install failed and returned with an error code 20", then with the same options i tried it on root partition (/dev/hdb4), same error.

then i tried the dapper live shipit cd.
"sudo grub-install /dev/hdb"
got an error "the file /boot/stage2 could not be read properly"

"sudo grub-install /dev/hdb4"
got the same error "the file /boot/stage2 could not be read properly"

tried the other thing
"sudo grub"
"setup /dev/hdb"
got some wierd error which said the same thing /boot/stage2 could not be read proerply.


btw, instead of "/dev/hd*" notation i tried every method with the grub notation i.e. "(hd0,4)" etc but the same errors.

thanks for your time mates.
saurabh.sauron
Nov 19, 2006 at 3:24 PM
Re: Grub restroing problem

try this...(always works for me)
after 'sudo grub', type this command.

find /boot/grub/stage1

this will return a location(s)
then type
root (hdx,y)

where x and y are the respective values returned by the find command.
QwertyManiac
Nov 19, 2006 at 8:47 PM
Re: Grub restroing problem

A newbish way to restore grub is like this:

1. Boot your computerr with Ubuntu CD.
2. Go through the install process until you reach "[!!!] Disk Partition."
3. Select Manually Partition.
4. Mount the appropriate linux partions:
/
/boot
swap
DO NOT FORMAT THEM
5. Finish the manual partitioning.
6. Select "Yes" when it asks you to save the changes.
7. It will give you errors saying that "The system couldn't install ....." after that; ignore them. Proceed with selecting "continue" until you get back to the Ubuntu installation menu.
8. Jump to "Install GRUB."
9. Once it is finished, simply restart your computer.
bizzare_blue
Dec 23, 2006 at 9:31 PM
Re: Grub restroing problem

QwertyManiac said:
A newbish way to restore grub is like this:

1. Boot your computerr with Ubuntu CD.
2. Go through the install process until you reach "[!!!] Disk Partition."
3. Select Manually Partition.
4. Mount the appropriate linux partions:
/
/boot
swap
DO NOT FORMAT THEM
5. Finish the manual partitioning.
6. Select "Yes" when it asks you to save the changes.
7. It will give you errors saying that "The system couldn't install ....." after that; ignore them. Proceed with selecting "continue" until you get back to the Ubuntu installation menu.
8. Jump to "Install GRUB."
9. Once it is finished, simply restart your computer.

U say that I should not format them...wen I uncheck the "reformat" option...it says that "/ and /boot" should b reformatted...how do I config this?
The Outsider
Dec 23, 2006 at 9:50 PM
those instructions were for the alternate install cd not the live cd.

for live cd you can a do a grub-install from the terminal.