Fedora Linux Support Community & Resources Center
  #1  
Old 2nd January 2008, 10:48 PM
rhb100 Offline
Registered User
 
Join Date: May 2006
Location: West Covina, CA
Posts: 63
Kernel File Not Found After grub.conf Kernel Command

This Post might be more appropriate as a new thread but I searched long and hard and found no instructions on starting an new thread in any of the FAQ's.
I am getting a file not find when I attempt to boot into Linux Fedora Core 5 when I use the following grub.conf file.
__________________________________________________ _________________________________
default=0
timeout=5

title Windows XP
rootnoverify (hd0,0)
chainloader +1

title Linux Fedora Core 5
root (hd1,2)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/hdb3
# kernel /kernel-2.6.15-1.2054_FC5 ro root=/dev/hdb3
# initrd /vmlinuz-2.6.15-1.2054_FC5.img
__________________________________________________ _________________________________

As indicated above, I have Windows XP on (hd0,0), /dev/hda. From /, I used
grub-install --recheck /dev/hda to install grub into the Master Boot Record of /dev/hda and I am able to boot into Windows XP when I select it or by way of the default when I timeout. However, I get a file not found error after the kernel command when I use
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/hdb3
and also when I use
kernel /kernel-2.6.15-1.2054_FC5 ro root=/dev/hdb3 . I used
rpm -qa | grep kernel
as Bob mentioned in a post. I got the result, kernel-2.6.15-1.2054_FC5, but I was not sure whether you were supposed to change it to vmlinuz-2.6.15-1.2054_FC5. Since neither one worked, in addition to this uncertainty there are apparently other problems.

The size and type of the partitions on /dev/hdb are indicated below.

Partition Size Type
hdb1 94MB HPFS/NTFS
hdb2 1.95GB ext2 Linux Swap
hdb3 55.22GB ext2

I originally had my boot partition on hdb1 and it was working fine, but it was overwritten from Windows XP storage management.

Suggestions on what I should do to fix the problem of not being able to boot into Linux other than through system rescue would be appreciated.
Reply With Quote
  #2  
Old 2nd January 2008, 11:05 PM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,330
The 'secret' to posting is to click on the Forums link above and then select the right Forum for your post. Then look at the top left and you'll see the New Topic button. Click on it and post away! Since you gave it your best shot at making it work, I've 'split' off your post from the other thread and created a new one for you.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #3  
Old 2nd January 2008, 11:10 PM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,330
Hopefully, you're not just installing Fedora Core 5, since it's no longer supported and won't be much use to you as a new distro. If so, you should be at least installing Fedora7 or Fedora8.

That said, you're going to have to 'uncomment' (remove the #) from in front of your 'initrd' line to make things work, assuming that you do have the right kernel, partition and drive number there.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #4  
Old 3rd January 2008, 03:05 AM
rhb100 Offline
Registered User
 
Join Date: May 2006
Location: West Covina, CA
Posts: 63
With Initrd Command, Grub Kernel File Still Not Found

Thank you Bob for your responses on Grub and Forum use. As you suggested, I removed the comment from the initrd line, but I still had the same problem. When I selected Linux Fedora Core from the Menu, it showed file not found right after the kernel command. It apparently never got to the initrd command. I assume the ro root=/dev/hdb3
at the end of the kernel command is correct. hdb1 is an NTFS partition. hdb2 is a Linux Swap partition. hdb3 is an ext2 partition which has all my files but I don't know what directory the file, kernel-2.6.15-1.2054_FC5 is in. Could the fact that I am changing the boot drive from /dev/hdb1 to /dev/hdb3 be causing any problem?

This Fedora Core 5 is what I have had for the past year or two and has been working fine. The size and type of the partitions on /dev/hdb are indicated below.

Partition Size Type
hdb1 94MB HPFS/NTFS
hdb2 1.95GB ext2 Linux Swap
hdb3 55.22GB ext2

I originally had my boot partition on hdb1 and it was working fine, until it was overwritten from Windows XP storage management.
Reply With Quote
  #5  
Old 3rd January 2008, 03:24 AM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,330
Here's a grub.conf with exactly the same kernel. You can see if you'll need to make corrections/copy/paste and adjust for your drive/partition. http://fedoraforum.org/forum/showthread.php?t=124198

BTW, you are sure you still have that kernel, right? Not an old one that's been removed by Fedora with updates?
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #6  
Old 3rd January 2008, 03:36 AM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
The kernel and initial ramdisk files can be in only one place: /boot. That can either be a separate boot partition or a directory in the in the root partition. Under normal circumstances, if you do not have a separate boot partition then /boot must be in the path of the kernel and initrd lines of the grub.conf. Examples...

Separate boot partition:
Code:
kernel /vmlinuz-[version stuff] [parameters]
initrd /initrd-[version stuff].img
No separate boot partition:
Code:
kernel /boot/vmlinuz-[version stuff] [parameters]
initrd /boot/initrd-[version stuff].img
But your boot partition was destroyed, and you never explained how you recovered from that. The real problem in this case could be that the files don't exist anywhere. What did you do after the boot partition was destroyed to recover from that?
Reply With Quote
  #7  
Old 4th January 2008, 07:30 PM
rhb100 Offline
Registered User
 
Join Date: May 2006
Location: West Covina, CA
Posts: 63
Boot Files Need to be Re-created

Stoat, I thank you for responding. You are right the kernel file, the initrd file, and others in the boot partition were destroyed. I have not been able to recover from that. I tried to use restore but I could not find these files in the file volumes created by the backup program dump. This is apparently because I performed a dump from / in hdb3 and it didn't backup the files in the boot partition, hdb1. Do you know of any method of restoring the boot partition files while working in the rescue mode or have other suggestions?

Last edited by rhb100; 5th January 2008 at 09:51 PM.
Reply With Quote
  #8  
Old 4th January 2008, 08:25 PM
philip4567 Offline
Registered User
 
Join Date: Mar 2006
Posts: 57
I think the easiest thing would be to go into windows, copy all your /home/[user] files into your windows partition and re-install.

When I used to boot into windows and linux from there same machine, I used "explore2fs" to do this.
You can download it from here: http://uranus.it.swin.edu.au/~jn/lin...ore2fs-old.htm
Reply With Quote
  #9  
Old 4th January 2008, 08:37 PM
rhb100 Offline
Registered User
 
Join Date: May 2006
Location: West Covina, CA
Posts: 63
OK, phillip4567, thank you for responding. You may be right. I also have "explore2fs". It is a good tool and I do have a 250GB hard drive for Windows XP. If I do reinstall, I hope I can find a Fedora version which has the ability to read NTFS. It took some time to get that installed and working on my Fedora Core 5.
Reply With Quote
  #10  
Old 4th January 2008, 08:40 PM
philip4567 Offline
Registered User
 
Join Date: Mar 2006
Posts: 57
Quote:
Originally Posted by rhb100
I hope I can find a Fedora version which has the ability to read NTFS. It took some time to get that installed and working on my Fedora Core 5.
I believe it's no problem with Fedora 8. I've not had opportunity to try it, though.
Reply With Quote
Reply

Tags
command, file, grubconf, kernel

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
installed kernel, grub.conf has gone... skizzo Installation and Live Media 7 14th January 2007 09:56 AM
Can not boot new KERNEL > Error 15: File not found > but the file exist marxiano533 Using Fedora 0 22nd June 2006 05:50 PM
No grub.conf after 667 to 681 kernel zagzigger Installation and Live Media 3 29th December 2004 09:56 AM


Current GMT-time: 22:50 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat