From owner-freebsd-questions@FreeBSD.ORG Fri May 2 17:50:53 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 19A4E37B401 for ; Fri, 2 May 2003 17:50:53 -0700 (PDT) Received: from pursued-with.net (adsl-66-125-9-242.dsl.sndg02.pacbell.net [66.125.9.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AF9F43FAF for ; Fri, 2 May 2003 17:50:52 -0700 (PDT) (envelope-from Kevin_Stevens@pursued-with.net) Received: from www.pursued-with.net (localhost.pursued-with.net [127.0.0.1]) by pursued-with.net (8.12.8p1/8.12.8) with SMTP id h430oj6h004084; Fri, 2 May 2003 17:50:45 -0700 (PDT) (envelope-from Kevin_Stevens@pursued-with.net) Received: from 192.85.47.1 (SquirrelMail authenticated user imap) by new.host.name with HTTP; Fri, 2 May 2003 17:50:45 -0700 (PDT) Message-ID: <54693.192.85.47.1.1051923045.squirrel@new.host.name> In-Reply-To: <20030503000330.GA98398@falcon.midgard.homeip.net> References: <200305022353.h42NreOY018887@clunix.cl.msu.edu> <20030503000330.GA98398@falcon.midgard.homeip.net> Date: Fri, 2 May 2003 17:50:45 -0700 (PDT) From: "Kevin Stevens" To: "Jerry McAllister" User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal cc: freebsd-questions@freebsd.org Subject: Re: Zeros and ones X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kevin_Stevens@pursued-with.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 00:50:53 -0000 > On Fri, May 02, 2003 at 07:53:40PM -0400, Jerry McAllister wrote: >> 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: >> But, I would like to write all ones - as in 0xff or maybe some >> other pattern - as if there was a /dev/one also. I absolutely can't believe it. At the exact time Jerry was struggling with this, I was working on *exactly* the same issue. Couldn't have phrased his question any better - I was actually looking in /dev for a "one" device! My way of resolving the problem, BTW, was to create a pure white bitmap in PhotoShop and trim it to the size I needed with "head". Different ways to skin the cat! ;) KeS