Interview Prep/Linux/Storage, disks and filesystems

A disk is showing reallocated sectors in SMART. What do you do?

IntermediateScenarioStorage, disks and filesystems
Answer

Situation read → The disk is failing; plan replacement before it dies.

What I'd do →

sudo smartctl -a /dev/sda | grep -Ei 'Reallocated|Pending|Uncorrectable|overall'
sudo smartctl -t long /dev/sda
  1. Confirm backups are current and restorable.
  2. If in RAID, schedule a disk swap. If not, migrate data now.
  3. Watch dmesg for I/O errors.

Why → A rising reallocated or pending count predicts failure.

Interview tip → Mention running smartd so this alert arrives automatically, not when you happen to look.

All Linux questions Roadmap: Linux

More on Storage, disks and filesystems