LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-18-2004, 10:36 PM   #1
basetwo
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware
Posts: 1

Rep: Reputation: 0
Problem booting 2.6.2 kernel


In the process of upgrading my 2.4.20 kernel to 2.6.2, I made the bzImage for 2.6.2 and copied it to the /boot directory. Then I configured lilo.conf to boot to this image and ran lilo to finalize the changes. During my first boot of the new kernel, I recieved the following error:

UDF-fs: No partition found (1)
Kernel Panic: Unable to mount root fs on hda2

I failed to make a boot disk, and have not been successful in attempting to access the system by booting the old kernel from the boot prompt of my Slackware 9 installation cd, but I would prefer to keep my data and settings if possible.

Thank you for any help you may offer.
 
Old 03-18-2004, 10:56 PM   #2
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
1. Boot from a live CD like Knoppix, open a root console, then mount the partition hosting / on your harddrive (eg. mount -t reiserfs /dev/hda2 /mnt/hda2)

2. Change root to your mounted harddrive partition eg. chroot /mnt/hda2

3. After chroot, edit /etc/lilo.conf and either restore your old kernel or add a new boot option to boot into your old kernel. When recompiling, you should always add your new kernel as a non-default boot option in lilo.conf; NEVER delete your old kernel image or remove your old kernel from lilo.conf.

4. While staying in chroot, run lilo.

5. Exit chroot (just type 'exit'), and reboot.

Regarding the error in booting from your new 2.6 kernel: you probably failed to compile support for ReiserFS, the default filesystem for Slackware (or support for whatever filesystem you use). So, when you boot the new kernel, it can't mount your /boot partition and panics.

Just compile ReiserFS (or ext3 or XFS, etc) directly into the kernel. If you compile it as a module instead, you will have to muck around with mkinitrd afterward, which personally I've never been able to do successfully. Fortunately, Slackware by default does not use an initrd image to boot.

Last edited by spurious; 03-18-2004 at 11:01 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with the new kernel booting. pal Linux - Newbie 18 01-02-2005 02:31 AM
booting new kernel. Booting new kernel dies with INIT: VFS issue, really mus335 Linux - General 0 04-21-2004 11:52 AM
Problem booting up new kernel. Kernel panic error... RHLinuxGUY Red Hat 2 04-11-2004 04:59 AM
Problem with booting new kernel beejayzed Linux - Newbie 9 03-03-2004 04:43 PM
Kernel Booting Problem VIP3R Linux - Software 10 08-08-2003 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:41 PM.

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