doc:appunti:hardware:raspberrypi_nas_smart_hard_disk
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:hardware:raspberrypi_nas_smart_hard_disk [2022/01/07 15:04] – [Letting the hard drive to remain in standby mode] niccolo | doc:appunti:hardware:raspberrypi_nas_smart_hard_disk [2025/10/10 11:24] (current) – [udisks2.service] niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Raspberry Pi NAS: Hard disk management ====== | ====== Raspberry Pi NAS: Hard disk management ====== | ||
| - | This page is about configuring the **hard disk power management** on a Raspberry Pi, to be used as NAS and mediacenter. The hard disk is connected via a **[[raspberrypi_nas_x835_sata_board|SupTronics X835 shield]]**. See the main index at **[[raspberrypi_nas]]**. | + | This page is about configuring the **hard disk power management** on a Raspberry Pi, to be used as NAS and mediacenter. The hard disk is connected via a **[[raspberrypi_nas_x835_sata_board|SupTronics X835 shield]]**. See the main index at **[[raspberrypi_nas]]**. The operating system is **RaspiOS** based on **Debian 11 Bullseye**. |
| There are two tools to manage SATA disks in GNU/Linux. **smartctl** is designed to interact with the **[[wp> | There are two tools to manage SATA disks in GNU/Linux. **smartctl** is designed to interact with the **[[wp> | ||
| Line 93: | Line 93: | ||
| ===== hdparm ===== | ===== hdparm ===== | ||
| - | To set the **Advanced Power Management** level use the **%%-B%%** option, | + | To set the **Advanced Power Management** level use the **%%-B%%** option. A low value means aggressive power management, an high value means better performance. The maximum performance level which **permits spin-down** of the drive is 127: |
| < | < | ||
| Line 113: | Line 113: | ||
| </ | </ | ||
| - | Debian provides the file **/ | + | Debian provides the file **/ |
| < | < | ||
| Line 161: | Line 161: | ||
| * **updatedb** - Execute by the **/ | * **updatedb** - Execute by the **/ | ||
| * **smartctl** - Reading SMART attributes (e.g. disk temperature, | * **smartctl** - Reading SMART attributes (e.g. disk temperature, | ||
| + | |||
| + | ===== udisks2.service ===== | ||
| + | |||
| + | It seems that the **udisks2.service** may interfere with the hard disk spin-down feature. The '' | ||
| + | |||
| + | It is likely that the hdparm options set by **udev** on system start are overridden by udisks2. In a [[..: | ||
| + | |||
| + | Some useful udisks2 commands: | ||
| + | |||
| + | < | ||
| + | udisksctl info -b /dev/sda3 | ||
| + | </ | ||
| + | |||
| ===== Web References ===== | ===== Web References ===== | ||
doc/appunti/hardware/raspberrypi_nas_smart_hard_disk.1641564241.txt.gz · Last modified: by niccolo
