Subject: Re: add /dev/one ?
To: None <netbsd-users@netbsd.org>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 05/08/2002 10:10:18
In message <20020508135610.AE65E7B4B@berkshire.research.att.com>, "Steven M. Be
llovin" writes:
>In message <873cx2ahdh.fsf@panther.aladdin.de>, Christian Groessler writes:
>>On 05/08/2002 09:10:28 AM EST Todd Gruhns Acct wrote:
>>>
>>>OK, so why have we NOT GOT a /dev/one so we can do the same thing?
>>
>>You don't need a /dev/one. Try
>>
>>cat /dev/zero | tr \\0 \\377 | dd bs=1000k > /dev/sdXa
>>
>
>You don't even need cat:
>
>	tr '\0' '\377' </dev/zero | dd ...
>

Following up my own note:  for these purposes, I'd almost certainly use 
the raw disk, /dev/rsdXy.  If you use the cooked device, as above, you 
don't even need dd.

		--Steve Bellovin, http://www.research.att.com/~smb
		Full text of "Firewalls" book now at http://www.wilyhacker.com