ext4magic command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ext4magic: command not found
or when using sudo you get the following error message
sudo: ext4magic: command not found
Solutions to ext4magic: command not found
How To Fix ext4magic: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ext4magic is provided by ext4magic package.
ext4magic is:
ext4magic is a file carver (or file carving). It can be used when recovering from disasters or in digital forensics activities.
The deletion of files in ext3/4 filesystems can not be easily reversed. Zero out of the block references in the inodes makes that impossible. Experiences with other programs have proved that is possible restore sufficient information for a recover of many data files, directly from the filesystem journal.
ext4magic can extract the information from the journal and restore files in an entire directory tree, if the information in the journal are sufficient.
This tool can recover the most file types, with original filename, owner and group, file mode bits and also the old atime/mtime stamps.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ext4magic
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ext4magic.
sudo apt -y install ext4magic
Or if you have aptitude installed you can use the following command.
sudo aptitude install ext4magic
Summary
In this tutorial we learn how to fix ext4magic command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.