<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: How to create a large empty file in osx?</title>
	<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx/</link>
	<description>Comments on Ask MetaFilter post How to create a large empty file in osx?</description>
	<pubDate>Sat, 16 Aug 2008 06:22:54 -0800</pubDate>
	<lastBuildDate>Sat, 16 Aug 2008 06:22:54 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How to create a large empty file in osx?</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx</link>	
		<description>How do I create a very large (+10gb) empty file in OSX?   &lt;br /&gt;&lt;br /&gt; I&apos;ve found some instructions on doing this through disk partitioning, but the external hard drive i have accessible right now has stuff on it - and i don&apos;t want to accidentally erase it all... i just want a large file full of zeroes.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.99326</guid>
		<pubDate>Sat, 16 Aug 2008 06:16:54 -0800</pubDate>
		<dc:creator>greggish</dc:creator>
		
			<category>data</category>
		
			<category>computer</category>
		
			<category>blank</category>
		
	</item> <item>
		<title>By: claudius</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1445322</link>	
		<description>Open the terminal and type &lt;br&gt;
&lt;tt&gt;dd if=/dev/zero of=&lt;em&gt;&amp;lt;filename&amp;gt;&lt;/em&gt; bs=1024 count=10485760&lt;br&gt;
&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
I believe that os x has &lt;tt&gt;dd&lt;/tt&gt; installed, and had as a &lt;tt&gt;/dev/zero&lt;/tt&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1445322</guid>
		<pubDate>Sat, 16 Aug 2008 06:22:54 -0800</pubDate>
		<dc:creator>claudius</dc:creator>
	</item><item>
		<title>By: claudius</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1445323</link>	
		<description>Er... has a &lt;tt&gt;/dev/zero&lt;/tt&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1445323</guid>
		<pubDate>Sat, 16 Aug 2008 06:23:39 -0800</pubDate>
		<dc:creator>claudius</dc:creator>
	</item><item>
		<title>By: Popular Ethics</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1445452</link>	
		<description>Alternatively, open Disk Utility, press &quot;New Image&quot;, change the &quot;Volume Size&quot; to 10Gb,  and save the resulting blank *.dmg file wherever you like.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1445452</guid>
		<pubDate>Sat, 16 Aug 2008 10:26:28 -0800</pubDate>
		<dc:creator>Popular Ethics</dc:creator>
	</item><item>
		<title>By: Popular Ethics</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1445455</link>	
		<description>How important is it that the whole file be zeros?  A dmg is going to have some file system header stuff, even if the rest of the file is blank.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1445455</guid>
		<pubDate>Sat, 16 Aug 2008 10:32:19 -0800</pubDate>
		<dc:creator>Popular Ethics</dc:creator>
	</item><item>
		<title>By: greggish</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1445461</link>	
		<description>hrm, i was getting a &quot;No such file or directory&quot; in the terminal, and in the disk utility it wouldn&apos;t let me create the &quot;New Image&quot; (and didn&apos;t even give me the option of &quot;Volume Size&quot;), instead told me that the resource was busy. am i doing something wrong?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1445461</guid>
		<pubDate>Sat, 16 Aug 2008 10:39:10 -0800</pubDate>
		<dc:creator>greggish</dc:creator>
	</item><item>
		<title>By: bottlebrushtree</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1445464</link>	
		<description>For those that these commands are arcane, I&apos;ve also taken a large file that you would care that people saw the data from (a big picture or movie or application) and then copied it over and open again, stopping every once and a while to select more of the copies with &quot;select all&quot; until I fill up the disk. It&apos;s not as secure as dd or dedicated applications, but works in a pinch.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1445464</guid>
		<pubDate>Sat, 16 Aug 2008 10:45:11 -0800</pubDate>
		<dc:creator>bottlebrushtree</dc:creator>
	</item><item>
		<title>By: sergeant sandwich</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1445469</link>	
		<description>i just tested claudius&apos;s thing (with a smaller count) and it works under OSX, but for some reason you have to specify the full path in &quot;of=filename&quot; part.  specifying the path with ~ was giving me the same &quot;No such file or directory&quot; error, which i don&apos;t understand.&lt;br&gt;
&lt;br&gt;
 so putting of=/Users/greggish/Desktop/zeros.txt there will put the file on your desktop, for example.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1445469</guid>
		<pubDate>Sat, 16 Aug 2008 10:54:22 -0800</pubDate>
		<dc:creator>sergeant sandwich</dc:creator>
	</item><item>
		<title>By: fantabulous timewaster</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1445528</link>	
		<description>~ is expanded by the shell, not by the program called, and only at the beginning of a token: &lt;blockquote&gt;&lt;tt&gt;$ echo ~/foo; echo foo/~; echo of=~foo&lt;br&gt;
/Users/rob/foo&lt;br&gt;
foo/~&lt;br&gt;
of=~foo&lt;/tt&gt;&lt;/blockquote&gt; This lets you use ~ in filenames.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1445528</guid>
		<pubDate>Sat, 16 Aug 2008 12:07:49 -0800</pubDate>
		<dc:creator>fantabulous timewaster</dc:creator>
	</item><item>
		<title>By: chairface</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1445848</link>	
		<description>If you just want to fill up the disk, dd is unnecessary. Good ol&apos; &lt;tt&gt;cp&lt;/tt&gt; will work file:&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;$ cp /dev/zero /path/to/big/file&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
I do this myself before disposing of old disks.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1445848</guid>
		<pubDate>Sat, 16 Aug 2008 20:08:17 -0800</pubDate>
		<dc:creator>chairface</dc:creator>
	</item><item>
		<title>By: chairface</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1445849</link>	
		<description>Bah file=&amp;gt;fine</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1445849</guid>
		<pubDate>Sat, 16 Aug 2008 20:08:36 -0800</pubDate>
		<dc:creator>chairface</dc:creator>
	</item><item>
		<title>By: zouhair</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1446234</link>	
		<description>&lt;a href=&quot;/99326/How-to-create-a-large-empty-file-in-osx#1445848&quot;&gt;chairface&lt;/a&gt;: &quot;&lt;i&gt;If you just want to fill up the disk, dd is unnecessary. Good ol&apos; &lt;tt&gt;cp&lt;/tt&gt; will work file:&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;$ cp /dev/zero /path/to/big/file&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
I do this myself before disposing of old disks.&lt;/i&gt;&quot;&lt;br&gt;
&lt;br&gt;
dd is much better, you can set the size of the file.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1446234</guid>
		<pubDate>Sun, 17 Aug 2008 11:01:34 -0800</pubDate>
		<dc:creator>zouhair</dc:creator>
	</item><item>
		<title>By: majick</title>
		<link>http://ask.metafilter.com/99326/How-to-create-a-large-empty-file-in-osx#1447862</link>	
		<description>Actually, it&apos;s much easier just to use &lt;tt&gt;mkfile&lt;/tt&gt; this way:&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;$ mkfile 10g /path/to/my/tengigfile&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
If you want it created sparsely, use the &lt;tt&gt;-n&lt;/tt&gt; parameter.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.99326-1447862</guid>
		<pubDate>Mon, 18 Aug 2008 19:03:18 -0800</pubDate>
		<dc:creator>majick</dc:creator>
	</item>
	</channel>
</rss>
