Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-26-2006, 09:18 PM
|
#1
|
Member
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232
Rep:
|
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.
|
|
|
08-26-2006, 11:04 PM
|
#2
|
Member
Registered: Aug 2005
Location: Belgium
Distribution: Debian, after testing all the others!
Posts: 41
Rep:
|
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...
|
|
|
08-26-2006, 11:12 PM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,817
|
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>
|
|
|
08-26-2006, 11:36 PM
|
#4
|
Senior Member
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348
|
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.
|
|
|
All times are GMT -5. The time now is 10:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|