[SOLVED] Custom Kernel Boot failed - unknown filesystem type ext4
by sreyan32 from LinuxQuestions.org on (#52YF9)
So I have been reading Robert Love's Linux Kernel development book.
Unfortunately the kernel version in the book is 2.6.34, yeah like ancient.
So to keep everything as same as the book I downloaded Fedora 13, installed it VirtualBox and compiled linux kernel 2.6.34 by using the following commands as in the book:
Code:make defconfig
makeThe compilation worked without any problems. So far so good.
The problem is I can't boot the kernel so that I can actually test it out.
I have edited my grub.conf my adding the following lines to it: (Basically just copied out the default menuentry for Fedora and just changed the kernel to the one I compiled)
Code:title Custom Kernel
root (hd0,0)
kernel /vmlinuz-custom ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us
initrd /initramfs-2.6.33.3-85.fc13.x86_64.imgI copied over the arch/x86/boot/bzimage into my boot directory.
When I am booting from it it shows 'unknown filesystem type ext4. Boot failed'
Screenshot here: https://imgur.com/a/f9UrJzn
I don't know much about kernel hacking as I am learning, so any help would be appreciated.
Do I have to include the ext4 module, if so how do I do that ?
Thanks.


Unfortunately the kernel version in the book is 2.6.34, yeah like ancient.
So to keep everything as same as the book I downloaded Fedora 13, installed it VirtualBox and compiled linux kernel 2.6.34 by using the following commands as in the book:
Code:make defconfig
makeThe compilation worked without any problems. So far so good.
The problem is I can't boot the kernel so that I can actually test it out.
I have edited my grub.conf my adding the following lines to it: (Basically just copied out the default menuentry for Fedora and just changed the kernel to the one I compiled)
Code:title Custom Kernel
root (hd0,0)
kernel /vmlinuz-custom ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us
initrd /initramfs-2.6.33.3-85.fc13.x86_64.imgI copied over the arch/x86/boot/bzimage into my boot directory.
When I am booting from it it shows 'unknown filesystem type ext4. Boot failed'
Screenshot here: https://imgur.com/a/f9UrJzn
I don't know much about kernel hacking as I am learning, so any help would be appreciated.
Do I have to include the ext4 module, if so how do I do that ?
Thanks.