Sterilizing free space
Peter
plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Tue Jan 3 19:20:12 UTC 2006
> On Tue, Jan 03, 2006 at 12:42:01PM -0500, Sy Ali wrote:
>> On 1/3/06, Lennart Sorensen <lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org> wrote:
>>> dd if=/dev/random of=/dev/device might be good, but much slower
>>> obviously.
>>
>> Thanks for the tip.. I didn't realise there was another source of data
>> to draw on.
>>
>> If there is zero, is there some sort of "one" that exists somewhere?
yes "*empty"|dd of=/dev/hdx bs=16k
The string passed to yes must be literal (no escapes etc). If you need
to print something fancy try:
yes `echo -e "\xxx\yyy"`|dd of=...
The printf command on my system is broken (Debian). printf %c '\007'
prints '\' (should ring the bell).
Peter
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list