Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 17-11-2006, 02:28 PM   #1 (permalink)
Beneath The Eyelids
 
The Outsider's Avatar
 
Join Date: Aug 2006
Posts: 289
Unhappy Grub restoring problem


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.
The Outsider is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 19-11-2006, 03:24 PM   #2 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Re: Grub restroing problem

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

Quote:
find /boot/grub/stage1
this will return a location(s)
then type
Quote:
root (hdx,y)
where x and y are the respective values returned by the find command.
saurabh.sauron is offline  
Old 19-11-2006, 08:47 PM   #3 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default 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.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 23-12-2006, 09:31 PM   #4 (permalink)
In The Zone
 
bizzare_blue's Avatar
 
Join Date: Aug 2004
Location: Lucknow
Posts: 246
Default Re: Grub restroing problem

Quote:
Originally Posted by QwertyManiac
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?
__________________
Bitten by the open-source bug...
bizzare_blue is offline  
Old 23-12-2006, 09:50 PM   #5 (permalink)
Beneath The Eyelids
 
The Outsider's Avatar
 
Join Date: Aug 2006
Posts: 289
Default Re: Grub restoring problem

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.
The Outsider is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by clmlbx
- by icebags
- by Sujeet

Advertisement




All times are GMT +5.5. The time now is 10:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2