<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://thinkserver.freddythechick.net/index.php?action=history&amp;feed=atom&amp;title=Making_a_corrupt_RAID_drive_readable</id>
	<title>Making a corrupt RAID drive readable - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://thinkserver.freddythechick.net/index.php?action=history&amp;feed=atom&amp;title=Making_a_corrupt_RAID_drive_readable"/>
	<link rel="alternate" type="text/html" href="https://thinkserver.freddythechick.net/index.php?title=Making_a_corrupt_RAID_drive_readable&amp;action=history"/>
	<updated>2026-09-18T14:25:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://thinkserver.freddythechick.net/index.php?title=Making_a_corrupt_RAID_drive_readable&amp;diff=120&amp;oldid=prev</id>
		<title>&gt;Samthecrazyman: Added more, formatting number list needs sorting</title>
		<link rel="alternate" type="text/html" href="https://thinkserver.freddythechick.net/index.php?title=Making_a_corrupt_RAID_drive_readable&amp;diff=120&amp;oldid=prev"/>
		<updated>2012-06-12T02:09:06Z</updated>

		<summary type="html">&lt;p&gt;Added more, formatting number list needs sorting&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:09, 12 June 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# If you RAID drive is still mounted (which it shouldn&amp;#039;t be if it thinks it&amp;#039;s corrupt!), unmount the drive as soon as possible. This will stop data becoming more inconsistent than it currently is. In a console, type &amp;lt;code&amp;gt;umount /dev/md#&amp;lt;/code&amp;gt;, # being a number under which the array is mounted. If you only have 1 array mounted, popular defaults include &amp;lt;code&amp;gt;/dev/md0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/dev/md127&amp;lt;/code&amp;gt;. Once this step is complete, nothing else can be changed on the drives. No harm in checking by running this step!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# If you RAID drive is still mounted (which it shouldn&amp;#039;t be if it thinks it&amp;#039;s corrupt!), unmount the drive as soon as possible. This will stop data becoming more inconsistent than it currently is. In a console, type &amp;lt;code&amp;gt;umount /dev/md#&amp;lt;/code&amp;gt;, # being a number under which the array is mounted. If you only have 1 array mounted, popular defaults include &amp;lt;code&amp;gt;/dev/md0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/dev/md127&amp;lt;/code&amp;gt;. Once this step is complete, nothing else can be changed on the drives. No harm in checking by running this step!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check the array and see what drives are still a part of the array. In a console, type &amp;lt;code&amp;gt;cat /proc/mdstat&amp;lt;/code&amp;gt;. This shows the status of all active software RAID arrays. You should see something similar to the following:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check the array and see what drives are still a part of the array. In a console, type &amp;lt;code&amp;gt;cat /proc/mdstat&amp;lt;/code&amp;gt;. This shows the status of all active software RAID arrays. You should see something similar to the following:  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;md0: active raid1 sda1[0] sdb1[1]&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;br&lt;/del&gt;&amp;gt;#&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;###### &lt;/del&gt;blocks [1/2] [_U]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#: &amp;lt;pre&amp;gt;&lt;/ins&gt;md0: active raid1 sda1[0] sdb1[1]&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;: &amp;lt;pre&amp;gt;976760696 &lt;/ins&gt;blocks &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;super 1.0 &lt;/ins&gt;[1/2] [_U]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#: &amp;lt;pre&amp;gt;bitmap: 3/8 pages [12KB], 65536KB chunk&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# In brackets, you will see either &amp;lt;code&amp;gt;[_U]&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;[U_]&amp;lt;/code&amp;gt;. This shows a drive has failed as it should be &amp;lt;code&amp;gt;[UU]&amp;lt;/code&amp;gt;. Looking at the top where it says the drive names, these are the order of the drives in the array, so if it shows &amp;lt;code&amp;gt;[_U]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;sda1&amp;lt;/code&amp;gt; has failed.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;for guidance later: fsck.ext4 /dev/sda&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; -y&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;for guidance later: fsck.ext4 /dev/sda&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; -y&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;helpful source: http://linuxfanboy.com/index.php/Linux_Software_RAID see screenshots&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;helpful source: http://linuxfanboy.com/index.php/Linux_Software_RAID see screenshots&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key thinkserver:diff:1.41:old-119:rev-120:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Samthecrazyman</name></author>
	</entry>
	<entry>
		<id>https://thinkserver.freddythechick.net/index.php?title=Making_a_corrupt_RAID_drive_readable&amp;diff=119&amp;oldid=prev</id>
		<title>&gt;Samthecrazyman: Added helpful source</title>
		<link rel="alternate" type="text/html" href="https://thinkserver.freddythechick.net/index.php?title=Making_a_corrupt_RAID_drive_readable&amp;diff=119&amp;oldid=prev"/>
		<updated>2012-06-03T18:00:00Z</updated>

		<summary type="html">&lt;p&gt;Added helpful source&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:00, 3 June 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;for guidance later: fsck.ext4 /dev/sda&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; -y&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;for guidance later: fsck.ext4 /dev/sda&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; -y&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;helpful source: http://linuxfanboy.com/index.php/Linux_Software_RAID see screenshots&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key thinkserver:diff:1.41:old-118:rev-119:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Samthecrazyman</name></author>
	</entry>
	<entry>
		<id>https://thinkserver.freddythechick.net/index.php?title=Making_a_corrupt_RAID_drive_readable&amp;diff=118&amp;oldid=prev</id>
		<title>&gt;Samthecrazyman: Spelling checked, added -y option</title>
		<link rel="alternate" type="text/html" href="https://thinkserver.freddythechick.net/index.php?title=Making_a_corrupt_RAID_drive_readable&amp;diff=118&amp;oldid=prev"/>
		<updated>2012-06-03T17:57:26Z</updated>

		<summary type="html">&lt;p&gt;Spelling checked, added -y option&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:57, 3 June 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Attempt to repair and mount a damaged drive from a RAID array ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Attempt to repair and mount a damaged drive from a RAID array ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# If you RAID drive is still mounted (which it &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;shouln&lt;/del&gt;&#039;t be if it thinks it&#039;s corrupt!), unmount the drive as soon as possible. This will stop data becoming more inconsistent than it currently is. In a console, type &amp;lt;code&amp;gt;umount /dev/md#&amp;lt;/code&amp;gt;, # being a number under which the array is mounted. If you only have 1 array mounted, popular defaults include &amp;lt;code&amp;gt;/dev/md0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/dev/md127&amp;lt;/code&amp;gt;. Once this step is complete, nothing else can be changed on the drives. No harm in checking by running this step!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# If you RAID drive is still mounted (which it &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;shouldn&lt;/ins&gt;&#039;t be if it thinks it&#039;s corrupt!), unmount the drive as soon as possible. This will stop data becoming more inconsistent than it currently is. In a console, type &amp;lt;code&amp;gt;umount /dev/md#&amp;lt;/code&amp;gt;, # being a number under which the array is mounted. If you only have 1 array mounted, popular defaults include &amp;lt;code&amp;gt;/dev/md0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/dev/md127&amp;lt;/code&amp;gt;. Once this step is complete, nothing else can be changed on the drives. No harm in checking by running this step!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check the array and see what drives are still a part of the array. In a console, type &amp;lt;code&amp;gt;cat /proc/mdstat&amp;lt;/code&amp;gt;. This shows the status of all active software RAID arrays. You should see something similar to the following:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check the array and see what drives are still a part of the array. In a console, type &amp;lt;code&amp;gt;cat /proc/mdstat&amp;lt;/code&amp;gt;. This shows the status of all active software RAID arrays. You should see something similar to the following:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   md0: active raid1 sda1[0] sdb1[1]&amp;lt;br&amp;gt;####### blocks [1/2] [_U]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   md0: active raid1 sda1[0] sdb1[1]&amp;lt;br&amp;gt;####### blocks [1/2] [_U]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;for &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;guideance &lt;/del&gt;later: fsck.ext4 /dev/sda&#039;&#039;&#039;1&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;for &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;guidance &lt;/ins&gt;later: fsck.ext4 /dev/sda&#039;&#039;&#039;1&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-y&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key thinkserver:diff:1.41:old-117:rev-118:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Samthecrazyman</name></author>
	</entry>
	<entry>
		<id>https://thinkserver.freddythechick.net/index.php?title=Making_a_corrupt_RAID_drive_readable&amp;diff=117&amp;oldid=prev</id>
		<title>&gt;Samthecrazyman: Article started, not finished yet</title>
		<link rel="alternate" type="text/html" href="https://thinkserver.freddythechick.net/index.php?title=Making_a_corrupt_RAID_drive_readable&amp;diff=117&amp;oldid=prev"/>
		<updated>2012-06-03T17:56:42Z</updated>

		<summary type="html">&lt;p&gt;Article started, not finished yet&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sometimes when working with Linux RAID devices, they can become out of sync and ultimately look corrupt to Linux. However, all is not always lost, it maybe just the fact it LOOKS corrupt when in reality, no data has been lost. This article will show you how to attempt to make the drive work so you at least have access to your data locked away on the drive.&lt;br /&gt;
