On October 8, 2014 6:36:55 AM EDT, "Carlos E. R."
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2014-10-08 10:54, Frederic Crozat wrote:
Le mercredi 08 octobre 2014 à 10:30 +0200, Ludwig Nussel a écrit :
Hi,
After struggling with my harddisk I noticed that we don't have smartd enabled by default. Shouldn't we change that to get hard disk monitoring by default on every installation? But then IIUC smartd only logs to syslog which a desktop user will never see. Are there any ways to notify deskop users in case of imminent trouble?
IF monitoring is enabled, the desktop user does get a notification on emergencies. I've seen it. Provoking a fake fault in order to see if the notification works I don't know how to do.
Create a trash file with a small amount of data in it. Figure out which physical sectors the data lives on. Flush the disk cache. (Drop cache) Use "hdparm --make-bad-sector" to temporarily trash one of those sectors. It will force an internal disk crc failure for the sector. (Hdparm does direct i/o and will bypass the kernel cache.) Then access the file (cp trash1 trash2). You should get an I/O error on the cp. When you're done "hdparm --repair-sector" should undo the damage. Greg -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org