From 0b3eb8db5af2c80f9d9a37e12aae14df3d31324a Mon Sep 17 00:00:00 2001 From: Sthope Date: Sat, 14 May 2022 13:33:28 +0200 Subject: [PATCH] first commit --- docs/cmnds/hdd.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/cmnds/hdd.md diff --git a/docs/cmnds/hdd.md b/docs/cmnds/hdd.md new file mode 100644 index 0000000..a8ef960 --- /dev/null +++ b/docs/cmnds/hdd.md @@ -0,0 +1,33 @@ +# Harddrive's commandline tests + +### Test Write Speed + +``` +sync; dd if=/dev/zero of=tempfile bs=1M count=1024; sync +``` + +### Test Read Speed + +``` +dd if=tempfile of=/dev/null bs=1M count=1024 +``` + +Clear Cache and read speed from hdd: + +``` +sudo /sbin/sysctl -w vm.drop_caches=3;dd if=tempfile of=/dev/null bs=1M count=1024 +``` + +### Using hdparm + +Install: +``` +sudo apt-get update; \ +sudo apt-get upgrade -y; \ +sudo apt-get install -y hdparm +``` + +Run (replace PWD with sudo password): +``` +echo PWD | sudo -S hdparm -Tt /dev/sda +```