CentOS 5.4: installing new kernel 2.6.32.9 guide

Feb 28, 2010 20:17


Recently I've spent a few days in fight with the following new kernel panics:

insmod: error inserting '/lib/dm-region-hash.ko': -1 File exists
mount: could not find filesystem '/dev/root'

After some googling I didn't find any useful fixes, so I started to dig deeper and figured that default built initrd image does't include LVM utility. Here ( Read more... )

centos 5.4, /dev/root, kernel, linux, dm-region-hash.ko

Leave a comment

Comments 40

nodoubts February 28 2010, 14:52:46 UTC
под кат! )

Reply

funky_dennis February 28 2010, 14:55:44 UTC
угу, забыл

Reply


Works anonymous March 1 2010, 11:02:03 UTC
Been searching the web for this issue the past couple of days with no luck until i found your post. Thank you!

Reply

Re: Works funky_dennis March 1 2010, 11:18:47 UTC
Glad it worked for you.

Reply


I'm crazy anonymous March 1 2010, 15:22:27 UTC
Thank you!
First error fixed.

But...
My message is ....

(echo Scanning logical volumes
lvm vgscan --ignorelockingfailure
echo Activating logical volumes
lvm vgchange -ay --ignorelockingfailure contents) <-- append line
resume LABEL=SWAP-sda5
echo Creating root device.
mkrootdev -t ext3 -o defaults,ro sda1

I don't know

Do you know what is mean?

If you know it, I wait for your reply.
Please!

Reply

Re: I'm crazy funky_dennis March 1 2010, 18:00:55 UTC
Show your grub.conf:

# cat /boot/grub/grub.conf

and the output

# vgscan -vv

Reply

Re: I'm crazy anonymous March 2 2010, 02:29:41 UTC
# grub.conf generated by anaconda
#
# Note that you do not have to retun grub after making change ~~
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0) /boot/grub/splash.xpm.gz
hddenmenu
title CentOS(2.6.33)
root (hd0,0)
kernel /boot/vmlinuz-2.6.33 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.33.img
title CentOS(2.6.18-164.EL5)
root (hd0, 0)
kernel /boot/vmlinuz-2.6.18-164.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-164.el5.img

Reply

Re: I'm crazy funky_dennis March 2 2010, 08:34:01 UTC
Ok, try

-mkrootdev -t ext3 -o defaults,ro sda1
+mkrootdev -t ext3 -o defaults,ro /dev/sda1

in init script

Reply


Could not find filesystem /dev/root. ext_226684 March 3 2010, 12:16:29 UTC
I found your post because I too was getting the "Loading dm-region-hash.ko module" error.

I am using LVM, but am not sure if this is the problem after following your guide I still get

"Could not find filesystem /dev/root".

I have no clue how to proceed and I need to install a kernel > 2.6.21 ( I am trying 2.6.33 ) onto CentOS 5.4 for support for hardware sensors.

I understand this is not the topic of this post but I would appreciate any advice you could provide in trouble shooting this.

Reply

Re: Could not find filesystem /dev/root. ext_226684 March 3 2010, 13:42:53 UTC
Apologies, I have seen your update

UPD: you might need to set CONFIG_SYS_DEPRECATED_V2=y in kernel config

This has indeed fixed my problem.

Thanks funky_dennis.

Reply

Re: Could not find filesystem /dev/root. funky_dennis March 3 2010, 14:32:58 UTC
Glad it works!

Reply

Re: Could not find filesystem /dev/root. ext_226684 April 14 2010, 15:46:36 UTC
Hi,

Running into this problem and I have:

# grep 'CONFIG_SYSFS_DEPRECATED_V2' /usr/src/linux-2.6.33.2/.config
CONFIG_SYSFS_DEPRECATED_V2=y

But it still gives me that error. Is it supposed to be CONFIG_SYSFS_DEPRECATED_V2 or CONFIG_SYS_DEPRECATED_V2?

Reply


anonymous May 25 2010, 16:24:54 UTC
Hi! Funky_Dennis
Thanks your detail message. Recently, I upgrade my kernel to the newest version and met the same issue. When my os was on booting, I saw the same error. But now, I already fix it and refer your documents.
By Anderson.Chen in Taiwan

Reply

funky_dennis May 26 2010, 05:10:03 UTC
Glad it works!

Reply


Leave a comment

Up