<?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>the cosmotron &#187; mount</title>
	<atom:link href="http://thecosmotron.com/tag/mount/feed/" rel="self" type="application/rss+xml" />
	<link>http://thecosmotron.com</link>
	<description>the blog of ryan lewis</description>
	<lastBuildDate>Mon, 14 Nov 2011 02:22:29 +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>Fix &#8220;Unexpected clusters per mft record (-127)&#8221;</title>
		<link>http://thecosmotron.com/2009/03/15/fix-unexpected-clusters-per-mft-record-127/</link>
		<comments>http://thecosmotron.com/2009/03/15/fix-unexpected-clusters-per-mft-record-127/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 16:44:07 +0000</pubDate>
		<dc:creator>Ryan Lewis</dc:creator>
				<category><![CDATA[Planet COSI]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mft]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[testdisk]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://thecosmotron.com/?p=132</guid>
		<description><![CDATA[I encountered this error yesterday after trying to fix some Windows bootloader issues in Ubuntu with ms-sys. Needless to say, I just created more issues and eventually couldn&#8217;t even mount my Windows partition from Ubuntu, as this would happen: # mount -t ntfs-3g -o force /dev/sda1 /mnt/win Unexpected clusters per mft record (-127). Failed to [...]]]></description>
			<content:encoded><![CDATA[<p>I encountered this error yesterday after trying to fix some Windows bootloader issues in Ubuntu with <code>ms-sys</code>.  Needless to say, I just created more issues and eventually couldn&#8217;t even mount my Windows partition from Ubuntu, as this would happen:</p>
<pre>
# mount -t ntfs-3g -o force /dev/sda1 /mnt/win
Unexpected clusters per mft record (-127).
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't have a valid NTFS.
</pre>
<p>I tried to recover it using a Windows XP disk, but that didn&#8217;t work because it wouldn&#8217;t recognize my <code>C:\WINDOWS</code> folder!  At this point, I was getting pretty worried.</p>
<p>So, back in Ubuntu, I do a bit more reading and find out about the <code>testdisk</code> command (<code>apt-get install testdisk</code>) and a nice <a href="http://ubuntuforums.org/showpost.php?p=6612068&#038;postcount=11">post about how to use it</a> on the Ubuntu forums.  To summarize, this is what I took out of that post to get <code>mount</code> to actually work after:</p>
<blockquote><p>
After starting testdisk, choose &#8220;No log&#8221;, choose the correct HDD and &#8220;Proceed&#8221;, choose &#8220;Intel&#8221;, choose &#8220;Advanced&#8221;, select the Windows partition, choose &#8220;Boot&#8221;, then choose &#8220;Rebuild BS&#8221;.</p>
<p>If testdisk gives you a warning that the &#8220;Extrapolated boot sector and current boot sector are different&#8221;, then choose &#8220;Write&#8221;.
</p></blockquote>
<p>Sure enough, something was messed and it was able to fix it after I selected &#8220;Write&#8221;.</p>
<p>After all this, <code>mount</code> worked, and when I rebooted, the Windows XP disk detected the installation and I was able to fix my MBR like I wanted.</p>
]]></content:encoded>
			<wfw:commentRss>http://thecosmotron.com/2009/03/15/fix-unexpected-clusters-per-mft-record-127/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

