LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-07-2004, 12:35 AM   #1
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Rep: Reputation: 15
New kernel... Can't boot... Big Problem


Ok, so I installed a new kernel on my system. I followed the newbie guide on this site. My boot loader is grub. It starts loading and then gives this error:

mount: error 19 mounting ext 3
pivot root: pivot_root (/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 264 k freed
Kernel panic: No init found. Try passing init=option to kernel

What can I do now?? I can't boot at all now!! I still have my Redhat install cd which has a rescue mode, so I can mount my file system. Any ideas, at all?? Please help me.

Chris DeGroot
 
Old 02-07-2004, 01:48 AM   #2
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Rep: Reputation: 30
You didn't delete your old kernel, did you? If you did, then you'll have to re-install everything. I'm not sure whether you can copy the kernel in the CD to your /boot directory, it might cause problems with initrd and modules. If you can though, then add the appropriate lines to your grub.conf file to load the old kernel.

Do you recall compiling ext3 as a module? If your root partition is ext3 then you won't be able to boot.
 
Old 02-07-2004, 06:51 AM   #3
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Boot into rescue mode and chroot to the linux partition (probably something like chroot /mnt/system) then install the original kernel rpm.
rpm -ivh --force /mnt/cdrom/RedHat/RPMS/kernel-x.y.z.rpm

You may need to copy the kernel rpm off the cdrom first?

If your filesystem is mounted read-only use mount /dev/hdaX /mnt/system -o remount,rw before you chroot to make the system rw.
 
Old 02-07-2004, 09:13 AM   #4
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by vincebs
You didn't delete your old kernel, did you? If you did, then you'll have to re-install everything. I'm not sure whether you can copy the kernel in the CD to your /boot directory, it might cause problems with initrd and modules. If you can though, then add the appropriate lines to your grub.conf file to load the old kernel.

Do you recall compiling ext3 as a module? If your root partition is ext3 then you won't be able to boot.
I did not delete the old kernel. I did, however, delete the initrd for the old kernel because that was what the guide I was following told me to do. I'm not sure if I compliled ext3 as a module. If I did, is there anything I can do?
 
Old 02-07-2004, 09:14 AM   #5
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by /bin/bash
Boot into rescue mode and chroot to the linux partition (probably something like chroot /mnt/system) then install the original kernel rpm.
rpm -ivh --force /mnt/cdrom/RedHat/RPMS/kernel-x.y.z.rpm

You may need to copy the kernel rpm off the cdrom first?

If your filesystem is mounted read-only use mount /dev/hdaX /mnt/system -o remount,rw before you chroot to make the system rw.
I will try this.
 
Old 02-07-2004, 09:30 AM   #6
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
I tried installing the kernel from rpm, but I just got a bunch of failed dependancies. I used --force like you said. Any ideas?
 
Old 02-07-2004, 09:31 AM   #7
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
Oh, wait... I'll try copying the rpm from the CD first. Forgot about that.
 
Old 02-07-2004, 02:23 PM   #8
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
Thanks, that seemed to work. I can boot again.
 
Old 02-07-2004, 06:08 PM   #9
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Always keep your current kernel/initrd as a backup when making a new kernel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
warning: kernel is too big for standalone boot from floppy Niceman2005 Linux - General 3 03-04-2005 03:42 AM
Fatal: Kernel /boot/vmlinuz-2.6.8.1 is too big Ph0enix2003 Mandriva 2 09-04-2004 10:41 PM
kernel is too big for standalone boot from floppy jogurt666 Linux - General 5 04-08-2004 01:30 AM
fedora kernel too big to make boot disk? DDouglas Fedora 1 12-15-2003 03:13 PM
Kernel too big to boot LinuxGuy4567 Linux - Software 10 01-25-2003 05:25 PM


All times are GMT -5. The time now is 08:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration