TheRemote / PiBenchmarks

Raspberry Pi benchmarking scripts featuring a storage benchmark with score
https://pibenchmarks.com
MIT License
174 stars 12 forks source link

add possibility to define partition #8

Closed hvdwolf closed 4 years ago

hvdwolf commented 4 years ago

Normally you run sudo ./Storage.sh and you check your rootfs.

However, you might have several SD-cards/USB-sticks/disks (NAS) connected to your RPi and you might want to test other filesystems as well.

So I added the option to do sudo ./Storage.sh <Other_Mountpoint>, like for example sudo ./Storage.sh /media/hvdwolf/External where I added a disk on a USB port to my system.

Either because you need that storage for whatever reason and want to test its performance, or because you might want to test whether it would be beneficial to replace your rootfs with the new acquired storage.

This will of course hinder your automatic script download/execution, but you could additionally mention to the users to do a curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh > Storage.sh followed by a

chmod +x Storage.sh
sudo  ./Storage.sh <mountpoint>
TheRemote commented 4 years ago

Thanks! I've modified it slightly to not use two variables and to by default just test the root partition but the functionality has been added!