<?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>coCoKNIght.com &#187; RAID</title>
	<atom:link href="http://cocoknight.com/tag/raid/feed/" rel="self" type="application/rss+xml" />
	<link>http://cocoknight.com</link>
	<description>Online Portfolio of Fabian Hernandez</description>
	<lastBuildDate>Sat, 14 Jan 2012 19:55:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Recover Ubuntu from failed fsck on RAID partition</title>
		<link>http://cocoknight.com/recover-ubuntu-from-failed-fsck-on-raid-partition/</link>
		<comments>http://cocoknight.com/recover-ubuntu-from-failed-fsck-on-raid-partition/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 20:01:16 +0000</pubDate>
		<dc:creator>coCoKNIght</dc:creator>
				<category><![CDATA[Tech Talk]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://cocoknight.com/?p=523</guid>
		<description><![CDATA[This post explains how I managed to get my RAID system to boot again after a failed fsck on Ubuntu start-up.]]></description>
			<content:encoded><![CDATA[<p>When the periodical fsck on Ubuntu start-up returns an error, if you&#8217;ve set up a password for root, then you can just enter that password and repair the errors on your partition.<br />
But Ubuntu comes with the root account disabled per default and you&#8217;re recommended not to give root a password for security reasons. This means that you probably won&#8217;t be able to comply with this promt:</p>
<p><code>Give root password for mainenance<br />
(or type Control-D to continue): _</code></p>
<p>Further, you&#8217;re not presented with any console to login and perform the manual fsck. So the only option is to do the fsck from LiveCD. Normally this is fairly simple:</p>
<p><code>sudo fsck /dev/sda1</code></p>
<p>Replace <strong>sda1</strong> with the actual name of your partition. If you don&#8217;t know you can start the <strong>partition editor</strong> from the <strong>administration</strong> menu and check.</p>
<p>This is not so easy however if the partition you need to check is part of a <acronym title="Redundant Array of Independent Disks">RAID</acronym> because you have to configure and start software <acronym title="Redundant Array of Independent Disks">RAID</acronym> first. This is done with <strong>mdadm</strong>, however <strong>mdadm</strong> doesn&#8217;t come with the Ubuntu LiveCD.</p>
<p>So I ended up using a KNOPPIX LiveCD to be able to finally perform the manual fsck on my <acronym title="Redundant Array of Independent Disks">RAID</acronym> partition:</p>
<ul>
<li>Scan the <acronym title="Redundant Array of Independent Disks">RAID</acronym> partitions. You&#8217;ll also be verifying that you&#8217;re using the correct partitions that belong to a <acronym title="Redundant Array of Independent Disks">RAID</acronym>.<br />
<code>sudo mdadm --examine --scan /dev/sda1<br />
sudo mdadm --examine --scan /dev/sdb1</code><br />
The output should be something like this:<br />
<code>ARRAY /dev/md0 level=raid1 num-devices=2 UUID=a28090aa:6893be8b:c4024dfc:29cdb07a</code></li>
<li>Now edit <strong>mdadm.conf</strong>:<br />
<code>sudo nano /etc/mdadm/mdadm.conf</code><br />
and add the above output line to the end of the file with the following modification:<br />
<code>ARRAY /dev/md0 level=raid1 num-devices=2 UUID=a28090aa:6893be8b:c4024dfc:29cdb07a devices=/dev/sda1,/dev/sdb1</code><br />
where <strong>devices=/dev/sda1,/dev/sdb1</strong> are the two <acronym title="Redundant Array of Independent Disks">RAID</acronym> partitions you want to perform the fsck</li>
<li>Start the <acronym title="Redundant Array of Independent Disks">RAID</acronym> setup:<br />
<code>sudo /etc/init.d/mdadm start<br />
sudo /etc/init.d/mdadm-raid start</code></li>
<li>Perform the fsck on your <acronym title="Redundant Array of Independent Disks">RAID</acronym> partition:<br />
<code>sudo fsck /dev/md0</code></li>
<li>Finally restart into your now booting Ubuntu system</li>
</ul>
<p><strong>Sources:</strong></p>
<ul>
<li><a title="Recover Data From RAID1 LVM Partitions With Knoppix Linux LiveCD" href="http://www.howtoforge.com/recover_data_from_raid_lvm_partitions">Recover Data From RAID1 LVM Partitions With Knoppix Linux LiveCD</a></li>
<li> <a title="After fsck failure, mantenance shell asks for root password" href="https://bugs.launchpad.net/ubuntu/+bug/372430">Launchpad bug report</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cocoknight.com/recover-ubuntu-from-failed-fsck-on-raid-partition/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

