Skip to contentSkip to conversation

Unable to use ext4 as root fs

DISCUSSION Stas Sergeev 2 participants 3 messages Nov 1, 2009 – Nov 2, 2009

lore
Share & tools
lore
#0 lore raw

Hi.

I am trying to move my PC from
ext3 to ext4, and so far I can't
get it to boot. I am getting this:
---
EXT3-fs: sda3: couldn't mount because of unsupported optional features (240).
---

Google reveals that this is normal, and the next thing would be the ext4 mount, but this doesn't happen. The current git kernel just locks up tight after that message. NMI watchdog doesn't do anything. The Fedora kernel doesn't lock up, the keyboard works, you can Ctrl-Alt-Del, but nothing happens, ext4 does not mount.
I know that ext4 support is compilled in (builtin, not a module), because this very kernel mounts ext4 fine if I boot from ext3 root fs.
Now, with the lack of the usual "unable to mount root, kernel panic", I am starting to suspect a bug somewhere. Can someone please give me the hint about what have to be done to boot from ext4? Or, in case there is nothing special to do, where should I start sticking printk's to get that somehow debugged?

#1 lore raw
Quoted 8 lines · Stas Sergeev

Hi.

I am trying to move my PC from
ext3 to ext4, and so far I can't
get it to boot. I am getting this:
---
EXT3-fs: sda3: couldn't mount because of unsupported optional features (240).
---

Depending on your distribution, you may need to fix /etc/fstab to reflect ext4 as the fs type, or remake your initrd/initramfs - something in your boot process is trying to mount it explicitly as ext3 ("-o ext3"), which will of course fail.

-Eric

Quoted 27 lines

Google reveals that this is normal, and the next thing would be the ext4 mount, but this doesn't happen. The current git kernel just locks up tight after that message. NMI watchdog doesn't do anything. The Fedora kernel doesn't lock up, the keyboard works, you can Ctrl-Alt-Del, but nothing happens, ext4 does not mount.
I know that ext4 support is compilled in (builtin, not a module), because this very kernel mounts ext4 fine if I boot from ext3 root fs.
Now, with the lack of the usual "unable to mount root, kernel panic", I am starting to suspect a bug somewhere. Can someone please give me the hint about what have to be done to boot from ext4? Or, in case there is nothing special to do, where should I start sticking printk's to get that somehow debugged?

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 8 lines · Eric Sandeen
Quoted 4 lines

---
EXT3-fs: sda3: couldn't mount because of unsupported optional features (240).
---

Depending on your distribution, you may need to fix /etc/fstab to reflect ext4 as the fs type, or remake your initrd/initramfs - something in your boot process is trying to mount it explicitly as ext3 ("-o ext3"), which will of course fail.

Thanks Eric, rebuilding initrd worked! It is still quite annoying that something in the initrd makes the latest git kernel to lock up hard after the mount failure (and not for the Fedora kernel), but this is probably unrelated to ext4... Thanks for your help!