baruch / diskscan

Scan disk for bad or near failure sectors, performs disk diagnostics
GNU General Public License v3.0
108 stars 29 forks source link

Prevent fixing of read-write mounted disks #20

Closed baruch closed 8 years ago

baruch commented 11 years ago

If a disk being tested and setup for being fixed is also mounted read-write it will cause data corruption. Even if it is mounted read-only it can still affect an inconsistency with the page-cache. This should be prevented and require a force flag.

baruch commented 8 years ago

The badblocks utility apparently does something like that, should look in it to see exactly what it does and how.