first commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sthope 2022-05-14 13:33:28 +02:00
parent 923eee2834
commit 0b3eb8db5a

33
docs/cmnds/hdd.md Normal file
View File

@ -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
```