You are not logged in.

#1 2010-11-26 10:29:24

adamlau
Member
Registered: 2009-01-30
Posts: 418

mkinitcpio Cannot Find ext4?

lsmod indicates ext4 is loaded.

MODULES="ext4"
HOOKS="base udev autodetect sata"
$ sudo mkinitcpio -p kernel26
Password: 
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.36-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
ERROR: module 'ext4' not found
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
:: Parsing hook [sata]
:: Generating image '/boot/kernel26.img'...SUCCESS
==> SUCCESS
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.36-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
:: Begin build
ERROR: module 'ext4' not found
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [sata]
:: Generating image '/boot/kernel26-fallback.img'...SUCCESS
==> SUCCESS

Had to copy over kernel26.img from another system. How to resolve the unfound ext4 module (adding filesystems to HOOKS is not the resolution as ext4 is not added)?

Last edited by adamlau (2010-11-26 10:52:54)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#2 2010-11-27 12:46:40

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: mkinitcpio Cannot Find ext4?

Anyone have a clue? Perhaps an issue with the 36 kernel (I have not yet downgraded)?


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#3 2010-11-27 12:49:46

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: mkinitcpio Cannot Find ext4?

maybe reinstall the kernel? works for me


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2010-11-27 12:58:10

kfgz
Member
From: Supraśl, Poland
Registered: 2009-03-02
Posts: 114

Re: mkinitcpio Cannot Find ext4?

modinfo ext4

Should return

/lib/modules/2.6.36-ARCH/kernel/fs/ext4/ext4.ko

If you have this (ext4.ko) file try to run

sudo depmod -a

Offline

#5 2010-11-27 23:55:48

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: mkinitcpio Cannot Find ext4?

wonder wrote:

maybe reinstall the kernel? works for me

Deinstalled/reinstalled 36 kernel several times already.

kfgz wrote:

If you have this (ext4.ko) file try to run

sudo depmod -a

No go there as well. Might have to downgrade to 35 sad .


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#6 2010-11-28 00:18:43

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: mkinitcpio Cannot Find ext4?

Works fine here, too. I would re-download 36 from kernel.org (unless you've done this already). Check the existence of fs/ext4 directory before compiling (although it should most definitely be there).

Also, maybe you should just do [in kernel config before compiling] "CONFIG_EXT4_FS=y" instead of "CONFIG_EXT4_FS=m" and see if that helps. Of course you wouldn't add it to the MODULES section anymore as it would already be present. And for that matter, (I assume you're using the ARCH package from your first post) make sure it doesn't say "CONFIG_EXT4_FS=n" in /usr/src/linux-2.6.36-ARCH/.config after compiling.

Not sure what else, you've probably already done these but who knows..
edit: Also, after you install, try:

pacman -Ql kernel26 | grep -i ext4

and see what it shows.

Last edited by milomouse (2010-11-28 01:04:14)

Offline

#7 2010-11-30 05:35:16

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: mkinitcpio Cannot Find ext4?

$ pacman -Ql kernel26 | grep -i ext4
kernel26 /lib/modules/2.6.36-ARCH/kernel/fs/ext4/
kernel26 /lib/modules/2.6.36-ARCH/kernel/fs/ext4/ext4.ko

This particular unresolved issue appears to be related to: https://bugs.archlinux.org/task/21659. However, chroot+ rebuilding initcpio does not resolve the issue.

ERROR: module 'ext4' not found

This error remains persistent above all attempts thus far sad .

Last edited by adamlau (2010-11-30 05:55:01)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

Board footer

Powered by FluxBB