Gain access to ext2 partition without ext2 support in kernel
So I've managed to get Gentoo up and running (and it only took 3 attempts to configure the kernel mostly correctly!)
However, during boot the message "mount: unknown filesystem type 'ext2'" appears and once I'm logged in I can't access the boot partition, which was formatted as ext2 - the root partition is ext3.
I take it I'll need to compile ext2 support into the kernel? How do I copy the image file to /boot if I can't access it? Is there another way to get access to it?
Done some thinking and this is my plan of attack:
make clean && make mrproper && make menuconfig
# add ext2 support in the .config from before
make && make modules_install
Then boot from a livecd and copy the bzImage file into the boot partition, edit grub.conf as necessary, cross my fingers and reboot.
Before I go ahead and try this, can anyone tell me if it'll actually work?
dont't make clean and make mrproper. This would force you to do a completely new configuration.
Another thing is that afaik ext3-support depends on ext2-support. I think that it is not possible, that a kernel supports ext3 without supporting ext2. The ext3 is a ext2 with an added journaling.
Maybe that your errormessage at boottime points you to another problem.
Here a part of the kernelconfiguration-helpmessages regarding to ext3
Hi markush, thanks for replying.
To test the theory, I rebooted using an ubuntu livecd I keep handy for just such occasions and could access the ext2 partition fine. I then attached an old ext2 formatted drive and booted back into gentoo and couldn't mount it - same unknown filesystem error. Checked /usr/src/linux/.config and found "# CONFIG_EXT2_FS is not set". So I copied .config to /root (thanks for the heads up!), went ahead with my plan, loading and fixing the .config I'd copied, and - mirabile dictu! - it worked.
So, thanks again for your reply and problem solved.
|All times are GMT -5. The time now is 08:10 AM.|