<?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>Talkwards &#187; hard disks</title>
	<atom:link href="http://www.talkwards.com/tag/hard-disks/feed" rel="self" type="application/rss+xml" />
	<link>http://www.talkwards.com</link>
	<description>Advancing Talkwards...</description>
	<lastBuildDate>Sat, 03 Sep 2011 16:33:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Badblocks</title>
		<link>http://www.talkwards.com/2007/12/badblocks</link>
		<comments>http://www.talkwards.com/2007/12/badblocks#comments</comments>
		<pubDate>Mon, 24 Dec 2007 01:43:32 +0000</pubDate>
		<dc:creator>Hoakz</dc:creator>
				<category><![CDATA[Computer Applications and Programs]]></category>
		<category><![CDATA[configuration management]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[hard disks]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.hoakz.com/blog/?p=10</guid>
		<description><![CDATA[It took me some time to find out the equivalent of Window&#8217;s checkdisk/scandisk/chkdisk on Linux, but trust me, there are several. For starters I am going to take a look at badblocks, a command that as the name implies, looks for bad blocks. The basic format of badblocks are: badblocks [options] device If you have [...]]]></description>
			<content:encoded><![CDATA[<p>It took me some time to find out the equivalent of Window&#8217;s checkdisk/scandisk/chkdisk on Linux, but trust me, there are several.</p>
<p>For starters I am going to take a look at badblocks, a command that as the name implies, looks for bad blocks.</p>
<p>The basic format of badblocks are:</p>
<blockquote><p>badblocks [options] device</p></blockquote>
<p>If you have a fresh drive with <strong>no data or data that can be deleted on it</strong> you can do:</p>
<blockquote><p>badblocks -s -w /dev/sdb</p></blockquote>
<p>Note however, the -w command will <strong>erase all existing data on the drive</strong> so do not use it for drives with existing file systems on them.  You cannot use -w on a mounted drive, unmount it first.  The -s flag makes the command show a progress bar. This could come in handy when you are testing larger drives since even the fastest systems will take at least an hour to test an average sized drive (my 400GB took about 2 hours on a SATAII system).</p>
<p>If you want to test the drive without deleting data you can use the -n switch which will use non-destructive write-read mode, however, this switch can, for obvious reasons, not be combined with the -w switch.</p>
<blockquote><p>badblocks -s -n /dev/sdb</p></blockquote>
<h3>Links:</h3>
<ul>
<li><a title="Another manpage for badblocks" href="http://linux.about.com/library/cmd/blcmdl8_badblocks.htm" target="_blank">http://linux.die.net/man/8/badblocks</a></li>
<li><a title="Badblocks HowTo" href="http://smartmontools.sourceforge.net/BadBlockHowTo.txt" target="_blank">http://linux.about.com/library/cmd/blcmdl8_badblocks.htm</a></li>
<li><a title="Badblocks HowTo" href="http://smartmontools.sourceforge.net/BadBlockHowTo.txt" target="_blank">http://smartmontools.sourceforge.net/BadBlockHowTo.txt</a></li>
</ul>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.talkwards.com%2F2007%2F12%2Fbadblocks&amp;title=Badblocks" id="wpa2a_2"><img src="http://www.talkwards.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.talkwards.com/2007/12/badblocks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

