SlackwareThis 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.
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.
I've tried once again to compile a kernel, this time using the instructions in the stickie "kernel compile for newbies." I failed the first time and needed to reinstall Slack from disk. I've failed again and am trying not to reinstall as before.
The problem: First is a kernel panic error I get when loading the new kernel. I'll have to tackle that one after I fix the second, which is when I try to boot using the old kernel (2.4.26) the new kernel boots instead. I followed the directions: image = /boot/vmlinuz.old
root = /dev/hda1
label = slack.old
read-only
Note: Replace /dev/hda1 with the correct location of your root partition
I am now using Knoppix to access my root directory. Here is my lilo.conf:
image = /boot/vmlinuz
root = /dev/hdf1
label = SLACK
append="hdb=ide-scsi"
# above line added for scsi emulation for cdrw
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
image = /boot/vmlinuz.old
root = /dev/hdf1
label = SLACK.old
append="hdb=ide-scsi"
# above line added for scsi emulation for cdrw
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
I have viewed both /boot/vmlinuz and /boot/vmlinuz.old and both are jibberish to me. there is also a /boot/vmlinuz-ide-2.4.26. Can I use this in lilo's "old" image?
vmlinuz # you copied this here after you compiled it ?
System.map # you copied this here after you compiled it ?
vmlinuz-ide-2.4.26 # the default slackware ide kernel
System.map-2.4.26 # the system.map that goes with it
Your lilo config should reflect this as like :
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdf1
label = SLACK # I use kernel versions ! but whatever
append="hdb=ide-scsi" # line added for scsi emulation for cdrw
read-only # mount / read-only for checking
# Linux bootable partition config ends
# OLD bootable partition begins
image = /boot/vmlinuz-ide-2.4.26
root = /dev/hdf1
label = 2.4.26 # I name these for the kernel version !
append="hdb=ide-scsi" # line added for scsi emulation for cdrw
read-only # mount / read-only for checking
The above lilo config is a modification of your post, you also need to check if it is prompting for you to select the boot image you want in the global settings at the top ie it says "prompt".
The reason that the vmlinuz files look like garbage to you is that you dont speak machine code ! They are binary files for computers !
Thanks for the help, Dave. Knoppix will not allow me to write the change the lilo.conf file. I'm SU when trying. Is there another way to change lilo.conf? I've tried to boot from the slack10 disk1, but all I see are setup options; no SAFE mode options.
Boot from the slack install cd and on the first screen read the bit about "booting your system in a pinch", near the bottom of the page.
for your system it sounds like you will need to type something like :
bare.i root=/dev/hdf1 noinitrd ro
as the command to boot using the kernel from the cd but running your installed system as the root filesystem, this will allow you to modify or recover your system but keep in mind that it is the kernel from the CD so it may not contain all of the features that you have compiled in.
Thanks, mdarby, I was able to make the lilo.conf changes using your suggestions. So now I've got the old kernel working again. Onto the first problem, which is getting past the kernel panic. the error message is something like:
VFS: cannot open root device or unknown-block
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block
There is no shortage of posts on this and I've looked at quite a few of them. Most seem to end up recommending that the appropriate file systems are enabled. I've had menuconfig install ext2/3 and reiserfs NOT as modules, so I should be supported (my file system is reiserfs). I found one post mentioning the solution to his panic was to perform "mkinitrd". I looked at the README file in /boot and it looked like that might be my problem, so I tried that, only to get the following:
bash-2.05b# mkinitrd -c -k 2.6.10 -m reiserfs
WARNING: Could not find module for "reiserfs"
I sure hope I can get this working. Many of these kernel panic threads just never seemed to be resolved....
Okay, I recompiled the kernel with built-in support for the VIA controller found with:
bash-2.05b# /sbin/lspci | grep IDE
00:04.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C/VT8235 PIPC Bus Master IDE (rev 10)
and configured it to support:
Device Drivers ---> ATA/ATAPI/MFM/RLL support -----> VIA82CXXX chipset support
unfortunately, I still get the same kernel panic message...
Replaying journal..
Reiserfs journal '/dev/hdf1' in blocks [18..8211]: 0 transactions replayed
Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 50238
Internal nodes 333
Directories 17039
Other files 214667
Data block pointers 771735 (82 of them are zero)
Safe links 0
###########
reiserfsck finished at Mon Jan 31 14:51:29 2005
###########
t
p.s. I made no formatting changes to my disks when going from 2.4.26, where everything worked fine
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.