Solved

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

Posted on 2008-10-25
2
685 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
awk variable in printf 1 43
AWS EC2 HTTP & HTTPS 2 78
SMB share across internet 15 83
Linux 3 36
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

733 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