# Disk Stuff

### List disks:

```bash
 fdisk -l
```

OR

```bash
 df -h
```

---

### Scanning

1 - Check if SMART scans are enabled

```bash
 smartctl -s on /dev/sdX
```

2 - Run a test

```bash
 smartctl -t DURATION /dev/sdX
```

Duration is either "long" or "short"

3 - Check results

```bash
 smartctl -a /dev/sdX
```

---

### S.M.A.R.T scanning

#### Scan a disk

```bash
sudo smartctl -t long/short /dev/sdX
```

#### Check scan results

```bash
sudo smartctl -a /dev/sdX
```

#### Check scan progress

```bash
smartctl -c /dev/sdX
```