LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2010, 01:05 PM   #1
Duy3
LQ Newbie
 
Registered: May 2010
Posts: 14

Rep: Reputation: 0
restoring grub2


I ran fsck despite *** SEVERE DAMAGE *** warning, and it did some ugly things, and now I have no grub. (only later I learned the propper way to check disk)

So I restored mbr with win xp setup disk.

Is it fixable?

I tried with linux live (knoppix) but I've got nowhere.
 
Old 09-05-2010, 01:13 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Have a look here:
https://wiki.ubuntu.com/Grub2
 
Old 09-05-2010, 02:50 PM   #3
Duy3
LQ Newbie
 
Registered: May 2010
Posts: 14

Original Poster
Rep: Reputation: 0
I dont have ubuntu cd but I do have some old live cd: knoppix.

From there, I can run grub, grub-install, mount and such.

Lost partition is /dev/hda2 but can not be mounted:
mount: wrong fs type, bad superblock, or too much mounted drives [sic]
Why is that?

...I have no problem mounting /dev/hda1 (ntfs)

grub-install reports something like unable to write /boot/grub...

fdisk says nothing is wrong with the partition.

Once I boot linux from hard drive it should be easy to upgrade grub2 from there.

So, how do I set up old grub, not grub2?
 
Old 09-05-2010, 03:16 PM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
All you need is a live cd that uses grub2, an old knoppix cd will probably have grub legacy. ubuntu uses grub2 and a few others. Which distro do you have using grub2?

Here is some documemtation and link to download grub2.

grub2

Last edited by Larry Webb; 09-05-2010 at 03:23 PM.
 
Old 09-05-2010, 03:22 PM   #5
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
What distro is on /dev/hda2? Knoppix? What filesystem is on /dev/hda2, ext2, reiser ...?
If you cannot mount the OS partition then you won't be able to restore grub. So you have to fix this issue first.
And please give more info on the commands that you issued and what the result was.
 
Old 09-05-2010, 03:29 PM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Seems to me there are two problems here.

(1) The Partition hda2 where Linux is residing is corrupted and cannot be mounted.

This is a killer. If you you cannot mount the Linux partition you cannot restore Grub2 as it needs the hard disk address of its second stage core.img.

(2) The source of Grub2 is unclear.

AFAIK Knoppix is nowhere near offering Grub2 so the original distro CD or DVD should be used. Although the package installer can install Grub2 but some supporting files may be missing if the distro has been configured to run only Grub1.

If the above are true then a re-installation can be more productive.
 
Old 10-09-2010, 12:34 PM   #7
Duy3
LQ Newbie
 
Registered: May 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Looks like the partition (was) corrupted.

No further help required, thanks people!

And my advice to all:

BEWARE of disk check, mind the warnings

But maybe it wasnt diskchecks foult, since there was loads of bad sectors on this disk.
This being an old notebook and all... so suprise.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub vs grub2 miros84 Linux - Software 6 11-21-2014 02:26 AM
Grub2 SlackBuild linus72 Slackware 2 09-04-2010 02:43 PM
grub2 psmurthy Linux - Newbie 2 03-16-2010 11:20 AM
GRUB2 - Howmany thebob Linux - General 5 01-16-2010 05:05 PM
grub2 mbvo Slackware 7 11-12-2009 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration