mount: uknown file system type "ext4" - always after kernel compiled

General support questions
Post Reply
bryn1u
Posts: 40
Joined: 2010/04/09 15:38:07
Contact:

mount: uknown file system type "ext4" - always after kernel compiled

Post by bryn1u » 2018/12/15 17:07:24

Hey guys,

I don't understand why after kernel compilation, im always getting error like on screenshot below.
centos.png
centos.png (41.53 KiB) Viewed 551 times
Im using exaclly the same config as centos uses. I just copied from /boot/config.... to the kernel sources. After all i just type "make -j8 rpm-pkg". Packages are build fine the same with installation. After reboot i've been dropped to the dracut. Someone can tell me where problem is ?

Thanks.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: mount: uknown file system type "ext4" - always after kernel compiled

Post by TrevorH » 2018/12/15 17:23:22

I just copied from /boot/config.... to the kernel sources
To what file exactly?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

bryn1u
Posts: 40
Joined: 2010/04/09 15:38:07
Contact:

Re: mount: uknown file system type "ext4" - always after kernel compiled

Post by bryn1u » 2018/12/15 17:41:55

[root@ns3030517 kernels]# cp /boot/config-3.10.0-957.1.3.el7.x86_64 /usr/src/kernels/linux-4.19.9/.config
[root@ns3030517 kernels]#

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: mount: uknown file system type "ext4" - always after kernel compiled

Post by hunter86_bg » 2018/12/16 21:06:40

Your initramfs doesn't have the kernel module for ext4.
First, use a CentOS full DVD and use troubleshooting , then mount your system disks, then mount the following directories over the mount point.
Should be something like this:
1. The system mounted your disk on /sysroot
2. Check if your '/dev/your/harddrive-partition1' is mounted to '/sysroot/boot'
3. Mount FS from rescue image to respective locations:

Code: Select all

for i in /proc /dev /sys /run /tmp; do mount -o bind $i "/sysroot${i}" ; done
4. Chroot into sysroot and rebuild the initramfs(you might select only 1 kernel)

Code: Select all

chroot /sysroot
dracut -f --regenerate-all
5.Use 'lsinitrd' to verify that ext4 kernel module is inside the new image.
6. Reboot


If the system boots, then you will know the exact reason and you will have to investigate what caused it.

Post Reply