Au delà d'un simple format, qui serait réversible, avec la commande shred
vous pouvez effacer et rendre illisible un disque dur sous Linux :
# cas ou vous perdriez la connection à la console, préférez lancer la commande avec screen screen # et en root, lancer la réécriture de votre disque : shred va remplir le contenu du disque dur avec des données aléatoires 3 fois de suite (option "-n 3"), puis il fera une dernière passe en le remplissant de 0 (option "-z"). sudo shred -vfz /dev/sda
# man shred
NAME
shred - overwrite a file to hide its contents, and optionally delete it
SYNOPSIS
shred [OPTION]... FILE...
DESCRIPTION
Overwrite the specified FILE(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.
Mandatory arguments to long options are mandatory for short options too.
-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[=HOW]
truncate and remove file after overwriting; See below
-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
Voyez également : Effacer-le-disque-dur-d-une-Dedibox-avant-résiliation