Reference: https://perfectmediaserver.com/06-hardware/new-drive-burnin/
- Run
sudo lshw -C disk
to see the drive name. - Grab the burn-in script if you don’t have it already.
- Make sure you have tmux installed.
- Create a new tmux session:
tmux new -s burnin
- Run the burn-in script on the new drive:
./disk-burnin.sh -f -o ~/burn-in-logs REPLACE-ME
. Make sure the drive name here is correct!* E.g.sda
,sdb
, etc.- By default it passes
-b
and-c
to badblocks, with default values of 8192 and 64 respectively. You’ll want to override this. - For
-b
, uselsblk -o NAME,PHY-SeC /dev/sdd
to check the sector size of your disk and use that. - For
-c
, in theory higher numbers will go faster but stress out the disk more and use up more memory. So perhaps leave this alone?
- By default it passes
- Wait a long while (e.g. a 12tb on Intimidator took roughly 13 hours). Since you’re in tmux, you can exit with
Ctrl+B
thenD
(think Vim commands), and the process will keep running in the background. - You can check in on the process with:
tmux capture-pane -p -t burnin | tail -n 100
- Just prints out the last 100 lines
tmux attach -r -t burnin
- Attaches in read-only mode so accidental keystrokes don’t mess with it.