<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SurlyJake &#187; dd</title>
	<atom:link href="http://www.surlyjake.com/tag/dd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.surlyjake.com</link>
	<description></description>
	<lastBuildDate>Fri, 30 Dec 2011 15:28:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Write zero&#8217;s to disk Infinite loop</title>
		<link>http://www.surlyjake.com/2010/07/write-zeros-to-disk-infinite-loop/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=write-zeros-to-disk-infinite-loop</link>
		<comments>http://www.surlyjake.com/2010/07/write-zeros-to-disk-infinite-loop/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 22:05:49 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[bash script]]></category>
		<category><![CDATA[dd]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=625</guid>
		<description><![CDATA[I was bored&#8230; So this is a little bash script i wrote that will write zero&#8217;s to a hard disk infinately until you press CTRL+C. It uses dcfldd instead of plain dd because i like the progress output it provides. #!/bin/bash echo -e "Which disk would you like to wipe out? (sda, sdb, sdc)? \c" [...]]]></description>
			<content:encoded><![CDATA[<p>I was bored&#8230; So this is a little <a href="http://www.surlyjake.com/tag/bash-script/" class="st_tag internal_tag" rel="tag" title="Posts tagged with bash script">bash script</a> i wrote that will write zero&#8217;s to a hard disk infinately until you press CTRL+C. It uses dcfldd instead of plain <a href="http://www.surlyjake.com/tag/dd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dd">dd</a> because i like the progress output it provides.</p>
<pre><code>#!/bin/bash
echo -e "Which disk would you like to wipe out? (sda, sdb, sdc)?   \c"
read DISK
read -p "You picked "$DISK", are you sure? (y/n)" -n 1
if [[ $REPLY =~ ^[Yy]$ ]]
then
C=1
for (( ; ; ))
do
        echo -e "\nStarting zero Sweep number "$C" ..."
        dcfldd if=/dev/zero of=/dev/$DISK
        echo "Zero's written to Disk "$C" time(s)"
        echo "[ hit CTRL+C to stop ]"
        let C=C+1
done
fi
</code></pre>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2010/07/write-zeros-to-disk-infinite-loop/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2010/07/write-zeros-to-disk-infinite-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZFS Cant rm: No space left on device</title>
		<link>http://www.surlyjake.com/2010/01/zfs-cant-rm-no-space-left-on-device/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zfs-cant-rm-no-space-left-on-device</link>
		<comments>http://www.surlyjake.com/2010/01/zfs-cant-rm-no-space-left-on-device/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 22:52:42 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD8]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[Filesystem]]></category>
		<category><![CDATA[rm command]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=582</guid>
		<description><![CDATA[If you completely fill up a zfs pool, it wont let you delete files on it. What you CAN do, is pick a scapegoat file to wipe out or remove a snapshot. Then you will be able to use the rm command. what I did: # df -h Filesystem     Size    Used   Avail Capacity  Mounted on [...]]]></description>
			<content:encoded><![CDATA[<p>If you completely fill up a <a href="http://www.surlyjake.com/tag/zfs/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ZFS">zfs</a> pool, it wont let you delete files on it. What you CAN do, is pick a scapegoat file to wipe out or remove a snapshot. Then you will be able to use the <a href="http://www.surlyjake.com/tag/rm-command/" class="st_tag internal_tag" rel="tag" title="Posts tagged with rm command">rm command</a>. what I did:</p>
<pre><code>
# df -h
<a href="http://www.surlyjake.com/tag/filesystem/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Filesystem">Filesystem</a>     Size    Used   Avail Capacity  Mounted on
themirror       39G     39G      0B   100%    /home/jacob/themirror</code>
<code># rm 3gfile
rm: 3gfile: No space left on device</code>
<code># <a href="http://www.surlyjake.com/tag/dd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dd">dd</a> if=/dev/null of=3gfile
0+0 records in
0+0 records out
0 bytes transferred in 0.000046 secs (0 bytes/sec)</code>
<code># rm 3gfile</code></pre>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2010/01/zfs-cant-rm-no-space-left-on-device/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2010/01/zfs-cant-rm-no-space-left-on-device/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

