Installation

disk-burnin.sh is a self-contained POSIX shell script and does not require a formal installation process. You can download or clone it and run it directly. However, it relies on several common system utilities that must be present on your system.

1. Get the Script

First, download the script from the repository. You can either clone the entire repository or download the script file directly.

# Using Git
git clone https://github.com/Spearfoot/disk-burnin-and-testing.git
cd disk-burnin-and-testing

# Or using curl to download just the script
curl -O https://raw.githubusercontent.com/Spearfoot/disk-burnin-and-testing/master/disk-burnin.sh

2. Make the Script Executable

After downloading, you need to grant the script execution permissions.

chmod +x disk-burnin.sh

3. Install Dependencies

The script requires several command-line tools to function. Most of these are standard utilities, but smartmontools may need to be installed manually.

Required Dependencies:

  • smartctl (from the smartmontools package)
  • badblocks (usually part of e2fsprogs or util-linux)
  • awk
  • grep
  • sed
  • sleep

The script will check for these dependencies at runtime and exit if any are missing.

Installing smartmontools

Here are example commands for installing smartmontools on various operating systems.

Debian / Ubuntu / Derivatives:

sudo apt-get update
sudo apt-get install smartmontools

CentOS / RHEL / Fedora:

# For systems using dnf (Fedora, CentOS 8+)
sudo dnf install smartmontools

# For older systems using yum (CentOS 7)
sudo yum install smartmontools

Arch Linux:

sudo pacman -S smartmontools

FreeBSD / FreeNAS:

pkg install smartmontools

The other dependencies (badblocks, awk, grep, sed, sleep) are typically included in the base installation of most Linux and BSD systems. If badblocks is missing, it is often found in the e2fsprogs package.