Computer Hacking Forensic Investigator (CHFI) v11 Practice Test 2026 - Free CHFI Practice Questions and Study Guide

Session length

1 / 20

Using Linux to carry out a forensics investigation, what would the following command accomplish? dd if=/usr/home/partition.image of=/dev/sdb2 bs=4096 conv=notrunc,noerror

Copy a partition to an image file

Restore a disk from an image file

Copying raw data from an input file to a device using dd creates an exact byte-for-byte transfer, which is why it’s a common tool for forensic imaging and restoration. In this command, the image file is used as the source and a partition on the disk is the destination. Writing the image directly to /dev/sdb2 reconstructs that partition to match the image precisely, effectively restoring the partition from the image file. The block size of 4096 bytes makes the transfer operate in 4 KB chunks, a typical, efficient choice. The option conv=notrunc prevents truncating the output if the image is smaller than the target partition, preserving any data beyond the image length, while conv=noerror tells dd to keep going even if it encounters read errors in the input image, which can be important when dealing with imperfect images in forensics. This behavior lines up with restoring a partition or disk from an image file, rather than searching for errors or creating the image.

Search for disk errors within an image file

Backup a disk to an image file

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy