Link to home
Start Free TrialLog in
Avatar of CahitEy
CahitEy

asked on

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
Avatar of Kruger_monkey
Kruger_monkey
Flag of United Kingdom of Great Britain and Northern Ireland image

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.

Avatar of CahitEy
CahitEy

ASKER

nope only the grub screen
Avatar of ajay_mhasal
Avatar of CahitEy

ASKER

Check this out please
grub.png
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.
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.
Avatar of CahitEy

ASKER

it returned only hd(0,0)
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.
Avatar of CahitEy

ASKER

error 8 : kernel must be loaded before booting
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
Avatar of CahitEy

ASKER

I am using fedora over vmware and i mounted the iso but it still directly goes to grub screen
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.
Avatar of CahitEy

ASKER

i am checking also please find me a way all my sites down :(
Avatar of CahitEy

ASKER

This works on irst installationf of guest os
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
Hi,

Otherwise download rescue cd for your fedora version and burn it if it is very urgent.
Avatar of CahitEy

ASKER

i have opened now in live mod there was no rescue opt. like cent os i will check from terminal
Avatar of CahitEy

ASKER

do you know how could i open in rescue mode on fedora12
HI,

When you boot from the cd there may be a menu and you need to select rescue mode from that menu.
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).
Avatar of CahitEy

ASKER

check this :(
fd.png
Hi,

Also have look at "16.2.1. Reinstalling the Boot Loader" mentioned in above URL
Avatar of CahitEy

ASKER

i could not open rescue mode :(
Avatar of CahitEy

ASKER

the problem there is no boot prompt
boot from installation cd  Fedora-12-i386-DVD.iso or Fedora-12-x86_64-DVD.iso
chose rescue existing system
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
Avatar of CahitEy

ASKER

I am downloading now i will check in ten minutes
Avatar of CahitEy

ASKER

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
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.
Avatar of CahitEy

ASKER

i have got an email is not that you ?
Avatar of CahitEy

ASKER

no problem for one time i was using ee for a long time as a premium
Avatar of CahitEy

ASKER

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
Hit enter

# chroot /mnt/sysimage
# grub-install /dev/hda  ( use /dev/hda for ide or /dev/sda for sata)
# exit
# reboot
Avatar of CahitEy

ASKER

I have this screen but still returns to the grub :(
fd.png
Now review file "/boot/grub/grub.conf" if it looks fine type reboot.
Avatar of CahitEy

ASKER

grub.conf is empty :S
Past output of following cmds here

# fdisk -l

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

# fdisk -l

# ls -R /boot
Avatar of CahitEy

ASKER

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
Avatar of CahitEy

ASKER

# ls -R /boot result
fd.png
Hi,

R u sure your grub.conf is empty, try

# cat /boot/grub/grub.conf
Avatar of CahitEy

ASKER

nothing returned and i checked with vi still empty
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
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!
Avatar of CahitEy

ASKER

I wrote the grup.conf and this is the final which one do i select ?
fd2.png
Avatar of CahitEy

ASKER

i tryed both and the image adresses are wrong in my opinion where could i find the img adresses ?
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>
Hi,

Correct image names are in ur screen shots provided earlier.
Avatar of CahitEy

ASKER

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
can you give a screen shot of your grub.conf now ?
Avatar of CahitEy

ASKER

i only changed

initrd /initrd-2 xxxxxx
to
initrd /initfarms-2.6.32.9-70.fc12.i686.img
fd.png
Avatar of CahitEy

ASKER

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
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
Avatar of CahitEy

ASKER

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 :(
Avatar of CahitEy

ASKER

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
under /boot see picture above
Avatar of CahitEy

ASKER

:(((((
i checked kernel is ok but i still got the kernel must be loaded before initrd
fdd.png
Avatar of CahitEy

ASKER

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 ?
Avatar of CahitEy

ASKER

last screen
sss.png
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
Avatar of CahitEy

ASKER

i am not able to return grub now but it wrote hd0,0
what do you mean  can not return to grub ?
can' t you press esc
grub> find /grub/stage0
gives ?
grub> find /grub/stage1
gives ?
Avatar of CahitEy

ASKER

for both of them error 15 file not found :(:(:(:(
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
Avatar of CahitEy

ASKER

it is already root (hd0,0)  
and i have only one hdd :(
ASKER CERTIFIED SOLUTION
Avatar of m203hcon
m203hcon
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CahitEy

ASKER

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