How to run fsck on an ext4 USB strage

I plan to use a USB storage device on my TP-Link C7 version 5 OpenWrt router and want to be able to run fsck on the storage when needed.

My searches have however only turned up references to e2fsprogs, which may be exclusive to ext2.

See e.g. this page, which says:

This package contains essential ext2 filesystem utilities which consists of e2fsck, mke2fs and most of the other core ext2 filesystem utilities.

Would I be able to run fsck on an ext4 USB media?

If so, which packages should I be installing?


I found this bit on Wikipedia:

Despite what its name might suggest, e2fsprogs works not only with ext2, but also with ext3 and ext4.

Would that be true of OpenWrt's e2fsprogs? (I have seen some things work differently in OpenWrt than in Linux generally.)

1 Like

e2fsprogs provides fsck to each of them:

1 Like

Follow Wikipedia's advice.

1 Like