From owner-freebsd-questions Mon Nov 19 9:33:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 204BC37B405 for ; Mon, 19 Nov 2001 09:33:17 -0800 (PST) Received: (qmail 58680 invoked by uid 100); 19 Nov 2001 17:33:23 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15353.16995.588419.688957@guru.mired.org> Date: Mon, 19 Nov 2001 11:33:23 -0600 To: francisv@dagupan.com Cc: questions@freebsd.org Subject: Re: Creating 5GB files In-Reply-To: <109894878@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG francisv@dagupan.com types: > What's the 'right' way to create 5GB files using 'dd'? I'll be mounting the > file as a virtual disk. There isn't any one "right" way. Given that you've got 5GB of free virtual, you could just do: dd if=/dev/zero of=my-big-file bs=5g count=1 However, it's probably better if you restrict your buffer size to something that will fit in real memory. If that happens to be 5MB, then you do it like so: dd if=/dev/zero of=my-big-file bs=5m count=1024 Just make sure that bs and count multiply to the size of the file you want. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message