Creating hard disk images with Guymager
Mirror, Mirror…
![© Lead Image © wajan, 123RF.com © Lead Image © wajan, 123RF.com](/var/linux_magazin/storage/images/issues/2014/168/guymager-forensic-backup/123rf_9230774_reflection-trees-water_wajan_resized.png/626295-1-eng-US/123rf_9230774_Reflection-Trees-Water_wajan_resized.png_medium.png)
© Lead Image © wajan, 123RF.com
If malware has taken root on a system, you need a way to safeguard the evidence. Guymager helps you create verified disk images.
Forensic data backup tools are used in situations in which analysis of the original medium is not advisable because it could cause structural changes. The best way to study a storage medium for evidence of malware or intrusion activity is to make an accurate copy and perform your analysis on the copy. However, you need a way to verify that the duplicate is an accurate copy of the original.
Conventional disk image copy tools usually are not suitable for this type of undertaking because they lack an option for validating the image. On the other end, a high-end, professional forensics distro is sometimes more than you need. In these cases, Guymager [1] disk image tool is an interesting option. Guymager quickly creates images and, at the same time, provides evidence of identical data structures.
Getting Guymager
Guymager is available from the repositories on Debian and Ubuntu and their derivatives. For openSUSE [2] and Fedora [3], you can pick up the packages online. Additionally, a few Live distros like Deft or Kali Linux also contain the tool. For all other systems, your only option is to build from the source code, which you will find on the project web page along with detailed instructions.
Image
After you click on the launcher, Guymager prompts you for a password to assume administrative privileges. Then, a new window appears (Figure 1).
![](/var/linux_magazin/storage/images/issues/2014/168/guymager-forensic-backup/figure-1/626298-1-eng-US/Figure-1_large.png)
The program immediately begins to scan the system for mass storage. It takes into account internal and external drivers, although optical drives only appear in the list if a disc is inserted. The fact that the software displays the individual drives with the names of the device files and the model names makes the choice easier.
To create an image, first click on the desired source medium in the list. Then, in the context menu, select the option Create image file. This opens a very detailed settings window (Figure 2).
![](/var/linux_magazin/storage/images/issues/2014/168/guymager-forensic-backup/figure-2/626301-1-eng-US/Figure-2_large.png)
In the File format section, specify the format you want to use when creating the image. The application uses EWF as the default; this is the typical format for professional forensic applications. As an alternative, Guymager offers to use the dd
tool to create a matching image.
If you keep the EWF format, you can enter additional information, such as the evidence number, case number, reviewer, and a description. If you use dd
, the software disables these fields, because the syntax of the command-line tool does not support these metadata.
Depending on the size of the source data and the target disk, you might want to split the image into individual parts. In this case, enter a size in the Split size box top right in the window. If you choose EMF format, the software automatically configures a value at this point. If you are backing up with dd
, you have the option of unchecking Split image files and creating an image in one fell swoop.
In the Destination section at the center of the window, specify a label for the automatically generated Info file, along with the path for storing the image, and the image name. This info file contains precise textual documentation of the work steps necessary to create the image.
Please note, that certain characters such as hyphens and underscores are not allowed in the name of the info file. Guymager displays a warning in such cases but also independently changes the file name. The file with the information typically uses the same name as the image; the software automatically adds a suffix of .info
to prevent possible confusion.
Hash Can!
The integrity of the existing data and the image plays a prominent role in forensic work. The software thus works with hash functions to document this. Guymager relies on the MD5 algorithm, as well as SHA algorithm variants SHA-1 and SHA-256 (as a part of SHA-2) to calculate checksums.
By default, the software works with MD5, but you can enable the two other features by checking the corresponding options in the Hash calculation/verification section. This step is advisable because the MD5 algorithm is no longer considered state of the art.
Below this, you can click a checkbox to decide whether the program should verify the source and image on completion. By default, Guymager only checks the image after creating it. Keep in mind that verifying large disk drives and large images can be very time-consuming.
After you have configured all the required settings, click on the Start button bottom right in the window. The software now creates the image. In the main window, in the State column of the row of the corresponding data carrier, you will see a blue dot telling you Acquisition running. In the Progress column, a blue horizontal bar also informs you of the progress of the action.
Additionally, all the important settings for creating the image appear at the bottom of the program window. You can read the current data rate for saving the data in megabytes per second. After completing the image, the application shows you matching information under the State heading.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.