Solved

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

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

691 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