Ubuntu 12.04 booting problems

I’ve had a problem booting more recent kernel than 3.2.0-43-generic-pae, I just got
“error: couldn’t mount because of unsupported optional features (240)”
.. and a reboot. I could always use the -43 kernel or more older, they would work.

Some googling suggested I was trying to mount ext2 or ext3 filesystem as ext4.
The fstab was correct and mount displayed ext4 as a mounted, operational partition type.

BUT

blkid displayed something curious:

$ blkid
/dev/md0: LABEL=”md0″ UUID=”98343fd9-2f4e-46eb-ae5e-31048eb1f0a2″ TYPE=”ext2″

$ tune2fs -l /dev/md0
..
Filesystem features: ext_attr resize_inode dir_index filetype sparse_super large_file
..

Ha! There’s no “has_journal”-option which is (at least) needed for ext3.

Enabled the options:
$ tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/md0
$ tune2fs -l /dev/md0
..
Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent sparse_super large_file uninit_bg
..

$ blkid
/dev/md0: LABEL=”md0″ UUID=”98343fd9-2f4e-46eb-ae5e-31048eb1f0a2″ TYPE=”ext4″

$ fsck -Dp /dev/md0
md0: Backing up journal inode block information.
md0: Moving journal from /.journal to hidden inode.
md0: clean, 238475/52060160 files, 202510525/208208896 blocks

Good.

Testing is yet to be made.

For some additional options of ext4; these were defaults on my ubuntu:
“has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize”

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>