Hey guys,
Can anybody tell me what this message is for?
/etc/cron.weekly/openmediavault-update-smart-drivedb:Updating smartmontools drive database .../usr/share/smartmontools/drivedb.h updated from branches/RELEASE_5_41_DRIVEDB
Thanks!
Hey guys,
Can anybody tell me what this message is for?
/etc/cron.weekly/openmediavault-update-smart-drivedb:Updating smartmontools drive database .../usr/share/smartmontools/drivedb.h updated from branches/RELEASE_5_41_DRIVEDB
Thanks!
IIRC it is correct. The drivedb is updated weekly, can't find the commit on SF at the moment.
How ca I stop receiving those e-mails?
Is it enough if I remove the echo line from the script?
Or is there a better way?
Don't know, maybe ask for such an option on Mantis?
Solution:
Datenbank aktualisierenSeit smartmontools Version 5.40 kann diese Datenbank mit dem Kommando update-smart-drivedb aktualisiert werden.[1] Das folgende Beispiel zeigt die Aktualisierung der Datenbank eines Systems mit Ubuntu 12.04:
user@ubuntu-12-04:~$ sudo update-smart-drivedb
/usr/share/smartmontools/drivedb.h updated from branches/RELEASE_5_41_DRIVEDB
In vielen Fällen wird das Laufwerk dann richtig von den Smartmontools erkannt und die SMART Werte richtig interpretiert.
update-smart-drivedb verwendet veralteten Download-LinkAufgrund von Änderungen in der Infrastruktur von Sourceforge stimmt seit mindestens Anfang August 2013 der ursprüngliche Download-Link in update-smart-drivedb nicht mehr.[2][3]
Es erscheint dabei folgende Fehlermeldung:
$ sudo update-smart-drivedb
/usr/share/smartmontools/drivedb.h.error: rejected by /usr/sbin/smartctl, probably no longer compatible
Durch Änderung der URL in /usr/sbin/update-smart-drivedb kann das Problem behoben werden:
# ViewVC repository browser
## MANUALLY UPDATED: commented orginial URL and inserted URL from script of smartmontools v6.2 package.
## SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD'
SRCEXPR='http://sourceforge.net/p/smartmontools/code/HEAD/tree/$location/smartmontools/drivedb.h?format=raw'
Mit dem Linux Kommandozeilen-Werzeug sed kann das Ersetzen des Links aus einem Aufruf heraus erfolgen:
sed -i "/^SRCEXPR/{s#=.*#='http://sourceforge.net/p/smartmontools/code/HEAD/tree/\$location/smartmontools/drivedb.h?format=raw'#}" $(which update-smart-drivedb)
Nice!
Can someone please translate to English what to do? I tried Google Translate but I'm still confused...
Dear All,
I tried to run
sed -i "/^SRCEXPR/{s#=.*#='http://sourceforge.net/p/smartmontools/code/HEAD/tree/\$location/smartmontools/drivedb.h?format=raw'#}" $(which update-smart-drivedb)
in root terminal on my NAS, but I still receive weekly update email from my NAS.
Do you have some idea where is the problem? I mean: why I can't stop receive emails from NAS?
Thank you for your reply
Regards
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!