LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 10-12-2007, 07:27 PM   #1
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
How to reinstall grub?


I am using dual OS are Fedora 7 and Windows Vista
When I am running fsck to check/repair file system, I pressed Ctrl + C or Ctrl + Z to quit, but it not work, finally I pressed Power and restart.

I get error:
Quote:
GNU GRUB version 0.97 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub>
I found the topic: http://ubuntuforums.org/showthread.php?t=168241
but when I typed:
Code:
root (hd0,2)
I get message:
Quote:
File system type unknown, partition type 0x83
I wonder that, because I am running fsck --> pressed Power --> file system at sda3 partition may be corrupted --> The system unknown

How do I reinstall grub or repair all incorrupted inode at sda3 partition to may be boot the F7? Thank in advance
 
Old 10-12-2007, 07:55 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Grub appears to be installed and running.
Boot from the install disk and enter "linux rescue" at the boot: prompt.
From there you can examine your drives ... fsck etc. This will tell you if the fs has become corrupt.

This is where people start rabbiting on about backups...
 
Old 10-12-2007, 10:45 PM   #3
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Original Poster
Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by Simon Bridge View Post
Grub appears to be installed and running.
Boot from the install disk and enter "linux rescue" at the boot: prompt.
From there you can examine your drives ... fsck etc. This will tell you if the fs has become corrupt.

This is where people start rabbiting on about backups...
After booting from Knoppix and running fsck to fix incorrupted inode, I typed:
Code:
mkdir /mnt/temp
mount /dev/sda3 /mnt/temp
chroot /mnt/temp
but I get error:
Quote:
chroot: cannot run command '/bin/bash': No such file or directory
or If I typed:
Code:
chroot /mnt/temp /sbin/grub-install /dev/sda3
I get error:
Quote:
chroot: cannot run command '/sbin/grub-install': No such file or directory
When I run:
Code:
find /boot/grub/stage1
I get error:
Quote:
find: /boot/grub/stage1: No such file or directory
Please help me,
 
Old 10-13-2007, 04:21 PM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
mount /dev/sda3 /mnt/temp
ls /mnt/temp
ls /mnt/temp/boot

i.e. make sure that /dev/sda3 is still your root partition and check the files are still there.

Last edited by Simon Bridge; 10-13-2007 at 04:22 PM.
 
Old 10-14-2007, 12:23 AM   #5
jzimm0007@msn.com
Member
 
Registered: Aug 2007
Location: Hamilton, OH
Distribution: fedora 8
Posts: 31

Rep: Reputation: 15
I had to reinstall grub. I thought I had lost everything. I think I had just installed wine. I found this: http://muhdzamri.blogspot.com/2007/0...ring-grub.html I think in your case it would be /dev/sda3. It worked for me!!
 
Old 10-14-2007, 08:08 AM   #6
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Original Poster
Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by Simon Bridge View Post
mount /dev/sda3 /mnt/temp
ls /mnt/temp
ls /mnt/temp/boot

i.e. make sure that /dev/sda3 is still your root partition and check the files are still there.
Code:
ls /mnt/temp
.
..
lost + found
I think after running e2fsck, sda3 partition has problem, grub failed so I can't boot

I have downloaded the Fedora 7 Rescue CD and login the rescue mode. but I get error:
Quote:
You do not have any Linux partitions. Press return to get a shell. The system will reboot automatically when you exit from the shell
Is there any other ways except for reinstall the fresh Fedora 7?

Last edited by quanta; 10-15-2007 at 02:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Reinstall grub jaygee02 Ubuntu 4 01-22-2007 02:01 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
GRUB Reinstall scripts Linux - Software 1 02-21-2005 06:55 PM
how to reinstall grub? Pimp Linux - General 1 08-04-2003 04:35 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration