Tune2fs not working

Hi,

I have been using webmin/virtualmin with zero percent disk space reserved by the system (I think that is the default value when i first installed Virtualmin). My OS is Ubuntu 12.04

After some issues with my hosting provider, now i notice my server use 5% disk space to reserved for file systems. The detail are:

root@server1:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 393G 353G 21G 95% /
none 4.0G 4.0K 4.0G 1% /dev
none 820M 120K 820M 1% /run
none 5.0M 4.0K 5.0M 1% /run/lock
none 4.0G 0 4.0G 0% /run/shm

So, the used + available = 373 Gb which is 20 Gb (equivalent to 5%) smaller than the Size

I tried to use tune2fs to reduce this value to 1%, i got error

root@server1:~# tune2fs -m 1 /dev/simfs
-bash: tune2fs: command not found

Here is my command screenshot http://forums.vn/tune2fserror.png

Could anyone help me with this?

Thank you very much

Howdy,

It sounds like you’re missing the tune2fs program.

You can solve that by using apt-get to install the package that contains that program.

You can do that with this command as root:

apt-get install e2fsprogs

Hi Andreychek

Thank you very much for your help. But after installing, i get another error

root@server1:~# tune2fs -m 1 /dev/simfs tune2fs 1.42 (29-Nov-2011) tune2fs: No such file or directory while trying to open /dev/simfs Couldn't find valid filesystem superblock.

“simfs” would imply that you’re on an OpenVZ based VPS. I guess you don’t have permissions and/or the filesystem does not support modifying the reserved space with the tune2fs command. You might want to ask your hoster if they can help you there.