Try something like:
dd if=/dev/zero of=mybigfile bs=1024k count=3000000

At 10:03 PM 5/9/02 "Grigsby, Garl" <[EMAIL PROTECTED]> wrote:
>Bob,
>   First thanks for the tool. I have been wanting to play around with
>large files on Linux, but have not wanted to deal with 3 Gb files...
>Second it would seem that for me your program will only create a file up
>to 1.1 Gb in size. I tried it on three Linux boxes two running ext3 and
>one running ReiserFS (both of which should do a file larger than 2Gb). I
>also tried it on a Sun E250 running Solaris 8. Now I know for a fact
>that my E250 will create a file over 200 Gb (don't ask, it was a bad
>weekend), but using your little tool all I get are files that are ~1.1
>Gb. What did I do wrong????
>
>Garl
>
>-rw-r--r--   1 grigsby  gtac     1073741824 May  9 18:57 a-big-file
>
>
>
>-----Original Message-----
>From: Bob Miller [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 09, 2002 12:22 PM
>To: [EMAIL PROTECTED]
>Subject: [EUG-LUG:2583] Re: BIG FILES
>
>
>Kahli R. Burke wrote:
>
>> SO...how much are those 8TB drives running these days?  Could you
>spare 
>> me a couple?
>
>I wondered who'd call me on that first.  The size of the file is 8 TB.
>But it's a sparse file.  It only has 44 nonzero bytes in it, and it
>only uses 488 Kb of disk space.
>
>Here's the program that created it.  To use on Linux, compile like
>this.
>
>       cc -o bigfile bigfile.c -D_FILE_OFFSET_BITS=64
>
>-- 
>Bob Miller                              K<bob>
>kbobsoft software consulting
>http://kbobsoft.com                     [EMAIL PROTECTED]
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
><HTML>
><HEAD>
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
><META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4417.0">
><TITLE>RE: [EUG-LUG:2583] Re: BIG FILES</TITLE>
></HEAD>
><BODY>
><!-- Converted from text/plain format -->
>
><P><FONT SIZE=2>Bob,</FONT>
>
><BR><FONT SIZE=2>&nbsp;&nbsp; First thanks for the tool. I have been
wanting to play around with large files on Linux, but have not wanted to
deal with 3 Gb files... Second it would seem that for me your program will
only create a file up to 1.1 Gb in size. I tried it on three Linux boxes two
running ext3 and one running ReiserFS (both of which should do a file larger
than 2Gb). I also tried it on a Sun E250 running Solaris 8. Now I know for a
fact that my E250 will create a file over 200 Gb (don't ask, it was a bad
weekend), but using your little tool all I get are files that are ~1.1 Gb.
What did I do wrong????</FONT></P>
>
><P><FONT SIZE=2>Garl</FONT>
></P>
>
><P><FONT SIZE=2>-rw-r--r--&nbsp;&nbsp; 1 grigsby&nbsp;
gtac&nbsp;&nbsp;&nbsp;&nbsp; 1073741824 May&nbsp; 9 18:57 a-big-file</FONT>
></P>
><BR>
><BR>
>
><P><FONT SIZE=2>-----Original Message-----</FONT>
>
><BR><FONT SIZE=2>From: Bob Miller [<A
HREF="mailto:[EMAIL PROTECTED]";>mailto:[EMAIL PROTECTED]</A>]</FONT>
>
><BR><FONT SIZE=2>Sent: Thursday, May 09, 2002 12:22 PM</FONT>
>
><BR><FONT SIZE=2>To: [EMAIL PROTECTED]</FONT>
>
><BR><FONT SIZE=2>Subject: [EUG-LUG:2583] Re: BIG FILES</FONT>
></P>
><BR>
>
><P><FONT SIZE=2>Kahli R. Burke wrote:</FONT>
></P>
>
><P><FONT SIZE=2>&gt; SO...how much are those 8TB drives running these
days?&nbsp; Could you spare </FONT>
>
><BR><FONT SIZE=2>&gt; me a couple?</FONT>
></P>
>
><P><FONT SIZE=2>I wondered who'd call me on that first.&nbsp; The size of
the file is 8 TB.</FONT>
>
><BR><FONT SIZE=2>But it's a sparse file.&nbsp; It only has 44 nonzero bytes
in it, and it</FONT>
>
><BR><FONT SIZE=2>only uses 488 Kb of disk space.</FONT>
></P>
>
><P><FONT SIZE=2>Here's the program that created it.&nbsp; To use on Linux,
compile like</FONT>
>
><BR><FONT SIZE=2>this.</FONT>
></P>
>
><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>cc -o bigfile
bigfile.c -D_FILE_OFFSET_BITS=64</FONT>
></P>
>
><P><FONT SIZE=2>-- </FONT>
>
><BR><FONT SIZE=2>Bob
Miller&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp; K&lt;bob&gt;</FONT>
>
><BR><FONT SIZE=2>kbobsoft software consulting</FONT>
>
><BR><FONT SIZE=2><A
HREF="http://kbobsoft.com";>http://kbobsoft.com</A>&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; [EMAIL PROTECTED]</FONT>
></P>
>
></BODY>
></HTML>

Reply via email to