LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How to reinstall grub? (https://www.linuxquestions.org/questions/fedora-35/how-to-reinstall-grub-591406/)

quanta 10-12-2007 07:27 PM

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

Simon Bridge 10-12-2007 07:55 PM

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...

quanta 10-12-2007 10:45 PM

Quote:

Originally Posted by Simon Bridge (Post 2922454)
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,

Simon Bridge 10-13-2007 04:21 PM

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.

jzimm0007@msn.com 10-14-2007 12:23 AM

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!!

quanta 10-14-2007 08:08 AM

Quote:

Originally Posted by Simon Bridge (Post 2923231)
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?


All times are GMT -5. The time now is 08:31 AM.