<?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>/home/shakir &#187; recovery</title>
	<atom:link href="http://www.mohdshakir.net/tag/recovery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mohdshakir.net</link>
	<description>My Piece Of The Web</description>
	<lastBuildDate>Fri, 16 Jul 2010 15:45:34 +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>Recover lost / corrupted GRUB (MBR) entry</title>
		<link>http://www.mohdshakir.net/2008/01/04/recover-lost-corrupted-grub-entry</link>
		<comments>http://www.mohdshakir.net/2008/01/04/recover-lost-corrupted-grub-entry#comments</comments>
		<pubDate>Thu, 03 Jan 2008 18:26:25 +0000</pubDate>
		<dc:creator>shakir</dc:creator>
				<category><![CDATA[Information Insemination]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.mohdshakir.net/2008/01/04/recover-lost-corrupted-grub-entry</guid>
		<description><![CDATA[Often time the Master Boot Record (MBR) is also lost / corrupted when the we&#8217;re having problem with the partition table, and so here I extend my previous post on recovering lost partition table using the Ubuntu Live CD. First of all, let&#8217;s mount the related stuff; ubuntu@ubuntu:~$ sudo mount -o ro /dev/sda1 /media/ ubuntu@ubuntu:~$ [...]]]></description>
			<content:encoded><![CDATA[<p>Often time the Master Boot Record (MBR) is also lost / corrupted when the we&#8217;re having problem with the partition table, and so here I extend my <a href="http://www.mohdshakir.net/2008/01/03/recover-lost-partition-table-using-ubuntu-live-cd-gpart">previous post</a> on recovering lost partition table using the Ubuntu Live CD.</p>
<p>First of all, let&#8217;s mount the related stuff;</p>
<pre>
ubuntu@ubuntu:~$ sudo mount -o ro /dev/sda1 /media/
ubuntu@ubuntu:~$ sudo mount -o bind /dev/ /media/dev/
ubuntu@ubuntu:~$ sudo mount -o bind /proc/ /media/proc/
</pre>
<p>and then chroot</p>
<pre>
ubuntu@ubuntu:~$ sudo chroot /media/
</pre>
<p>Once we are in the chroot environment, run grub</p>
<pre>
bash:~# grub</pre>
<p>Assuming you are installing grub on your first harddisk, and your root filesystem in the first partition of your first harddisk, your journey should be something like this;</p>
<pre>
    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]

grub&gt; root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub&gt; setup (hd0)
 Checking if &quot;/boot/grub/stage1&quot; exists... yes
 Checking if &quot;/boot/grub/stage2&quot; exists... yes
 Checking if &quot;/boot/grub/e2fs_stage1_5&quot; exists... yes
 Running &quot;embed /boot/grub/e2fs_stage1_5 (hd0)&quot;...  16 sectors are embedded.
succeeded
 Running &quot;install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2
/boot/grub/grub.conf&quot;... succeeded
Done.

grub&gt; quit
</pre>
<p>Once you&#8217;re done with that, you might want to unmount whatever you have mounted before. Don&#8217;t forget to exit from the mount directory first;</p>
<pre>
ubuntu@ubuntu:~$ cd ..
ubuntu@ubuntu:~$ sudo umount /media/proc/
ubuntu@ubuntu:~$ sudo umount /media/dev/
ubuntu@ubuntu:~$ sudo umount /media
</pre>
<p>and then reboot to see if your problem is really fixed..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohdshakir.net/2008/01/04/recover-lost-corrupted-grub-entry/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Recover lost partition table using Ubuntu Live CD + gpart</title>
		<link>http://www.mohdshakir.net/2008/01/03/recover-lost-partition-table-using-ubuntu-live-cd-gpart</link>
		<comments>http://www.mohdshakir.net/2008/01/03/recover-lost-partition-table-using-ubuntu-live-cd-gpart#comments</comments>
		<pubDate>Thu, 03 Jan 2008 03:28:12 +0000</pubDate>
		<dc:creator>shakir</dc:creator>
				<category><![CDATA[Information Insemination]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.mohdshakir.net/2008/01/03/recover-lost-partition-table-using-ubuntu-live-cd-gpart</guid>
		<description><![CDATA[My friend suddenly ask me for a Ubuntu Live CD and upon being asked he told me that he has not been able to boot his machine for getting the Operating System not found error. I&#8217;m posting here on how did I helped him out with the problem for documentation. The program I used was [...]]]></description>
			<content:encoded><![CDATA[<p>My friend suddenly ask me for a Ubuntu Live CD and upon being asked he told me that he has not been able to boot his machine for getting the <em>Operating System not found</em> error. I&#8217;m posting here on how did I helped him out with the problem for documentation.</p>
<p>The program I used was <em>gpart</em>, and to use it in Ubuntu (Live CD) is to add <em>Universe</em> repository to <em>/etc/apt/sources.list</em> as this;</p>
<pre>
deb http://archive.ubuntu.com/ubuntu gutsy main restricted universe
</pre>
<p>and run this commands to install it.</p>
<pre>
ubuntu@ubuntu:~$ sudo apt-get update
ubuntu@ubuntu:~$ sudo apt-get install gpart
</pre>
<p>By running the next command, gpart will search the whole disk for possible partitions and write it&#8217;s findings to the partition table:</p>
<pre>
ubuntu@ubuntu:~$ sudo gpart /dev/sda -W /dev/sda
</pre>
<p>That&#8217;s it. Just reboot and see if your system is now bootable&#8230;</p>
<p>p/s: Other than gpart, testdisk can also be used for partition recovery, but i&#8217;m not covering it here..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohdshakir.net/2008/01/03/recover-lost-partition-table-using-ubuntu-live-cd-gpart/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
