diff --git a/storage/badblocks.py b/storage/badblocks.py index ab334d9..efe0a45 100755 --- a/storage/badblocks.py +++ b/storage/badblocks.py @@ -50,8 +50,9 @@ def chkDisk(disk): '-t', 'long', '-d', 'sat', disk] - for c in (bb, smctl): - subprocess.run(c) + with open(os.devnull, 'w') as DEVNULL: + for c in (bb, smctl): + subprocess.run(c, stdout = DEVNULL) return() def main():