Soma
Thank you. One step further. Identified necassary code, works perfectly in \var\lib\smartmontools\drivedb\drivedb.h. But still struggeling to get \etc\smart_drivedb.h to work. Same code. Edited it with nano by hand, no c/p. Syntax error...
// JMicron SSK240
{ "USB: ; JMicron SSK240",
"0x152d:0x0580",
"", // 0x7601
"",
"-d sat"
},
Zitat
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; smartctl --attributes --format=brief --info --health --log=selftest --nocheck='standby' /dev/sda 2>&1' with exit code '1': smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.1.21-v8+] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, http://www.smartmontools.org
/etc/smart_drivedb.h(1): Syntax error, invalid char '['
/etc/smart_drivedb.h(2): Syntax error, invalid char '
'
/etc/smart_drivedb.h(4): Syntax error, invalid char '
'
/etc/smart_drivedb.h(5): Syntax error, invalid char '
'
/etc/smart_drivedb.h(6): Syntax error, invalid char ']'
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; smartctl --attributes --format=brief --info --health --log=selftest --nocheck='standby' /dev/sda 2>&1' with exit code '1': smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.1.21-v8+] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, http://www.smartmontools.org
/etc/smart_drivedb.h(1): Syntax error, invalid char '['
/etc/smart_drivedb.h(2): Syntax error, invalid char '
'
/etc/smart_drivedb.h(4): Syntax error, invalid char '
'
/etc/smart_drivedb.h(5): Syntax error, invalid char '
'
/etc/smart_drivedb.h(6): Syntax error, invalid char ']' in /usr/share/php/openmediavault/system/storage/smartinformation.inc:170
Stack trace:
#0 /usr/share/php/openmediavault/system/storage/smartinformation.inc(213): OMV\System\Storage\SmartInformation->getData()
#1 /usr/share/php/openmediavault/system/storage/smartinformation.inc(439): OMV\System\Storage\SmartInformation->getAttributes()
#2 /usr/share/openmediavault/engined/rpc/diskmgmt.inc(89): OMV\System\Storage\SmartInformation->getTemperature()
#3 [internal function]: Engined\Rpc\DiskMgmt->enumerateDevices()
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
#5 /usr/share/openmediavault/engined/rpc/diskmgmt.inc(137): OMV\Rpc\ServiceAbstract->callMethod()
#6 [internal function]: Engined\Rpc\DiskMgmt->getList()
#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
#8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod()
#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(622): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}()
#10 /usr/share/php/openmediavault/rpc/serviceabstract.inc(146): OMV\Rpc\ServiceAbstract->execBgProc()
#11 /usr/share/openmediavault/engined/rpc/diskmgmt.inc(164): OMV\Rpc\ServiceAbstract->callMethodBg()
#12 [internal function]: Engined\Rpc\DiskMgmt->getListBg()
#13 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
#14 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()
#15 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()
#16 {main}
Zitat
Permissions for new smart_drivedb.h are 0644