LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-29-2008, 10:48 PM   #1
huahd
LQ Newbie
 
Registered: Jan 2008
Posts: 27

Rep: Reputation: 15
GRUB corrupted because of a PQ operation.


Hi!
Yesterday I resized an FAT32 partition and gained 10GB which I formatted as an EXT-2 using PQ7.0.At the end of the operation,PQ threw an error:
Quote:
Error #510
The version of the file system is not supported
But the new partition looked okay,anyway.
After restarting,I found my system couldn't boot any longer,even to my WinXP.It just kept rebooting,again and again.Then I booted my system under DOS and ran fdisk /mbr.Then I can successfully boot into Windows.
Not wanting to re-install my fedora,I inserted the Fedora DVD and chose to rescue my corrupted fedora,maybe just corrupted GRUB.I used the following commands:
Quote:
sh-3.2#chroot /mnt/sysimage
sh-3.2#grub-install /dev/sda
sh-3.2#exit
Then I can see the GRUB menu showing three Fedora items--I only installed one, three is because of the system update--and WinXP item.But none of the three fedora items could work,and the error message is:
Quote:
kernel /vmlinuz-2.6.27.5-41.fc9.x86_64 ro root=/dev/VolGroup00/LogVo100 rhgb quiet
Error 15:File not found
I want my fedora back!

Last edited by huahd; 12-02-2008 at 09:38 AM.
 
Old 11-30-2008, 04:38 AM   #2
cdnLilwolf
Member
 
Registered: Jan 2006
Location: Canada
Distribution: Kubuntu 11.10
Posts: 31

Rep: Reputation: 15
Insert disc again and go to Rescue mode.

Try re-assigning where the root directory and MBR is. On my installation I would do the following...

chroot /mnt/sysimage
grub
root (hd2,0)
setup (hd0)
quit

whereas hd2 = my third hard drive and 0 = partition where /boot/grub is. The setup command sets what drive the MBR is on.
 
Old 11-30-2008, 10:09 PM   #3
huahd
LQ Newbie
 
Registered: Jan 2008
Posts: 27

Original Poster
Rep: Reputation: 15
thank you, I'll try.

Last edited by huahd; 11-30-2008 at 10:13 PM.
 
Old 11-30-2008, 10:10 PM   #4
huahd
LQ Newbie
 
Registered: Jan 2008
Posts: 27

Original Poster
Rep: Reputation: 15
OK,this is what I got on the screen.I used fdisk to show my partitions,as follows:
Quote:
Device Boot Id System
/dev/sda1 * 7 HPFS/NTFS
...
/dev/sda7 83 Linux
/dev/sda8 83 Linux
/dev/sda9 8e Linux LVM
sda8 is the swap,and I'm sure sda9 is where my fedora resides in.

I tried what you said and got the following results:
Quote:
sh-3.2#grub
grub>root (hd0,8)
root (hd0,8)
Filesystem type unknown,partition type 0x8e
grub>setup (hd0)
setup (hd0)
Error 17:Cannot mount selected partition
And now my system still doesn't work.

Last edited by huahd; 12-08-2008 at 09:02 AM.
 
Old 11-30-2008, 10:20 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
sda9 is the wrong partition - grub can't deal with LVMs. You must have put /boot somewhere else.

You could mount the various linux partition and have a look at each in /boot for your Fedora kernels, or from the grub command line

find vmlinuz-2.6.27.5-41.fc9.x86_64
 
Old 12-01-2008, 12:38 AM   #6
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Rep: Reputation: 16
Hi,

Try to find out where your "/boot" lives.
You can do this from grub> prompt :

Quote:
grub> find /boot/grub/stage1
or grub> find /grub/stage1
This will gives you the partition where your stage1 resides.
Use this partition in your "root statement : grub>root (hdx,y)"

And afterwarts you can do : grub> setup (hd8)


When you have done this : be sure your /etc/fstab points (mounts) to the right /boot partition.

Also try following to show the layout of you HD :

Quote:
/sbin/fdisk -lu
 
Old 12-02-2008, 10:39 AM   #7
huahd
LQ Newbie
 
Registered: Jan 2008
Posts: 27

Original Poster
Rep: Reputation: 15
chipotphe:
I just did what you said and the result is(under Fedora9 installation CD's rescue mode)
Quote:
sh-3.2#find /boot/grub/stage1
/boot/gurb/stage1
It doesn't tell me about the partition where /boot resides in.
And I do believe /boot lies in /dev/sda9,as I mentioned above.
You also mentioned /etc/fstab.Well,I viewed this file and here are its contents:
Quote:
/dev/VolGroup00/LogVo100 / ext3 defaults 1 1
UUID=6d8672c6-aade-485e-ba8a-66530e46e8c8 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVo101 swap swap defaults 0 0
Is this supposed to be right?
 
Old 12-02-2008, 02:57 PM   #8
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Rep: Reputation: 16
I wrote :
Quote:
grub> find /boot/grub/stage1
or
grub> find /grub/stage1
not :
Quote:
sh-3.2#find /boot/grub/stage1
/boot/gurb/stage1
grub> means : you must beat grub cli.

How to get in grub cli ?

start grub with
# /sbin/grub



you can do then
Quote:
grub> root (hdx,Y) (from info of find /../stage1)
grub> setup (hdx)
to setup grub in MBR
 
Old 12-02-2008, 08:36 PM   #9
huahd
LQ Newbie
 
Registered: Jan 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Sorry to make you confused.
What I mean is that I input as follows:
Quote:
sh-3.2#find /boot/grub/stage1
then pressed enter and the system answered:
Quote:
/boot/grub/stage1
immediately in the next line.And there was no other information.
I'm now thinking about the meaning of
Quote:
UUID=6d8672c6-aade-485e-ba8a-66530e46e8c8 /boot ext3 defaults 1 2
in the file /etc/fstab.

Last edited by huahd; 12-02-2008 at 08:41 PM.
 
Old 12-02-2008, 08:38 PM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You missed the line that said
Quote:
start grub with
# /sbin/grub
 
Old 12-03-2008, 04:48 AM   #11
cdnLilwolf
Member
 
Registered: Jan 2006
Location: Canada
Distribution: Kubuntu 11.10
Posts: 31

Rep: Reputation: 15
Huahd, you need to understand that Grub in of itself is almost a mini-OS and you must run the commands we spoke of from it. Therefore, if your prompt is "sh-3.2#", you are not there.

Go back to Rescue mode and do the "chroot /mnt/sysimage" part. Then type the following.

grub (or /sbin/grub)

You will now get the "grub>" prompt. After that, you can perform the other functions like

"find /boot/grub/stage1"

with the information from the above you can then set where your root and setup partitions are.
 
  


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 corrupted......help ashwinidubey Linux - Newbie 3 06-23-2008 01:46 AM
Recovering corrupted grub sunils1973 Debian 5 03-02-2008 10:31 PM
corrupted grub loader ti479 Linux - Software 2 11-28-2006 05:52 PM
corrupted NTFS partition. could it be GRUB? alesz Linux - General 7 03-24-2006 09:46 AM
Grub loader corrupted reply2vinay Linux - Software 3 09-20-2005 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:10 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