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 just compiled and installed the 2.4.33.1 kernel. This I think is my 10th kernel compile, so I am still relatively new. When I try to boot, here is the lengthy error message I see:
Code:
An error occurred during the root filesystem check. You will now be given a chance to log into the file system in single user mode to fix the problem.
If you are using the ext2 filesystem, running the 'e2fsck -v -y <partition>' might help.
Then machince code scrolls. Then I see:
Code:
Attempt to remount root device as read-write failed! This is going to cause serious problems. If you're using the UMSDOS filesystem, you **MUST** mount the root partition read-write with 'rw' flag to Loadlin:
loadlin vmlinuz root=/dev/hda1 rw (replace /dev/hda1 with your root device)
Normal bootdisks can be made to mount a system read-write with the rdev command: rdev -R /dev/fd0 0
You can also get into your system by using a boot disk with a comman dlike this on the LILO promt line: (change the root partition name as needed)
LILO: mount root /dev/hda1 rw
Please press ENTER to continue, then reboot and use onr of the above methods to get into your machince and start looking for the problem.
Here is my lilo.conf:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
compact
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = normal
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda3
label = Linux-2.4.31
read-only
# Linux bootable partition config ends
image = /boot/bzImage-2.6.17.3
root = /dev/hda3
label = Linux-2.6.17.3
append = "noresume"
read-only
image = /boot/bzImage-2.4.32
root = /dev/hda3
label = Linux-2.4.32
read-only
image = /boot/bzImage-2.4.33.1
root = /dev/hda3
label = Linux-2.4.33.1
read-only
I don't know if this is the same issue or not, but Pat mentioned that 2.4.33.1 was not working with current. From the -current changelog a few days ago (8/19):
"k/kernel-source-2.4.33-noarch-2.tgz:
Updated the default .config to include SATA support.
Oh, and yes I did see 2.4.33.1. Thanks for letting me know ;-), but that
kernel does not seem to be booting here so I'll stick with 2.4.33 for now."
The new kernel naming convention does not seem to agree with the 2.4 kernel series.
This was discussed on the alt.os.linux.slackware group. It's being worked on. There is a patch I believe. Check the group either directly, through google groups, or by linuxpackages.net.
> Hi Pat,
>
> updated kernel 2.4.33.2 has arrived. Maybe this version will boot > on your machine and others as well since Willy has reverted some
> commits on it
No, it will boot because I spent an entire day fixing an issue in glibc
that was the boot problem. It wasn't the kernel.
And yes, I know about 2.4.33.2. I've been in frequent contact with
Willy over the last week. My name is even in the kernel's release
announcement (along with an explanation of the glibc issue)...
I just compiled 2.4.33.2. I get the same error as before. Do you think the error occurs becasue I miss configured my kernel? Or does it crash becasue of the same error Pat V talks about for 2.4.33.1?
I used the same config script as before (see the above pastebin link). My new lilo.conf looks like this:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
compact
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = normal
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda3
label = Linux-2.4.31
read-only
# Linux bootable partition config ends
image = /boot/bzImage-2.6.17.3
root = /dev/hda3
label = Linux-2.6.17.3
append = "noresume"
read-only
image = /boot/bzImage-2.4.32
root = /dev/hda3
label = Linux-2.4.32
read-only
image = /boot/bzImage-2.4.33.1
root = /dev/hda3
label = Linux-2.4.33.1
read-only
image = /boot/bzImage-2.4.33.2
root = /dev/hda3
label = Linux-2.4.33.2
read-only
There's all this talk about a fix for glibc should enable 2.4.33.1/2 to boot. I just upgraded to current (again). I'll brb (hopefully) on the new kernel.
edit: 2.4.33.1 and 2.4.33.2 still will not boot. I really think the problem is unrelated to the glibc fix delivered by Pat V. The problem I think has to do with the incorrect way in which i compiled my kernel.
Last edited by Drone4four; 08-24-2006 at 05:47 PM.
Willy Sudiarto Raharjo wrote:
> Hi Pat,
>
> i saw an update on the -stable changelog, but the -current
> wasn't updated with the patched glibc. Will it be there in
> few hours or so??
Probably, but on -current there's a lot more to the issue as I have to upgrade all the kernels, and then compile glibc against the latest 2.6.x kernel. It was all ready to go, and then 2.6.17.11 shipped. It should be ready today, but it could be late. Hard to say for sure...
> The kernel problem lies to the kernel naming?? I thought
> Willy never thought about that when he generate the 2.4.33.x > new naming
He shouldn't have had to. The problem was that glibc only cared about 3 kernel numbers and it knew to get rid of things like -pre1, or -rc3 (with a '-'), and would see 2.4.33-1 as 2.4.33. However, for 4 part kernel versions w.z.y.z, it would cut the wrong end off. 2.4.33.2 was being seen as version 4.33.2, so then glibc would figure the kernel had NPTL support.
I talked Willy out of changing the naming scheme because it wasn't his bug, and working around it like that wasn't the right way to fix the issue IMHO. Anyway, glibc without the patch probably also thinks 2.6.17.11 is 6.17.11, but that matters a lot less there. :-)
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
I'm not sure what the solution is or what download link is being referred to. I just compiled kernel 2.4.33.2 using my 2.4.31 .config file. It doesn't boot and I get the same error as above. Please help!
I'm not sure what the solution is or what download link is being referred to. I just compiled kernel 2.4.33.2 using my 2.4.31 .config file. It doesn't boot and I get the same error as above. Please help!
the solution is to patch your glibc source code and recompile, or install a patched glibc binary package... FYI this is the patch for glibc 2.3.5 that was used for slackware 10.2:
Code:
--- ./sysdeps/unix/sysv/linux/dl-osinfo.h.orig 2004-12-16 21:31:50.000000000 -0600
+++ ./sysdeps/unix/sysv/linux/dl-osinfo.h 2006-08-21 23:00:49.000000000 -0500
@@ -53,6 +53,9 @@
int parts; \
char *cp; \
struct utsname uts; \
+ int dotsfound = 0; \
+ int versionindex = 0; \
+ char *choppoint; \
\
/* Try the uname syscall */ \
if (__uname (&uts)) \
@@ -72,8 +75,34 @@
else \
buf = uts.release; \
\
+ /* We are only interested in the first three kernel numbers, so */ \
+ /* chop off anything past that: */ \
+ \
+ choppoint = buf; \
+ while (1) \
+ { \
+ versionindex++; \
+ if (versionindex == 63) break; \
+ if (*choppoint == '.') dotsfound++; \
+ choppoint++; \
+ if (dotsfound == 2) \
+ { \
+ if (*choppoint == '0' || *choppoint == '1' \
+ || *choppoint == '2' || *choppoint == '3' \
+ || *choppoint == '4' || *choppoint == '5' \
+ || *choppoint == '6' || *choppoint == '7' \
+ || *choppoint == '8' || *choppoint == '9') \
+ continue; \
+ else \
+ { \
+ *choppoint = 0; \
+ break; \
+ } \
+ } \
+ } \
+ \
/* Now convert it into a number. The string consists of at most \
- three parts. */ \
+ three parts. Now it does, anyway. ;-) */ \
version = 0; \
parts = 0; \
cp = buf;
your best bet is to simply download and install the latest glibc packages from the /patches directory on the FTP server...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.