kernel panic boot problem when re-installing grub
Hello, i am new to this site, and i have a problem..
here is the boring story.
I used to have a windows laptop, and i installed fedora core (old version 2 or 3) in an extended partition.
once upon time a have a problem with windows and i reinstalled it, and
guess what (as experienced ones know), i am not able to boot my linux again.
I used RescueCD (fedora-7 i386) to install GRUB into MBR, i succeeded but when i think everything is ok i got the following error when booting my linux..
uncompressing Linux... OK, booting the kernel.
ide2: I/O resource 0x3EE-0x3EE not free
ide2: ports already in use skipping probe
Red Hat nash version 4.1.18 starting
mount: error 22 mounting ext2
mount: error 2 mounting none
switchroot : mount failed : 22
umount /initrf/dev failed : 2
kernel panic - not syncing : Attempted to kill init!
what is this horrible message means???
here is my steps:
(a) my grub.conf:
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,5)
# kernel /boot/vmlinuz-version ro root=/dev/hda6
# initrd /boot/initrd-version.img
kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
title Windows XP Professional
#sudo fdisk -lu
(strange thing is the name of partitions sda and not hda, but when i used kubuntu live cd the above command returns /dev/hda ??? really strange!!)
(c) grub-install /dev/hda
(i got error not a device block...
sda also gives error, but i don't remember)
grub> find /boot/grub/stage1
grub> root (hd0,5)
grub> setup (hd0)
as i said before, i succeeded to install grub, but i can't boot linux
(as i did nothing! :cry:)
any help?? is this problem relative to my grub installation, why is it
sda sometimes and hda other, why my kernel panic????
I think the problem with sda vs. hda is related to libata and the change in convention between /dev/hdX to /dev/sdX that occurred between your old version of fedora and the new distros you're using.
The other thing that comes to mind is that it appears that the security settings you're using are blocking access to the the disk hardware. That's how I would read the
ide2: I/O resource 0x3EE-0x3EE not free
messages. But I'm not sure about that, I don't use PAM or SELinux. I found this with google:
where fixing fstab seemed to solve a similar problem.
If that doesn't work you could mount the partition using Knoppix or another live CD, backup your information you want to save, and reinstall a more up to date distro.
Hope that helps.
thanks for reply...
I remembered another thing.. when i reinstalled windows, i added a second partition.. does this affect my linux...
any explanations... thanks
Read about it here:
PAM and security:
But it may have nothing to do with the ide2 subsystem problem you have. I don't use PAM so I can't answer your question about that. You could try kernel boot options like noacpi to see if that makes a difference. It also could be that the IDE subsystem is already claimed by the libata drive so that the ide driver is being blocked.
Certainly adding a new partition would affect your linux boot, as it would change the partition numbers. But it looks like you already accounted for that. Still, looking at your menu.lst, did you try changing /dev/hda6 to /dev/sda6 and explicitly try to mount using root=/dev/sda6 instead of using the root=LABEL?
You reinstalled a new distro? Is it working now and you're just trying to figure out the old problem?
Sorry if i am late.. Thanks for help mostlyharmless
Now i am able to boot my old Fedora Core 3 again.. and the kernel didn't panic..
I just did as u said..
- change my /etc/fstab:
LABEL=/ TO /dev/hda6
- change /boot/grub/menu.lst
root=LABEL=/ TO root=/dev/hda6
Yes it is /dev/hda not /dev/sda , I guess my OLD fedora recognize it like that.. i don't care..
I'd like to thank u..
but now i want to get rid of my linux... Uninstall Fedora 3 ... i'd like to run New CentOS Linux from VMware..
I want to know if there is a way to restore windows bootloader into MBR, using my old linux, before shooting it.?
I guess i can do that from Windows XP CD also.?
can anyone explain steps???
I know i am juggling alot but u can't learn Otherwise.
You can format the linux partitions using windows or live cds.
And then use xp cd to boot from into rescue mode.
When you get the shell ( command prompt for windows ) just give the command:
This will fix your broken mbr ( according to windows ) and give you a boot loader that windows uses.
I agree with the above: It's probably easiest to use the Windows CD and 'fixmbr'. You certainly can do it with Linux as well, assuming you saved a copy of the MBR before you installed grub, which I'm guessing you didn't...
yes thanks, certainlly i will try doing it using the windows CD,
but before that i want to ask how can i do that in linux..
Yes i didn't save copy of my MBR before.. mostharmless
but i wonder if i can mount my NTFS windows partition and look for boot
files, and restore them into MBR..
Is this possible..
If you had used LILO in the past, prior to GRUB, it automatically saves the MBR as well.
|All times are GMT -5. The time now is 08:35 AM.|