Equipment: the test disk from Exercise 1 (with data already written), external storage for the image, dd and/or Clonezilla tools, bootable Clonezilla media if used.
(3h) Creating a full disk image of the test disk using the dd command (or Clonezilla), to an image file on external storage, measuring the time required and the resulting file size.
(2h) Verifying the image's integrity (checksum, or mounting the image to check its contents).
(2h) Deliberately and controllably wiping the test disk's data (full format) to simulate total loss.
(3h) Fully restoring the disk from the previously created image, verifying that all data and the partition structure are identical to the original state.
(4h) Data recovery exercise on a partially corrupted disk (a scenario with a deliberately damaged filesystem) using basic recovery tools (testdisk, photorec or equivalent).
(3h) Writing a short procedure documenting the backup/restore steps performed, to keep as a personal reference.
Expected dd command (example): dd if=/dev/sdb of=/mnt/external/disk_image.img bs=4M status=progress — the bs=4M option speeds up the transfer compared to the default block size, and status=progress allows tracking the operation's progress, an important point to highlight for large images.
Restore validation: after restoring, compare the checksum (md5sum or sha256sum) of the restored disk with that of the source image — an exact match validates a bit-for-bit restoration.
Central teaching point of this week: stress that a disk image is only useful if it has been tested through a restore at least once — a backup that has never been restored is not a reliable backup, it is merely an assumption.
◆ SUMMARY SHEET — WEEK 7 SELF-ASSESSMENT
1. I can explain a disk's physical structure (sectors, partitions, GPT table).
2. I can compare ext4, NTFS and ZFS on their respective use cases.
3. I can explain RAID levels 0, 1, 5 and their trade-offs.
4. I know that RAID is not a backup.
5. I can safely create partitions and format a disk.
6. I can create a complete disk image using dd or an equivalent tool.
7. I can restore a disk from an image and validate its integrity.
8. I can use a basic data recovery tool on a corrupted disk.