LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error Grub stage2 loading error (using FC6) on seperate hdd (https://www.linuxquestions.org/questions/linux-newbie-8/error-grub-stage2-loading-error-using-fc6-on-seperate-hdd-538454/)

Anifield 03-18-2007 04:19 AM

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
:newbie:

jschiwal 03-18-2007 04:51 AM

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.

Anifield 03-18-2007 07:13 AM

I tried what you have told but got some pretty weird results & new problems
 
Thanks for your prompt help i am very greatful

:confused:
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 :D

Thanking you again!

-------
regards
Anifield
:newbie:

Anifield 03-18-2007 07:25 AM

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
:newbie:

Anifield 03-18-2007 07:25 AM

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
:newbie:

Anifield 03-18-2007 07:33 AM

Sorry for the same message twice
 
i pushed stop & entered the subject that i missed out:eek:
and there were two same messages i dont know if i can delete duplicate messages :D

jschiwal 03-20-2007 02:04 AM

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.

Anifield 03-20-2007 01:14 PM

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.


All times are GMT -5. The time now is 06:46 AM.