diff --git a/storage-test.sh b/storage-test.sh index d08250f..a9605e1 100755 --- a/storage-test.sh +++ b/storage-test.sh @@ -81,7 +81,7 @@ Get_Text() { # Check if script is running as root first if [[ "$(whoami)" != "root" ]]; then - Print_Style "Benchmarks must be ran as root! Example: sudo ./Storage.sh" "$RED" + Print_Style "Benchmarks must be ran as root!" "$RED" exit 1 fi @@ -105,6 +105,13 @@ IO4kRandWrite=0 ChosenPartition="" if [ "$1" = "" ]; then # User did not provide a partition/folder, change directory to rootfs + df=0 + for d in "$(df | grep ext4)"; do + ((df++)) + echo "${df}) ${d}" + done + + exit 0 cd / else if [ ! -d "$1" ]; then