Re: Can't used parted to resize recent ext2 partitions, what has changed?

From: kermit (cku192_at_yahoo.com)
Date: 10/16/05


Date: Sun, 16 Oct 2005 21:48:11 +0400

Chris F Clark wrote:

[...]
> I also tried using the GNU tool "parted" to resize the partitions. I
> even built the most recent release of it, 1.6.24 to see if that
> worked. However, when editing partitions touched by the new Linux
> version, parted always gives the message:
>
> Error: File system has incompatible feature enabled.
>
> Does anyone have any idea what "the incompatible feature" is and how
> Linux has enabled it on the ext2 partitions and perhaps most
> importantly, how I can disable it?

Build current ext2 utils and use tune2fs to check which features are enabled
and compare this filesystem with others, that are accepted by parted:

{pts/2}% tune2fs -l tmp/e2test
tune2fs 1.38 (30-Jun-2005)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 14662861-ffd1-47ab-9223-4b3be98a7911
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: filetype sparse_super
...

then use tune2fs to disable "extra" features, check manual page for exact
syntax.

DISCLAIMER: disabling features on filesystem with live data can potentially
result in loss of data; make backup first. Also disabling may simply not be
possible because feature may affect data layout and you can't change data
layout by simply turning some bit in superblock off.

=arvi=



Relevant Pages

  • Re: Cant used parted to resize recent ext2 partitions, what has changed?
    ... Build current ext2 utils and use tune2fs to check which features are enabled ... Filesystem volume name: ... disabling features on filesystem with live data can potentially ... possible because feature may affect data layout and you can't change data ...
    (linux.redhat)
  • Re: PostgreSQL pgbench performance regression in 2.6.23+
    ... Also, that requires being intrusive into people's setup scripts, which bothers me a lot more than doing a bit of kernel tuning at system startup. ... I did again get useful results here with the stock 2.6.26.git kernel and default parameters using Peter's small patch to adjust se.waker. ... Combining those two but keeping the rest of the features on actually gave the best result I've ever seen here, better than with all the features disabled. ... Mike suggested a patch to 2.6.25 in this thread that backports the feature for disabling SCHED_FEAT_SYNC_WAKEUPS. ...
    (Linux-Kernel)
  • Re: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY
    ... BIOS menu item for disabling said feature. ... on a disk will be enabled, ... that fact ignored, then the filesystem is either 1) worthless, or 2) ... that's all fsck is going to do on a UFS2+SU filesystem. ...
    (freebsd-stable)
  • Re: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY
    ... BIOS menu item for disabling said feature. ... on a disk will be enabled, ... that fact ignored, then the filesystem is either 1) worthless, or 2) ... that's all fsck is going to do on a UFS2+SU filesystem. ...
    (freebsd-stable)
  • Re: [Ext2-devel] Re: [RFC] file extents for EXT3
    ... > The net effect of slowly sliding features into ext2/3 via feature flags ... > creates the poor situation we have today: your filesystem, ... > kernel, may or may not support the featureset you're looking for. ... > with compatibility flags and careful thought. ...
    (Linux-Kernel)