LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-26-2006, 09:18 PM   #1
frankie_DJ
Member
 
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Rep: Reputation: 32
messed up at kernel installation: can't boot from either new or old kernel


Hi all,

I made a pretty big mess. I had a working 2.6.13 kernel but I wanted to install 2.6.17.11 and customize it. When I tried o make a initrd with
mkinitrd -c -k 2.6.17.11 -m reiserfs

and tried to boot, it went into kernel panic: it couldn't mount the filesystem. Even worse, I think it messed up existing initrd for the 2.6.13 kernel so I can't boot either new or old kernel; I don't know what to do now. I booted from CD and tried mkinitrd but it doesn't work for either new or old kernel. Also I tried recompiling again from scratch but it doesn't work either. How can I fix this mess? I don't care so much about installing anew kernel, I just want to be able to boot again. I guess I should've studied a little bit what does mkinitrd do in the first place, cause now I am completely lost. Thanks for your help.

Last edited by frankie_DJ; 08-26-2006 at 09:20 PM.
 
Old 08-26-2006, 11:04 PM   #2
ph0b0s
Member
 
Registered: Aug 2005
Location: Belgium
Distribution: Debian, after testing all the others!
Posts: 41

Rep: Reputation: 15
Quote:
Originally Posted by frankie_DJ
Hi all,

I made a pretty big mess. I had a working 2.6.13 kernel but I wanted to install 2.6.17.11 and customize it. When I tried o make a initrd with
mkinitrd -c -k 2.6.17.11 -m reiserfs

and tried to boot, it went into kernel panic: it couldn't mount the filesystem. Even worse, I think it messed up existing initrd for the 2.6.13 kernel so I can't boot either new or old kernel; I don't know what to do now. I booted from CD and tried mkinitrd but it doesn't work for either new or old kernel. Also I tried recompiling again from scratch but it doesn't work either. How can I fix this mess? I don't care so much about installing anew kernel, I just want to be able to boot again. I guess I should've studied a little bit what does mkinitrd do in the first place, cause now I am completely lost. Thanks for your help.
My attempt to fix this would be installing a new system to a spare partition, then copy the necessary files from /boot to the broken
system, making necessary adjustments in /boot/grub/menu.lst or /etc/lilo.conf regarding partition numbers, then reboot into the
old system...
 
Old 08-26-2006, 11:12 PM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,817

Rep: Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889
you forgot to put where the root partition when creating initrd
try boot using cd 1 and re-create the initrd using
Code:
mkinitrd -c -k 2.6.17.11 -m reiserfs -r /dev/hdaX
it's better to give unique name for each initrd so it won't overwrite your working initrd using -o <output-initrd>
 
Old 08-26-2006, 11:36 PM   #4
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
You remembered to edit lilo.conf, run lilo -t, then (if no errors)lilo before trying to boot the new kernels right?

To answer your other question, when kernels have the file systems built as modules, the initrd will preload the modules for ext3, reiserfs, etc. so the system knows how to read the fs / is mounted on. You used to have to do this with scsi drives and 2.4 kernels as well IIRC.
 
  


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
Installation CD won't boot kernel Demon86 Linux - Newbie 4 07-24-2007 09:38 PM
Installation timed out and boot loader is messed up? agentchange SUSE / openSUSE 7 06-14-2006 06:55 PM
Boot configuration after kernel installation pda_h4x0r Debian 6 03-02-2006 07:20 PM
messed up on kernel 2.6.0 Crunch Linux - Newbie 1 01-26-2004 01:19 PM
laptop with docking -- does not boot new kernel, redhat 9 installation media timpie Linux - Laptop and Netbook 0 06-22-2003 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:55 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