final update to README for now
This commit is contained in:
43
README.md
43
README.md
@@ -43,14 +43,41 @@ The script will:
|
|||||||
|
|
||||||
|
|
||||||
# HDD.sh
|
# 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**:
|
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.
|
||||||
- `sudo apt install hdparm`
|
|
||||||
- Drives are listed as `/dev/sdX` where `X` stands for their respective labeling for the system
|
|
||||||
|
|
||||||
**Usage**:
|
## Prerequisites
|
||||||
|
|
||||||
|
Before running the script, ensure you have the following installed:
|
||||||
|
|
||||||
|
- **hdparm** (to manage and check drive states)
|
||||||
```bash
|
```bash
|
||||||
$ ./HDD.sh (1/2)
|
sudo apt install hdparm
|
||||||
- option 1) tell drives to spindown
|
```
|
||||||
- option 2) check if drives are spinning or not
|
|
||||||
|
## 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user