<?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>Jetpack Flight Log &#187; chkdsk</title>
	<atom:link href="http://jetpackweb.com/blog/tags/chkdsk/feed/" rel="self" type="application/rss+xml" />
	<link>http://jetpackweb.com/blog</link>
	<description>Rock{et}ing the interweb</description>
	<lastBuildDate>Wed, 19 May 2010 22:21:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>chkdsk and Grub</title>
		<link>http://jetpackweb.com/blog/2009/07/13/chkdsk-and-grub/</link>
		<comments>http://jetpackweb.com/blog/2009/07/13/chkdsk-and-grub/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 23:41:28 +0000</pubDate>
		<dc:creator>Brian Racer</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[chkdsk]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://jetpackweb.com/blog/?p=27</guid>
		<description><![CDATA[Recently I used GParted to resize an NTFS disk to dual boot Ubuntu and Windows XP. I finished the Ubuntu installation and everything seemed to be working fine until I tried to boot back into XP. Windows reported there might be disk corruption, ran chkdsk, and chkdsk ended up freezing. I rebooted again and saw [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I used GParted to resize an NTFS disk to dual boot Ubuntu and Windows XP. I finished the Ubuntu installation and everything seemed to be working fine until I tried to boot back into XP. Windows reported there might be disk corruption, ran chkdsk, and chkdsk ended up freezing. I rebooted again and saw that the grub bootloader was now also freezing. Delightful. Although I didn&#8217;t think chkdsk modified the MBR, upon further research in some cases it does(when run with the /r switch) and in this case ends up corrupting the MBR. To fix this issue you can perform the following:</p>
<p>Boot with an Ubuntu Live CD and open up a terminal.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family: Monaco, monospace;"><span class="kw2">sudo</span> grub
&nbsp;
grub<span class="sy0">&gt;</span> <span class="kw2">find</span> <span class="sy0">/</span>boot<span class="sy0">/</span>grub<span class="sy0">/</span>stage1</pre></div></div>

<p>Note the hd<em>x</em> number and partition number to it&#8217;s right. Now type the following commands into the grub prompt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family: Monaco, monospace;">grub<span class="sy0">&gt;</span> root <span class="br0">&#40;</span>hdx, y<span class="br0">&#41;</span>
&nbsp;
grub<span class="sy0">&gt;</span> setup <span class="br0">&#40;</span>hdx<span class="br0">&#41;</span>
&nbsp;
grub<span class="sy0">&gt;</span> quit</pre></div></div>

<p>Note whitespace is important here. Now you can reboot. When Windows asks to run chkdsk hit a key to cancel. Once in Windows, open a command prompt and type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family: Monaco, monospace;">chkntfs <span class="sy0">/</span>c c:</pre></div></div>

<p>This will schedule a disk check on reboot that will not alter the MBR. Reboot and allow the disk check to complete. It may automatically reboot your system again, but once that is finished both OS&#8217;s should boot fine from now on.</p>
]]></content:encoded>
			<wfw:commentRss>http://jetpackweb.com/blog/2009/07/13/chkdsk-and-grub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
