I tried to resize my volume, but I got the error 'disk has unsupported feature(s): metadata_csum'

Linode Staff

I'm using Ubuntu 16.04 and I'm trying to resize my volume, but I get the following error:

resize2fs: Filesystem has unsupported read-only feature(s) while trying to open /dev/sdc

So, I tried to check my disk but when I run e2fsck -f /dev/sdc, I get the following error:

e2fsck 1.42.13 (17-May-2015)
/dev/sdc has unsupported feature(s): metadata_csum

What can I do?

1 Reply

The version of e2fsprogs available for Ubuntu 16.04 doesn't work with disks or volumes that have the metadata_csum feature enabled. So, how do you fix it?

1. If you're working with a blockstorage volume, you can:

  • Unmount and Detach the volume from your Ubuntu 16.04 Linode
  • Create a new Linode in the same datacenter as your volume
  • Deploy Debian 9 to the new Linode
  • Attach your volume to the new Linode, and mount the volume
  • Run your e2fsck and resize2fs commands
  • Unmount and Detach the Volume
  • Attach the volume to the original Ubuntu 16.04 Linode, and mount the volume.

2. Download and compile a new version of e2fsprogs
This is a little advanced, so proceed at your own risk.

First, logged in as root, let's create a directory to work with:

$ mkdir -p /src/e2fsprogs
$ cd /src/e2fsprogs

Next, we need to download a new version of e2fsprogs from SourgeForge:

$ wget http://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.43.1/e2fsprogs-1.43.1.tar.gz

Now, we can uncompress the tarball:

$ tar xzf e2fsprogs-1.43.1.tar.gz
$ cd e2fsprogs-1.43.1

Then, compile the new version:

$ ./configure
$ make
$ make install

This should replace the versions of e2fsck and resize2fs automatically, but if you have trouble running these commands, try running

$ whereis resize2fs
$ whereis e2fsck

This will return something like this (which will tell you where e2fsck is -- there could be multiple versions installed):

$ whereis e2fsck
e2fsck: /sbin/e2fsck

You can run it directly and verify that it's the new version:

$ /sbin/e2fsck -V
e2fsck 1.43.4 (31-Jan-2017)
Using EXT2FS Library version 1.43.4, 31-Jan-2017

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct