i am new to linux can any one give me a suggestion on how to format hard disk that is i need to clean the data,data should not recover again it should be permanently deleted.
migrated from stackoverflow.com Jul 9 '12 at 10:47
This question came from our site for professional and enthusiast programmers.
If you delete the data, and then write new data to the same place in hard disc the previous is impossible to recover. That's because only the beginning of file is deleted. I think it works for all OS and computers.
this will write an endless stream of zeros to your device.This will make the recovery impossible. It's somewhat slow though.
You can also try dcfldd, but you have to install it first, and than run:
Some people claim it's faster than
A Note: I am talking about low-level-format here, please be sure it's exactly what you need in your case.
|show 2 more comments|
Two options come to mind.
If its a partition, use the shred command
If its a drive run dban - this should result in the contents of the entire drive being irrecoverably overwritten using a algorithm of your choice.
That said, even zeroing out SHOULD prevent recovery on modern hard drives, but both of these are simple, direct ways of getting data erased.