Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mantarimay:apps
hdsentinel
hdsentinel.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hdsentinel.spec of Package hdsentinel
# # spec file for package hdsentinel # # Copyright (c) 2024 mantarimay # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define ver 020 Name: hdsentinel Version: 0.20 Release: 0 Summary: Hard Disk Sentinel Linux Edition License: SUSE-Freeware URL: https://www.hdsentinel.com/hard_disk_sentinel_linux.php Source0: http://www.hdsentinel.com/hdslin/%{name}-%{ver}-x64.zip BuildRequires: unzip ExclusiveArch: x86_64 %description Hard Disk Sentinel - examine the temperature and health information (and more) of IDE, S-ATA (SATA II also), SCSI and USB hard disks connected to motherboard or external controller cards. List of features * display hard disk / solid state disk information on the terminal * create comprehensive report about the disk system, including both hard disk and SSD specific features (for example, media rotation rate, TRIM command, etc.) * display and manage acoustic setting of hard disks (on supported USB disks also) * offers outputs for both users and scripts/other applications to process The following information are displayed: * detected hard disk number and device name (for example /dev/sda) * size, model ID, serial number, revision and interface of all detected hard disks * temperature, health and performance values * power on time (days, hour, minutes - if supported) Note: this is for informational purposes only, the value displayed under Windows (after some minutes of testing) may be more accurate * acoustic management settings (if supported and -aam or -setaam option is used Command line switches The switches are NOT case sensitive. Upper and lower case can be used to specify them. * -h - displays help and usage information * -r [report file] - automatically save report to filename (default: report.txt) * -dump - dump report to stdout (can be used with -xml to dump XML output instead of text) * -xml - create and save XML report instead of TXT * -solid - solid output (drive, tempC, health%, power on hours, model, S/N, size) * -verbose - detailed detection information and save temporary files (only for debug purposes) * -aam - display acoustic management settings (current and recommended level) * -setaam drive_num|ALL level(hex)80-FE|QUIET|LOUD - set acoustic level on drive 0..n (or all) 80 or QUIET is the lowest (most silent) setting, FE or LOUD is the highest (fastest) setting For example: hdsentinel -setaam 0 loud - Configures drive 0 to fastest (loud) setting. Same as hdsentinel -setaam 0 FE Please send saved XML or TXT reports, questions or ideas to info@hdsentinel.com to help improving this tool. %prep %build %install mkdir -p %{buildroot}%{_sbindir} unzip %{SOURCE0} -d %{buildroot}/%{_sbindir} mv %{buildroot}/%{_sbindir}/HDSentinel %{buildroot}/%{_sbindir}/hdsentinel chmod 0755 %{buildroot}%{_sbindir}/hdsentinel ln -fs %{_sbindir}/hdsentinel %{buildroot}%{_sbindir}/HDSentinel #generate help file mkdir -p %{buildroot}%{_docdir}/%{name} cat > %{buildroot}%{_docdir}/%{name}/examples << EOF Examples Optimize complete system for silence: hdsentinel -setaam all quiet Optimize complete system for high performance (but louder disk access): hdsentinel -setaam all loud Select a balanced level between silence and performance on drive 0: hdsentinel -setaam 0 C0 Note: some disks do not support balanced settings and they may select the most silent (80) or high performance (FE) setting instead. Please start hsentinel without parameters to see drive assignments (eg. /dev/sda) to drive indexes. Due to the high amount of requests, it is possible to create minimal output which can be easily parsed and processed for further use. Some examples are: List disk drives, temperature (in Celsius), health %, power on hours, disk model, disk serial, size: hdsentinel -solid. Sample results: /dev/sda 42 3 4830 WDC_WD800JD-8LSA0 WD-WMAM9F937837 76324 /dev/sdb 30 100 6128 ST3250624A 5ND3J94R 238472 /dev/sdc 46 100 10982 WDC_WD2500JS-00MHB0 WD-WCANK8705209 238475 /dev/sdd ? ? ? GENERIC_CF_READER 9999 0 /dev/sde ? ? ? GENERIC_SD_READER 9999 1963 List only temperature, drive, size: hdsentinel -solid | awk '{print $2, $1, $7}' 42 /dev/sda 76324 30 /dev/sdb 238472 46 /dev/sdc 238475 ? /dev/sdd 0 ? /dev/sde 1963 List only temperature, drive, model ID, highest temperature on top, drives without temperature information (for example card readers) removed: hdsentinel -solid | awk '{print $2, $1, $5}' | grep -v "^?" | sort -nr 46 /dev/sdc WDC_WD2500JS-00MHB0 42 /dev/sda WDC_WD800JD-8LSA0 30 /dev/sdb ST3250624A List only health, temperature, drive, lowest health on top, drives without temperature information (for example card readers) removed: hdsentinel -solid | awk '{print $3, $2, $1}' | grep -v "^?" | sort -n 3 42 /dev/sda 100 30 /dev/sdb 100 46 /dev/sdc Note that the spaces in hard disk model ID and serial number are replaced with underscore (_). EOF %files %{_sbindir}/HDSentinel %{_sbindir}/hdsentinel %{_docdir}/%{name}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor