modified: README.md

modified:   docs/file-systems.md
This commit is contained in:
2025-11-01 22:38:37 +00:00
parent 170a97819b
commit 1fcbabd754
2 changed files with 95 additions and 96 deletions

View File

@@ -17,9 +17,13 @@
- [System Monitoring Utilities](#system-monitoring-utilities)
- [btop](#btop)
- [Storage](#storage)
- [Disk Space and Used](#disk-space-and-used)
- [Physical Disks and Partition](#physical-disks-and-partition)
- [hdparm](#hdparm)
- [smartctl](#smartctl)
- [Network Storage](#network-storage)
- [smb](#smb)
- [gio](#gio)
- [CLI Diagnostics and System Topology](#cli-diagnostics-and-system-topology)
- [lspci](#lspci)
@@ -205,6 +209,34 @@ apt update && apt install btop -y
### Storage
#### Disk Space and Used
``` bash
df -h
```
#### Physical Disks and Partition
**List physical disks and partition size:**
``` bash
lsblk
```
**Get Partition id:**
``` bash
blkid /dev/sdX
```
##### Partition Manager
``` bash
fdisk /dev/sdX
```
[check](./docs/file-systems.md) for file systems.
#### hdparm
hdparm is a powerful command-line utility in Linux used to view and configure low-level parameters of SATA, IDE, and some USB hard drives. Its commonly used for performance tuning, diagnostics, and power management.
@@ -214,6 +246,17 @@ sudo apt install hdparm
sudo hdparm -Tt /dev/sdc
```
#### smartctl
smartctl is a command-line utility used to monitor and manage the health of storage devices like HDDs and SSDs using S.M.A.R.T. (Self-Monitoring, Analysis, and Reporting Technology).
Heres a deeper look at what smartctl does and why its useful:
```bash
#check smart status
smartctl -a /dev/sdX
```
``` bash
df
df -h
@@ -249,6 +292,25 @@ Add line
//nas.lan/homes /mnt/smb-share:mf@nas.lan,share=homes cifs credentials=/home/mf/.credentials/smb:mf@nas.lan,uid=1000,gid=1000,nofail 0 0
```
#### gio
**mount samba share:**
```bash
#/home/username/.credentials
#username
#SAMBA
#password
gio mount smb://server/share < /home/username/.credentials
```
**unmount:**
```bash
gio mount -u smb://server/share
```
### CLI Diagnostics and System Topology
#### lspci