heavybad is a Linux tool designed for detecting bad sectors on raw block devices. With its multi-pass detection, users can scan drives at the LBA level and skip known bad sections, enhancing efficiency. It offers features like real-time logging, temperature monitoring, and supports both read-only and destructive modes to ensure comprehensive results.
heavybad is a robust tool designed specifically for Linux that facilitates the detection of bad sectors on raw block devices. This multi-pass bad-sector detector operates at the Logical Block Addressing (LBA) level, employing O_DIRECT reads and write/verify methods to efficiently identify and map out slow or damaged sectors. Notably, heavybad supports skip lists to bypass known bad regions, thereby speeding up subsequent scans, and is primarily intended for use on unallocated or expendable storage areas, necessitating root access for operational effectiveness.
smartctl tool for effective assessment.ntfsmarkbad and e2fsck.For both NTFS and ext filesystems, users are guided through a systematic scanning workflow that includes both read-only and destructive passes to reliably map and verify bad sectors.
The command line offers flexibility in executing scans:
# Read-only precision scan (NTFS)
sudo python3 heavybad.py \
--device /dev/sda \
--start-lba 2048 --end-lba 346791935 \
--chunk-size 1 --slow-ms 150 --fs ntfs \
--skip-list known_bad.txt \
--output found_bad.txt \
--merge-skip --resume --histogram --verbose
# Destructive stress test (NTFS)
sudo python3 heavybad.py \
--device /dev/sda --destructive \
--start-lba 2048 --end-lba 346791935 \
--chunk-size 4096 --passes 5 --verify-reads 3 --fs ntfs \
--skip-list known_bad.txt \
--output found_bad.txt \
--merge-skip --resume --histogram --verbose
# Dry run — validate your command without touching the drive
sudo python3 heavybad.py \
--device /dev/sda \
--start-lba 2048 --end-lba 346791935 \
--chunk-size 1 --dry-run
heavybad is built to assist users in efficiently managing storage health while providing detailed control over scanning methodologies, making it a valuable resource for system maintainers and enthusiasts alike.
No comments yet.
Sign in to be the first to comment.