XK0-004 · Question #314
An administrator receives a USB drive and wants to make an exact copy of the disk before starting to work on it. One of the partitions on the USB drive was mounted as /dev/sdc1. Which of the…
The correct answer is A. dd if=/dev/sdc of=~/usb_copy.img bs=512. To create a complete forensic image of a USB drive, dd must reference the entire block device (/dev/sdc) rather than a single partition (/dev/sdc1), so the partition table and all partitions are captured.
Question
An administrator receives a USB drive and wants to make an exact copy of the disk before starting to work on it. One of the partitions on the USB drive was mounted as /dev/sdc1. Which of the following commands should the administrator use?
Options
- Add if=/dev/sdc of=~/usb_copy.img bs=512
- Bdd if=/dev/sdc1 of=~/usb_copy.img count=1024
- Cdd if=/dev/sdc1 of=~/usb_copy.img bs=1024
- Ddd of=/dev/sdc if=~/usb_copy.img bs=1M
How the community answered
(49 responses)- A76% (37)
- B14% (7)
- C6% (3)
- D4% (2)
Why each option
To create a complete forensic image of a USB drive, dd must reference the entire block device (/dev/sdc) rather than a single partition (/dev/sdc1), so the partition table and all partitions are captured.
Using if=/dev/sdc targets the whole disk device including the MBR and partition table, producing a full sector-by-sector image of every partition on the drive. Setting bs=512 matches the standard disk sector size, ensuring accurate low-level copying without truncation or alignment issues.
This copies only the single partition /dev/sdc1 and the count=1024 parameter artificially caps the copy at 1024 blocks, almost certainly missing data beyond that offset.
This also targets only the /dev/sdc1 partition rather than the full disk device, omitting the MBR, partition table, and any other partitions present on the drive.
This command has if and of reversed - it would write the local image file onto the USB drive, destroying the original data instead of preserving it.
Concept tested: Full disk imaging with dd using whole device path
Source: https://man7.org/linux/man-pages/man1/dd.1.html
Topics
Community Discussion
No community discussion yet for this question.