?
Solved

Kernel update, system (Debian) doesn't boot anymore

Posted on 2008-10-25
2
Medium Priority
?
692 Views
Last Modified: 2013-12-06
Kernel was 2.4.18-bf2.4, excecuted

apt-get install grub
grub-install

apt-get install linux-image-2.6.18-6-686

So far so good. When I boot however, I get stuck in a grub command prompt. What i did there was

root (hd0,0)       result from "find /boot/grub/stage1"
setup hd0
kernel /vmlinuz-2.6.18-6-686 root=/dev/hda1         (i had 2 partitions / and /home they're on an IDE disk)

initrd /initrd.img-2.6.18-6-686

So far so good, no error messages, just confirmation messages.

Now when i boot, i get a message "waiting for root file system"...and after a few minutes i fall into the busybox shell. Nothing i do there seems to have any effect.

Booting into the old kernel also doesn't work because i've no initrd of it. Can i create this in the shell ? i suppose not? Why is the root file system not working, but the vmlinuz file in /boot can be found? /boot is not a seperate partition.

How can i boot into the old kernel?
what mistakes did i make in upgrading from 2.4 to 2.6?

Does anybody have any ideas?
0
Comment
Question by:Xyptilon2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
ben-gur earned 2000 total points
ID: 22804748
Boot from the first installation CD, but instead of starting the installation type "linux rescue" to start the command prompt rescue mode.
Run chroot to set the / directory:
chroot /mnt/sysimage
See if you can install grub again:
/sbin/grub-install /dev/hda
This should have fixed the problem.

If not, boot again to "rescue mode". Execute "grub". Then install grub using this commands:
grub> device (hd0) /dev/hda1
grub> root (hd0,0)
grub> setup (hd0)
Should also work...

Here is a comprehensive guide for solving problems with grub:
http://www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/6527-howto-solve-boot-problems-grub.html

Good luck,
Adam.
0
 
LVL 13

Author Closing Comment

by:Xyptilon2
ID: 31509988
Didn't solve the problem, but i think it was unsolvable, thankfully it was a test machine that was being phased out so no harm done. Just installed a new system from scratch, thanks for the link though :)
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 9 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question