LinuxQuestions.org
Help answer threads with 0 replies.
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 03-18-2007, 04:19 AM   #1
Anifield
LQ Newbie
 
Registered: Mar 2007
Location: INDIA
Distribution: Fedora Core 6
Posts: 11

Rep: Reputation: 0
Unhappy Error Grub stage2 loading error (using FC6) on seperate hdd


I have just installed FC6 to a Seperate hdd which i partitioned using windows disk manager from a different hdd having xp.
what i did was i made 3 primary patitions & then deleted the first so there was 20 GB empty space.the remaining two are ntfs.then removing the hdd having windows i installed FC6 using the dvd.
During the installation i selected use empty space & default layout for partitioning.
It was working fine but today in the morning the PC was on & power went out while FC6 was up & running .i tried to start Fedora but it is giving Grub stage 2 error

I have a FC6 bootable dvd with me if needed.

I need to get this running as i am still unable to use modem in FC6 & went to a friend with the cpu to update FC6 with yum as he has Broadband internet.

Please,help needed!
Thanks in Advance.
-------
Regards
Anifield
 
Old 03-18-2007, 04:51 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Your hard drives may have been remapped due to partitioning. In any case, is looks like grub was placed on the wrong partition. With your bootable DVD, enter the grub shell and use auto-completion to search for the correct partition containing your kernel and initrd files.

If you enter the lines like this:
kernel (hd0,3)/boot/vmlinuz-version
initrd (hd0,3)/boot/initrd-version
boot

You may be able to boot up to your installed system and then edit the /boot/grub/menu.lst with the correct values before running the grub-install command.

Please note that I used a dummy value, i.e. (hd0,3), for the location of your partition.

I had a gotcha bite me when installing SuSE Linux on my desktop. When the computer boots, the drives are mapped one way, but after booting they are mapped another. The solution for me was to edit the /boot/grub/device.map file before running grub-install.
 
Old 03-18-2007, 07:13 AM   #3
Anifield
LQ Newbie
 
Registered: Mar 2007
Location: INDIA
Distribution: Fedora Core 6
Posts: 11

Original Poster
Rep: Reputation: 0
Question I tried what you have told but got some pretty weird results & new problems

Thanks for your prompt help i am very greatful


first when i entered the grub shell & gave the command
grub>kernel (hd0, : then pressed tab and got following result

Possible partition are
partition num :0 , Filesystem type unknown,partition type 0x7
partition num :1 , Filesystem type unknown,partition type 0x7
partition num :2 , Filesystem type is ext2fs,partition type is 0x83
partition num :3 , Filesystem type unknown,partition type 0x83

so i put in kernel (hd0,2)/ : then pressed tab
possible files are : lost+found grub .... e.t.c

when i put in vmli : then pressed tab it completed vmlinuz-2.6.18-1.2798.fc6

when i pressed enter it gave an error as follows
Error 13 : invalid or unsupported executable format

i thought i made a typo error so i used the arrow key & found out there was no error so i pushed enter again & to my surprise i got
segmentation fault
repeating again i got
Error 15 : File not found !!!

so i tried to look what file &/or folders are there again on hd0,2 & you wont believe the stuff that it gave out
a part of it is
possible files are : lowt+found grub minitrd-2.6.18-1.2798.fg6xen e.t.c

did you notice the spellings?

any ways when i rebooted the system without dvd to my surprise grub screen showed up with FC6 entry & windows entry too!

so i tried to boot into fc6 but after the message Found two logical volumes ...

it gave an error message

setuproot : error mounting /proc : not a directory
setuproot : error mounting /sys : not a directory

Ext3-fs error(device dm-0):ext3,xattr_block_get : inode 4174289 bad block 4457477
Ext3-fs error(device dm-0):ext3,xattr_block_get : inode 4174289 bad block 4457477

INIT : No inittab file foung

Enter Run Level :


so i put in 5

the outcome was
INIT:
Entering Runlevel 5
INIT: No more processes left in this level


This was the same case with 4 & 2 Each time rebooting

I am sorry cause i am so much descriptive but i have read it many times that give as much information as possible.
Maybe in the future i'll get good at telling more with less words

Thanking you again!

-------
regards
Anifield
 
Old 03-18-2007, 07:25 AM   #4
Anifield
LQ Newbie
 
Registered: Mar 2007
Location: INDIA
Distribution: Fedora Core 6
Posts: 11

Original Poster
Rep: Reputation: 0
Smile

it me again

one thing i forgot to mention above that when i got to grub options i viewed the commands
they were

root(hd0,2)
kernel /xen.gz-2.6.18-2798.fc6
module /vmlinuz-2.6.18-2798.fc6xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
module /initrd-2.6.18-2798.fc6xen.img

savedefault -> this i had put in earlier

i dont know if it will help but i just wanted to give all information i have so that it is easy for people to understand my problem
-------
regards
Anifield
 
Old 03-18-2007, 07:25 AM   #5
Anifield
LQ Newbie
 
Registered: Mar 2007
Location: INDIA
Distribution: Fedora Core 6
Posts: 11

Original Poster
Rep: Reputation: 0
Smile I am sorry i missed out one detail

it me again

one thing i forgot to mention above that when i got to grub options i viewed the commands
they were

root(hd0,2)
kernel /xen.gz-2.6.18-2798.fc6
module /vmlinuz-2.6.18-2798.fc6xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
module /initrd-2.6.18-2798.fc6xen.img

savedefault -> this i had put in earlier

i dont know if it will help but i just wanted to give all information i have so that it is easy for people to understand my problem
-------
regards
Anifield
 
Old 03-18-2007, 07:33 AM   #6
Anifield
LQ Newbie
 
Registered: Mar 2007
Location: INDIA
Distribution: Fedora Core 6
Posts: 11

Original Poster
Rep: Reputation: 0
Exclamation Sorry for the same message twice

i pushed stop & entered the subject that i missed out
and there were two same messages i dont know if i can delete duplicate messages
 
Old 03-20-2007, 02:04 AM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
I've done that also. I usually edit the second one to say "Sorry, duplicate post."

From your latest posts I learned that you have your kernel and initrd files in the root (/) directory rather than a /boot partition. Also that you are using lvm and that you installed a xen kernel. I don't understand why "module" is used on the initrd line.

My grub/menu.lst file also uses the "root (hdX,X)" like yours but mine uses "initrd" instead of "module"
Code:
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.2
    root (hd0,4)
    kernel /vmlinuz-2.6.18.2-34-default root=/dev/hda6 vga=normal showopts ide=nodma apm=off acpi=off noresume edd=off 3
    initrd /initrd-2.6.18.2-34-default
I don't know if this has something to do with xen or not.

Can you boot into rescue mode (or a rescue or live disk) and run fsck on your partitions? I wonder if it was corrupted and the vmlinuz file was corrupted as well. That file in lost&found "minitrd-2.6.18-1.2798.fg6xen" looks like something that may be needed. I wonder if the "m" stands for module.

Does your install disk have a repair option, like SuSE does? If so, it may be able to check if something is missing and fix it. It now looks to me that the problem isn't with the grub configuration but filesystem corruption. I was expecting your old menu.lst file to indicate the wrong partition in the root (hd0,2) line, but that is where you found your kernel. After repartitioning a hard drive, it is usually a good idea to power down the computer. Just to make sure that the BIOS has a current picture of the drives.
 
Old 03-20-2007, 01:14 PM   #8
Anifield
LQ Newbie
 
Registered: Mar 2007
Location: INDIA
Distribution: Fedora Core 6
Posts: 11

Original Poster
Rep: Reputation: 0
Thumbs up Hey

Thanks for your help really.
This was actually my first post & i have started to use linux about 3 months back & i am very very eager to do new things. I thing i made a mistake while installing by using the advanced grub options.
However i got an exernal modem from a friend & thought it would work " many sites say so at least " so i simply reinstalled FC6 & this time i formated the entire 80GB Hdd and used manual partitioning so i am quite happy now.

The problem is the modem i found does not work i have posted in the hardware section.
I am thinking of getting an broadband connection as it shall solve most of my problems & i can use yum to install softwares.
So thanks and hopefully we'll keep in touch. I shall run into problems sooner or later.
 
  


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
Stuck on grub (loading stage2) Crazy_lenny Linux - Hardware 3 06-23-2006 12:13 PM
GRUB Loading stage2.read error?? angstsix Linux - General 2 12-12-2005 10:00 AM
FC4: "GRUB Loading Stage2... read error" at startup Kropotkin Fedora 2 12-01-2005 05:29 PM
GRUB Loading stage2 Error, hard-disk broken ??? jdevitt Fedora 5 09-15-2005 08:54 AM
help! GRUB Stage2 error neolithicvirgo Suse/Novell 18 02-23-2005 11:50 AM


All times are GMT -5. The time now is 05:04 PM.

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