&lt;br /&gt;
== What you need to know ==&lt;br /&gt;
&lt;br /&gt;
* You will need to know what the file system of the corrupt drive is, where the array was originally mounted and the drives in the array.&lt;br /&gt;
* This guide is for a Linux RAID setup using &amp;lt;code&amp;gt;mdadm&amp;lt;/code&amp;gt;. This will not work with any other RAID setups such as hardware RAID.&lt;br /&gt;
* This will not work to my knowledge if you are using a RAID-0 setup. This method is only tested with a RAID-1 setup, but may work with other mirrored RAID setups with a bit of tinkering.&lt;br /&gt;
* Once the procedure is complete, it is advised you copy your data to another source and re-establish a new RAID setup.&lt;br /&gt;
* You should attempt this on the drive that was running in the array the longest before the problems occurred. This will make sure the data is the most current.&lt;br /&gt;
* If you don&amp;#039;t feel confident, it is advisable to take an image of the corrupt drive to fall back on if there are problems later.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;This may not even work at all and you may lose some or all of your data. There is no 100% guarantee this will work, try at your own risk!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Attempt to repair and mount a damaged drive from a RAID array ==&lt;br /&gt;
&lt;br /&gt;
# If you RAID drive is still mounted (which it shouln&amp;#039;t be if it thinks it&amp;#039;s corrupt!), unmount the drive as soon as possible. This will stop data becoming more inconsistent than it currently is. In a console, type &amp;lt;code&amp;gt;umount /dev/md#&amp;lt;/code&amp;gt;, # being a number under which the array is mounted. If you only have 1 array mounted, popular defaults include &amp;lt;code&amp;gt;/dev/md0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/dev/md127&amp;lt;/code&amp;gt;. Once this step is complete, nothing else can be changed on the drives. No harm in checking by running this step!&lt;br /&gt;
# Check the array and see what drives are still a part of the array. In a console, type &amp;lt;code&amp;gt;cat /proc/mdstat&amp;lt;/code&amp;gt;. This shows the status of all active software RAID arrays. You should see something similar to the following:&lt;br /&gt;
  md0: active raid1 sda1[0] sdb1[1]&amp;lt;br&amp;gt;####### blocks [1/2] [_U]&lt;br /&gt;
&lt;br /&gt;
for guideance later: fsck.ext4 /dev/sda&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>&gt;Samthecrazyman</name></author>
	</entry>
</feed>