Hey guys,
I don't understand why after kernel compilation, im always getting error like on screenshot below.
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.
mount: uknown file system type "ext4" - always after kernel compiled
Re: mount: uknown file system type "ext4" - always after kernel compiled
To what file exactly?I just copied from /boot/config.... to the kernel sources
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
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
Re: mount: uknown file system type "ext4" - always after kernel compiled
[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]#
[root@ns3030517 kernels]#
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: mount: uknown file system type "ext4" - always after kernel compiled
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:
4. Chroot into sysroot and rebuild the initramfs(you might select only 1 kernel)
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.
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
Code: Select all
chroot /sysroot
dracut -f --regenerate-all
6. Reboot
If the system boots, then you will know the exact reason and you will have to investigate what caused it.