A Linux systems administrator is troubleshooting a storage drive that is experiencing read errors and failing S.M.A.R.T. health checks. The administrator needs to perform a bit-by-bit raw clone of the entire physical drive located at /dev/sdb to an image file at /mnt/backups/disk_copy.img before attempting file recovery. Which of the following command-line utilities and syntax should the administrator execute to perform this raw block-level copy?
- dd if=/dev/sdb of=/mnt/backups/disk_copy.imgCevap
- Brsync -avz /dev/sdb /mnt/backups/disk_copy.img
- Ctar -czvf /mnt/backups/disk_copy.img /dev/sdb
- Dcp -r /dev/sdb /mnt/backups/disk_copy.img
Cevap
The dd utility specifying if=/dev/sdb and of=/mnt/backups/disk_copy.img is the correct command for creating a raw, block-level clone of a drive.
The dd command (data duplicate) is specifically designed for low-level block copying and conversion operations in Unix-like operating systems. By specifying the input file/device with 'if=/dev/sdb' and the output destination with 'of=/mnt/backups/disk_copy.img', dd reads raw data blocks directly from the physical disk device node and writes an exact byte-for-byte binary replica to the target file.
Adım Adım Çözüm
Anahtar Kavram
Using the dd command for low-level raw disk cloning and imaging in Linux/macOS environments.
Tahmini Süre:1m 30s