Fedora urgent!!!!

I have made steps given below :

yum install gcc kernel-devel
Check the running kernel matches the kernel headers
uname -r             # running kernel
rpm -q kernel-devel  # installed kernel headers
If the two versions do not match, run
yum -y upgrade kernel kernel-devel
reboot

and then my fedora is not working anymore
it comes with grub> please helpppp
LVL 1
CahitEyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kruger_monkeyCommented:
When it boots up, you should get an option to boot up to the previous kernel.  Right at the beginning as soon as the Fedora Image appears there's normally a 3 or 5 second count down, if you interrupt that you should hopefully be able to select the previous kernel and boot up normally and then resolv the issue.

0
CahitEyAuthor Commented:
nope only the grub screen
0
ajay_mhasalCommented:
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

CahitEyAuthor Commented:
Check this out please
grub.png
0
ajay_mhasalCommented:
Hi,

To find stage1 file in fedora use following command at grub> prompt

grub> find /grub/stage1

and then follow the instructions mentioned in my previous post.
0
ajay_mhasalCommented:
Hi,

Output of above should look like this

grub> find /grub/stage1
find /grub/stage1
 (hd0,0)
 (hd1,0)

In my case there are two entries as i am having two different version of Linux installed, you may find only one entry.
0
CahitEyAuthor Commented:
it returned only hd(0,0)
0
hemmiCommented:
What happens when you type

boot

on the grub prompt?

Next: your one and only partition seems to be (hd0,0), thus the kernel will reside relative to
(hd0,0)/boot
That is:

root (hd0,0)

would be right.
0
CahitEyAuthor Commented:
error 8 : kernel must be loaded before booting
0
ajay_mhasalCommented:
HI,

Actually its a bug and you check more details over here

https://bugzilla.redhat.com/show_bug.cgi?id=450143

The best solution for your problem is to re-install grub, as follows

1. Boot  with 1 cd of OS.

2. on the prompt type
: linux rescue

3. Select language, networking options etc  and finally after booting use

# chroot /mnt/sysimage
# grub-install /dev/hda  ( use /dev/hda for ide or /dev/sda for sata)
# exit
# reboot
0
CahitEyAuthor Commented:
I am using fedora over vmware and i mounted the iso but it still directly goes to grub screen
0
ajay_mhasalCommented:
HI,

