LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2012, 12:09 PM   #1
danndp
Member
 
Registered: Nov 2010
Posts: 51

Rep: Reputation: 2
Kernel must be loaded before booting


Hi, i'm having problems with my server, after rebooting, it goes directly to the GRUB, if i type boot i get:

Error 8: Kernel must be loaded before booting

I also have tried:

grud> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83

grup> setup (hd0)
Checking if "/boot/grub/stage1" exists...no
Checking if "/grub/stage1" exists...no

Error 15: File not Found

What can i do? all the commands fail...

Thanks
 
Old 09-17-2012, 01:23 PM   #2
nileshgr
Member
 
Registered: Aug 2007
Location: Pune, Maharashtra, India
Distribution: Gentoo
Posts: 84

Rep: Reputation: 16
If you have a separate boot partition, enter the following commands:

Code:
root (hd0, 0)
kernel /vmlinuz<tab> root=<root device> [<any other options>]
initrd /initrd<tab>
boot
If you don't have a separate boot partition, just prepend /boot to the above paths, i.e. /boot/vmlinuz and /boot/initrd.

Also, it seems your grub installation has gone kaput. Use the code I posted above to manually boot into your machine and then run grub-install to reinstall grub properly.
 
Old 09-25-2012, 04:06 AM   #3
danndp
Member
 
Registered: Nov 2010
Posts: 51

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by nileshgr View Post
If you have a separate boot partition, enter the following commands:

Code:
root (hd0, 0)
kernel /vmlinuz<tab> root=<root device> [<any other options>]
initrd /initrd<tab>
boot
If you don't have a separate boot partition, just prepend /boot to the above paths, i.e. /boot/vmlinuz and /boot/initrd.

Also, it seems your grub installation has gone kaput. Use the code I posted above to manually boot into your machine and then run grub-install to reinstall grub properly.
No look

Trying to execute

Code:
kernel /vmlinuz<tab> root=<root device> [<any other options>]
Responds with Error 15, File not Found

Even prepending /boot, it's the same behavior...
 
Old 09-25-2012, 04:28 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I'm assuming that everything was once working.

What happened (or what was changed) before this problem appeared?

Regardless, you can boot up from a Linux live CD, mount the server's hard drive, and look for the /boot directory---check there for the kernel and initrd files.

also tell us what the hardware is and what version of Linux.
 
Old 09-26-2012, 07:53 AM   #5
nileshgr
Member
 
Registered: Aug 2007
Location: Pune, Maharashtra, India
Distribution: Gentoo
Posts: 84

Rep: Reputation: 16
Quote:
Originally Posted by pixellany View Post
I'm assuming that everything was once working.

What happened (or what was changed) before this problem appeared?

Regardless, you can boot up from a Linux live CD, mount the server's hard drive, and look for the /boot directory---check there for the kernel and initrd files.

also tell us what the hardware is and what version of Linux.
@OP, follow this. It seems something misplaced your kernel and the only way to fix now is login using live cd/usb, chroot to your distro's partition:

Code:
# mount /dev/foo /mnt/yourdistro
# mount /dev/foo1 /mnt/yourdistro/boot <---- Note, this step is not required if you don't have a separate boot partition.
# mount --bind /dev /mnt/yourdistro/dev
# mount --bind /sys /mnt/yourdistro/sys
# mount --bind /proc /mnt/yourdistro/proc
# chroot /mnt/yourdistro
Once you do that, you will have access to your system.

Depending on your distro, use the relevant package manager command to reinstall kernel; may be using yum/apt/emerge/whatever.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting to CLI on RHEL 6 when GUI is loaded Gypljgm Linux - Newbie 1 03-24-2012 08:21 PM
kernel: No module symbols loaded - kernel modules not enabled. Qucho Debian 9 05-26-2004 02:50 AM
booting new kernel. Booting new kernel dies with INIT: VFS issue, really mus335 Linux - General 0 04-21-2004 11:52 AM
Booting Grub once kernel is loaded. American Psycho Linux - Newbie 2 04-02-2004 11:56 PM
loaded slackware, won't finish booting. stops at cs: IO Port probe Whitehat Slackware 5 10-15-2003 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration