This script uses the package 'hdparm' to evaluate the read speed of a specified drive present on the user's system. It does so three times and then calculates the average read speed out of these three results. The user gets prompted to provide the needed information, so no manual calculation or other terminal work is necessary.
After acquiring the script, make it executable by issuing the following command, assuming is is in your current working directory:
chmod +x drive_test.sh
and then run with sudo:
sudo ./drive_test.sh