Вы можете использовать shred
для файлов или разделов / жестких дисков:
http://www.howtoforge.com/how-to-securely-destroy-wipe-data-on-hard-drives-with-shred
Используйте sudo
если требуется, чтобы получить права администратора.
Для раздела:
shred -vfz -n 10 /dev/sdXZ
Для езды:
shred -vfz -n 10 /dev/sdX
Заметка! Замените "X" и "Z" на соответствующий номер или букву для раздела / диска
Для файла:
shred -v -u -n 2 -z moo.txt
$ shred -v -u -n 2 -z moo.txt
shred: moo.txt: pass 1/3 (random)...
shred: moo.txt: pass 2/3 (random)...
shred: moo.txt: pass 3/3 (000000)...
shred: moo.txt: removing
shred: moo.txt: renamed to 0000000
shred: 0000000: renamed to 000000
shred: 000000: renamed to 00000
shred: 00000: renamed to 0000
shred: 0000: renamed to 000
shred: 000: renamed to 00
shred: 00: renamed to 0
shred: moo.txt: removed
Опции:
-f, --force change permissions to allow writing if necessary
-n, --iterations=N overwrite N times instead of the default (3)
--random-source=FILE get random bytes from FILE
-s, --size=N shred this many bytes (suffixes like K, M, G accepted)
-u, --remove truncate and remove file after overwriting
-v, --verbose show progress
-x, --exact do not round file sizes up to the next full block;
this is the default for non-regular files
-z, --zero add a final overwrite with zeros to hide shredding
--help display this help and exit
--version output version information and exit
If FILE is -, shred standard output.