Skip to content

e2fsprogs package

negan07 edited this page Mar 30, 2021 · 8 revisions

opkg update && opkg install e2fsprogs

Dependencies: none

Binaries included: e2fsck, blkid

Config files: /usr/etc/e2fsck.conf

GUI section: Storage

Nvram variables: none

Usage: rc_e2fsck < start restart stop > < device_part >

<device_part> is the mandatory partition device to check (e.g. /dev/sda1 ).

Docs:

http://e2fsprogs.sourceforge.net

https://linux.die.net/man/8/e2fsck

Ext2/3/4 Filesystem Utilities

With this package it's possible to check a Linux hdd storage ext2/ext3/ext4 file system device connected through the 2 router's usb 3.0 ports.

It requires a mandatory storage device connected and correctly mounted through a router USB port, otherwise this service cannot be enabled.

This operation could be potentially dangerous: it's strongly recommended to backup partition data before attempting to check and fix the partition data involved.

Moreover, make sure to temporary disable eventual background tools/packages working on the partition data, like media-server (minidlna), transmission and smartd monitor, otherwise device can't be able to unmount before starting.

To start a partition device check type:

rc_e2fsck start /dev/sd[a-h][1-15]

To stop/interrupt a partition device check type:

rc_e2fsck stop

GUI Select device name & partition then Click: Analyze then follow screen output .

The process doesn't fork to background while running.

At the end of the check a restart of the device could be recommended.

e2fsck.conf

The config file includes many settings: for a further knowledge read the man page tutorial .

Config file is located & stored in /usr/etc/e2fsck.conf .

To make modifications, vi /usr/etc/e2fsck.conf then save it.

GUI Click: Modify E2fsck Configuration , edit text then Click: Save then Click: Apply .

The config file won't be saved after package removal/upgrade and after firmware upgrade too.

Select Device Partition

Select the device partition to check. The device partition list is dynamically created when loading the web page.

Click: Analyze then follow screen output.