Skip to content

Anthony will be a tool to manage your drives inventory

License

Notifications You must be signed in to change notification settings

krystof-k/anthony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anthony

Anthony is will be a tool to manage your drives inventory.

Now, it is just a bunch of shell scripts to easily wipe, health check and performance test your drives.

How to

Install dependencies

You'll need smartmontools (v. 7+), jq and fio (in case you want to test performance):

sudo apt install smartmontools jq fio

Download shell scripts

Set up Anthony shell scripts in ./anthony folder:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/krystof-k/anthony/main/scripts/setup.sh)" \
  && cd anthony

Run the scripts

Now you can run the shell scripts:

  • sudo /bin/bash wipe.sh /dev/sda /dev/sdb

    to wipe the drives with zeros

    ⚠️ You will lose your data!

  • sudo /bin/bash smart.sh --test /dev/sda /dev/sdb

    to run long S.M.A.R.T test on the drives and save the results to a file

  • sudo /bin/bash smart.sh /dev/sda /dev/sdb

    or just save the current S.M.A.R.T. data

  • sudo /bin/bash performance.sh /dev/sda /dev/sdb

    to run a set of performance tests on the drives and save the results to a file

    ⚠️ You will lose your data!

  • sudo /bin/bash all.sh /dev/sda /dev/sdb

    to run all of above at once

    ⚠️ You will lose your data!

As the script can easily run for several hours, it is meaningful to run it within a screen.

Then you can upload the results for example via transfer.sh and save them for later:

tar -czf - ./data | curl --upload-file - https://transfer.sh/anthony.tar.gz

About

Anthony will be a tool to manage your drives inventory

Topics

Resources

License

Stars

Watchers

Forks

Languages