Recheck boot option in vmware, and vmware's bios available for linux vm, right now i dont have vmware installed on my system and hence cant chk the exact booting options, still i will try to recollect meanwhile just give a try I am sure that it boots from image also.
0
ajay_mhasalCommented:
0
CahitEyAuthor Commented:
i am checking also please find me a way all my sites down :(
0
CahitEyAuthor Commented:
This works on irst installationf of guest os
0
ajay_mhasalCommented:
Hi,

I dont think so, It should work later also, try once again and when it will boot from the image at the first installation screen where you use to hit enter to begin installation, on that prompt instead of hitting enter you need to type

:linux rescue

and then hit enter
0
ajay_mhasalCommented:
Hi,

Otherwise download rescue cd for your fedora version and burn it if it is very urgent.
0
CahitEyAuthor Commented:
i have opened now in live mod there was no rescue opt. like cent os i will check from terminal
0
CahitEyAuthor Commented:
do you know how could i open in rescue mode on fedora12
0
ajay_mhasalCommented:
HI,

When you boot from the cd there may be a menu and you need to select rescue mode from that menu.
0
hemmiCommented:
You must boot your vmware off the fedora cd. this is either the the real cd/dvd drive connected to your system or an iso image of the fedora cd.
you can configure vmware to use the cd (image).
0
CahitEyAuthor Commented:
check this :(
fd.png
0
ajay_mhasalCommented:
Hi,

Also have look at "16.2.1. Reinstalling the Boot Loader" mentioned in above URL
0
CahitEyAuthor Commented:
i could not open rescue mode :(
0
CahitEyAuthor Commented:
the problem there is no boot prompt
0
m203hconCommented:
boot from installation cd  Fedora-12-i386-DVD.iso or Fedora-12-x86_64-DVD.iso
chose rescue existing system
0
ajay_mhasalCommented:
Hi,

I think you are using Live cd instead of Disc 1 of fc12 download it from here.

http://fedoramirror.hnsdc.com/releases/12/Fedora/i386/iso/Fedora-12-i386-disc1.iso
0
CahitEyAuthor Commented:
I am downloading now i will check in ten minutes
0
CahitEyAuthor Commented:
I have downloaded and do the things given on the site i think we are on the right way please write me an email cahit.eyigunlu @ gmail.com i will send you my remote desktop admin info please check for me it will be complete in a little trick in my opinion
0
ajay_mhasalCommented:
Hi,

But in my opinion you should not give control of your system to anybody (Including me) as it may not secure also it might be  against the policies of Expert Exchange.

Just give a try man, im here to help you out! Dont worry. Its not that difficult.
0
CahitEyAuthor Commented:
i have got an email is not that you ?
0
CahitEyAuthor Commented:
no problem for one time i was using ee for a long time as a premium
0
CahitEyAuthor Commented:
ok then please check this out i have complete the steps as given below but when i restart server it still comes to grub
fd.png
0
ajay_mhasalCommented:
Hit enter

# chroot /mnt/sysimage
# grub-install /dev/hda  ( use /dev/hda for ide or /dev/sda for sata)
# exit
# reboot
0
CahitEyAuthor Commented:
I have this screen but still returns to the grub :(
fd.png
0
ajay_mhasalCommented:
Now review file "/boot/grub/grub.conf" if it looks fine type reboot.
0
CahitEyAuthor Commented:
grub.conf is empty :S
0
ajay_mhasalCommented:
Past output of following cmds here

# fdisk -l

# ls /boot
0
m203hconCommented:
can you do a  ls of /boot/grub/
and see what files are in there
0
ajay_mhasalCommented:
Paste output of following cmds here

# fdisk -l

# ls -R /boot
0
CahitEyAuthor Commented:
Is /boot returns command not found
and fdisk -l result as given below

i am so sorry i take your so much time but i am very very pleasure for your help
fd.png
0
CahitEyAuthor Commented:
# ls -R /boot result
fd.png
0
ajay_mhasalCommented:
Hi,

R u sure your grub.conf is empty, try

# cat /boot/grub/grub.conf
0
CahitEyAuthor Commented:
nothing returned and i checked with vi still empty
0
m203hconCommented:
if grub.conf is emty you can make one with vi
change the vmlinuz and initrd of this file in the last good working kernel version
in this example and it should work
 grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_harryfedora11-lv_root
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.30.10-105.2.4.fc11.x86_64)
        root (hd0,0)
        kernel /vmlin
uz-2.6.30.10-105.2.4.fc11.x86_64 ro root=/dev/mapper/vg_harryfedora11-lv_root rhgb quiet
        initrd /initrd-2.6.30.10-105.2.4.fc11.x86_64.img
title Fedora (2.6.30.10-105.fc11.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.30.10-105.fc11.x86_64 ro root=/dev/mapper/vg_harryfedora11-lv_root rhgb quiet
        initrd /initrd-2.6.30.10-105.fc11.x86_64.img
"grub.conf" 21L, 874C
0
ajay_mhasalCommented:
Hi,

Also i do understand your situation man, i am also working on your problem just to help u out as early as possible and not just to earn the points, i could earn point by providing solution on other questions rather than spending much time on single problem!

Im also a sys and storage admin and i very well understand the ur pressure in such situations!
0
CahitEyAuthor Commented:
I wrote the grup.conf and this is the final which one do i select ?
fd2.png
0
CahitEyAuthor Commented:
i tryed both and the image adresses are wrong in my opinion where could i find the img adresses ?
0
ajay_mhasalCommented:
Hi,

That file is of fc11 and it may not work directly, you need to change according to your environment specially following entries

root (hd0,0)
        kernel /<ur-image>  ro root=< ur root part.>
        initrd /i<ur initrd image>
0
ajay_mhasalCommented:
Hi,

Correct image names are in ur screen shots provided earlier.
0
CahitEyAuthor Commented:
i found this 2 ->
initfarms-2.6.32.9-70.fc12.i686.img
initfarms-2.6.31.5-127.fc12.i686.img

and it returned me error 19 : linux kernel must be loaded before initrd

for both selection
0
m203hconCommented:
can you give a screen shot of your grub.conf now ?
0
CahitEyAuthor Commented:
i only changed

initrd /initrd-2 xxxxxx
to
initrd /initfarms-2.6.32.9-70.fc12.i686.img
fd.png
0
CahitEyAuthor Commented:
The last problem encounter by this line in my opinion :
        kernel /vmlin
uz-2.6.30.10-105.2.4.fc11.x86_64 ro root=/dev/mapper/vg_harryfedora11-lv_root rhgb quiet
0
m203hconCommented:
you should have this
title Fedora (good)
        root (hd0,0)
        kernel /vmlinuz-2.6.31.5-127-.fc12.i686 ro root=/yourdevice rhgb quiet
        initrd /initrd-2.6.31.5-127-.fc12.i686.img
yourdevice you can see with  the command  lvm lvdisplay
0
CahitEyAuthor Commented:
i also install fedora 12 to my system on another vm and i get grub.conf :

default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.31.5-127.fc12.i686)
        root (hd0,0)
        kernel /vmlinuz-2.6.31.5-127.fc12.i686 ro root=/dev/mapper/vg_lin-lv_root noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=trq rhgb quiet
        initrd /initramfs-2.6.31.5-127.fc12.i686.img


but that is not solved :(
0
CahitEyAuthor Commented:
how could i find the kernel sourcs

this part :

 kernel /vmlinuz-2.6.31.5-127.fc12.i686

because i tryed on the grab it returnd me file not found
0
m203hconCommented:
under /boot see picture above
0
CahitEyAuthor Commented:
:(((((
i checked kernel is ok but i still got the kernel must be loaded before initrd
fdd.png
0
CahitEyAuthor Commented:
I found that :

I wrote kernel/vmlinuz
but it must be kernel /vmlinuz

now it returns no error but stays on black screen with only one dot ?
0
CahitEyAuthor Commented:
last screen
sss.png
0
m203hconCommented:
Take a moment to clear it all up by using the find command at that grub> prompt to locate the boot partition and see what GRUB is naming it. Example...
grub> find /grub/stage1
0
CahitEyAuthor Commented:
i am not able to return grub now but it wrote hd0,0
0
m203hconCommented:
what do you mean  can not return to grub ?
can' t you press esc
grub> find /grub/stage0
gives ?
grub> find /grub/stage1
gives ?
0
CahitEyAuthor Commented:
for both of them error 15 file not found :(:(:(:(
0
m203hconCommented:
you need to change root (hd0,0)
if i see it right you have 3 hard disks
do a fdisk -l
to see from wich partition and hard disk you boot
0
CahitEyAuthor Commented:
it is already root (hd0,0)  
and i have only one hdd :(
0
m203hconCommented:
if i check the internet
error 13 unsupported executable format grub
got always to do something with root (hd0,0)  when this is wrong
so root (hd0,x) where x is your partition number should solve the problem
my be it is faster to copy your vmware image for backup (if you want)
install a new fedora 12 (minimum) ad the disk-image from the old one to the new one
boot it up from a live cd and copy all files from the old to the new except /boot
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ajay_mhasalCommented:
Hi,

Boot you machine in rescue mode as we did earlier and paste output of following command.

# cat /etc/fstab

I will try to create a new grub.conf file for you.
0
CahitEyAuthor Commented:
I have installed all system from the begining thanks to god my customers have their backups :D
and now i am getting daily backup of Vm disk

Thanks for your attention
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.