From owner-freebsd-questions Wed Aug 22 14:21:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 48B1F37B449 for ; Wed, 22 Aug 2001 14:21:04 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-a027.otenet.gr [212.205.215.27]) by mailsrv.otenet.gr (8.11.1/8.11.1) with ESMTP id f7MLKuM05558; Thu, 23 Aug 2001 00:20:56 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.4/8.11.4) id f7M3DbI00873; Wed, 22 Aug 2001 06:13:37 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 22 Aug 2001 06:13:36 +0300 From: Giorgos Keramidas To: "Brian T.Schellenberger" Cc: Fernando Gleiser , The Almonds , freebsd-questions@FreeBSD.ORG Subject: Re: How to create files of certain size using dd? Message-ID: <20010822061336.A826@hades.hell.gr> References: <20010821115838.J42431-100000@cactus.fi.uba.ar> <01082123004201.03702@i8k.babbleon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01082123004201.03702@i8k.babbleon.org>; from bts@babbleon.org on Tue, Aug 21, 2001 at 11:00:42PM -0400 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html 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 From: Brian T.Schellenberger Subject: Re: How to create files of certain size using dd? Date: Tue, Aug 21, 2001 at 11:00:42PM -0400 > On Tuesday 21 August 2001 10:59, Fernando Gleiser wrote: > > On Tue, 21 Aug 2001, The Almonds wrote: > > > All, > > > > > > Does anyone have an example using DD on how to create > > > a junk file that is 1MB in size? > > > > dd if=/dev/zero of=file bs=1024k count=1 > > he meant > > dd if=/dev/zero of=file bs=1024k count=1024 > > of course. No, he meant bs=1024k (1M) count=1. What you suggest creates a file of (1024 * 1024) * 1024 bytes which is 1 Gb and not 1 Mb. -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message