final update to README for now

This commit is contained in:
2024-10-19 21:54:51 +02:00
parent 2b2e7f6a99
commit 2943097ccc

View File

@@ -43,14 +43,41 @@ The script will:
# HDD.sh
# Bash script for either telling all HDDs in system to spindown or checking if it is spinning or not
# HDD Spin Down and Status Check Script
**Prerequisites**:
- `sudo apt install hdparm`
- Drives are listed as `/dev/sdX` where `X` stands for their respective labeling for the system
This script provides two options to either spin down all drives on the system (excluding the boot drive) or check whether the drives are currently active or idle.
**Usage**:
```bash
$ ./HDD.sh (1/2)
- option 1) tell drives to spindown
- option 2) check if drives are spinning or not
## Prerequisites
Before running the script, ensure you have the following installed:
- **hdparm** (to manage and check drive states)
```bash
sudo apt install hdparm
```
## Usage
1. Clone or download the script to your machine.
2. Make the script executable:
```bash
chmod +x HDD.sh
```
3. Run the script with one of the following options:
```bash
./HDD.sh [option]
```
### Options:
- **Option 1**: Spin down all drives (excluding the boot drive)
```bash
./HDD.sh 1
```
This will send the command to spin down all connected drives except the boot drive.
- **Option 2**: Check the activity status of all drives (excluding the boot drive)
```bash
./HDD.sh 2
```
This will check whether each connected drive (except the boot drive) is active or idle.