From owner-freebsd-questions@FreeBSD.ORG Fri May 2 16:53:42 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B186837B401 for ; Fri, 2 May 2003 16:53:42 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF5E743FB1 for ; Fri, 2 May 2003 16:53:41 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.9/8.12.9) with ESMTP id h42NrfOg018888 for ; Fri, 2 May 2003 19:53:41 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.9/8.12.9/Submit) id h42NreOY018887 for freebsd-questions@freebsd.org; Fri, 2 May 2003 19:53:40 -0400 (EDT) From: Jerry McAllister Message-Id: <200305022353.h42NreOY018887@clunix.cl.msu.edu> To: freebsd-questions@freebsd.org Date: Fri, 2 May 2003 19:53:40 -0400 (EDT) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Zeros and ones X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2003 23:53:43 -0000 Hi, This should be easy, but short of writing something specific to do it, I am not getting my head around how. It is easy and convenient to use /dev/zero to write out a number of zero bytes to somewhere - as in: dd if=/dev/zero of=zerofile bs=512 count=1770000 or dd if=/dev/zero of=/dev/da1 bs=512 count=1770000 But, I would like to write all ones - as in 0xff or maybe some other pattern - as if there was a /dev/one also. Is there a nice way to do this using UNIXistic stringing existing stuff together? Or do I have to write a little piece of code? Thanks for any [positive] suggestions. ////jerry