Cheat sheet

Drives

Wipe Drive

dd if=/dev/urandom of=/dev/sdX bs=1M status=progress

Format Drive

Format Drive

sudo sg_format --format --ffmt=1 --size=512 /dev/sdX

Check Progress

sudo sg_requests /dev/sdX

Drive Testing

Short SMART Test

sudo smartctl -t short /dev/sdX

Long SMART Test

sudo smartctl -t long /dev/sdX

Check SMART Results

BadBlock Stress Test

ZFS Scrub Test

Check ZFS Scrub Test Results

Drive Information

Display name, model, serial, physical and logical sector sizes

SMART attributes

Identify drive model

Identify physical drive location

Datasets

Dataset Usage

Pools

Pool Usage

Last updated