On Wed, Oct 8, 2014 at 7:35 AM, Carlos E. R.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2014-10-08 13:29, Greg Freemyer wrote:
On October 8, 2014 6:36:55 AM EDT, "Carlos E. R." <> wrote:
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.
My hair is standing up in my back... yiks!
:-)
I left out a key step I use: Find a SATA HDD with no content on it you care about and connect it to your system via sata and put a nice new filesystem on it. (I don't know if the above works for USB3 connected drives. I have never tried that.) You may also need to experiment with the 4K physical sectors vs. 512 byte logical sectors. All my testing has been with older 512 byte physical sector drives. Greg -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org