A Linux technician needs to create a raw, bit-by-bit sector copy of an unmounted storage drive located at `/dev/sdb` and output it to an image file named `/mnt/backups/disk.img` for data recovery analysis. Which of the following commands should the technician use?
- dd if=/dev/sdb of=/mnt/backups/disk.imgAnswer
- Btar -czvf /mnt/backups/disk.img /dev/sdb
- Crsync -a /dev/sdb /mnt/backups/disk.img
- Dchown root:root /dev/sdb /mnt/backups/disk.img
Answer
The command 'dd if=/dev/sdb of=/mnt/backups/disk.img' is the correct tool to generate a raw block-level image of a physical drive.
The 'dd' command reads raw sectors directly from an specified input device ('if=/dev/sdb') and writes an identical copy to the specified output location ('of=/mnt/backups/disk.img'), which is essential for creating raw disk clones and forensic images.
Step-by-Step Solution
Key Concept
Linux disk imaging with dd