How To Install safecopy on Ubuntu 20.04
Introduction
In this tutorial we learn how to install safecopy
on Ubuntu 20.04.
What is safecopy
safecopy is:
Safecopy tries to get as much data from SOURCE as possible, even resorting to device specific low level operations if applicable. This is achieved by identifying problematic or damaged areas, skipping over them and continuing reading afterwards. The corresponding area in the destination file is either skipped (on initial creation that means padded with zeros) or deliberately filled with a recognizable pattern to later find affected files on a corrupted device. The work is similar to ddrescue, generating an image of the original media. This media can be floppy disks, harddisk partitions, CDs, DVDs, tape devices, where other tools like dd would fail due to I/O errors.
Safecopy uses an incremental algorithm to identify the exact beginning and end of bad areas, allowing the user to trade minimum accesses to bad areas for thorough data resurrection.
Multiple passes over the same file are possible, to first retrieve as much data from a device as possible with minimum harm, and then trying to retrieve some of the remaining data with increasingly aggressive read attempts.
Safecopy includes a low level I/O layer to read CDROM disks in raw mode, and issue device resets and other helpful low level operations on a number of other device classes.
Safecopy is useful in forensics investigations and disaster recovery.
There are three methods to install safecopy
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install safecopy Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install safecopy
using apt-get
by running the following command:
sudo apt-get -y install safecopy
Install safecopy Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install safecopy
using apt
by running the following command:
sudo apt -y install safecopy
Install safecopy Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install safecopy
using aptitude
by running the following command:
sudo aptitude -y install safecopy
How To Uninstall safecopy on Ubuntu 20.04
To uninstall only the safecopy
package we can use the following command:
sudo apt-get remove safecopy
Uninstall safecopy And Its Dependencies
To uninstall safecopy
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove safecopy
Remove safecopy Configurations and Data
To remove safecopy
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge safecopy
Remove safecopy configuration, data, and all of its dependencies
We can use the following command to remove safecopy
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge safecopy
References
Summary
In this tutorial we learn how to install safecopy
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.