<?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>Alex Amiryan's Linux Blog &#187; migration</title>
	<atom:link href="http://www.amiryan.org/tag/migration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.amiryan.org</link>
	<description>Just sharing my experiance in linux</description>
	<lastBuildDate>Tue, 10 Nov 2009 19:56:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Howto move your linux instalation to another hard drive</title>
		<link>http://www.amiryan.org/2008/10/16/howto-move-your-linux-instalation-to-another-hard-drive/</link>
		<comments>http://www.amiryan.org/2008/10/16/howto-move-your-linux-instalation-to-another-hard-drive/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 12:26:41 +0000</pubDate>
		<dc:creator>Alex Amiryan</dc:creator>
				<category><![CDATA[howtos]]></category>
		<category><![CDATA[migration]]></category>

		<guid isPermaLink="false">http://alexamiryan.wordpress.com/?p=116</guid>
		<description><![CDATA[In this post I will describe how to move your existing linux installation to another hard drive. This maybe useful if you have bought a new computer and you want to keep your linux and not install it from scratch. So first of all we will need some live cd linux, because we can&#8217;t migrate [...]]]></description>
			<content:encoded><![CDATA[<!--Amazon_CLS_IM_START--><p>In this post I will describe how to move your existing linux installation to another hard drive. This maybe useful if you have bought a new computer and you want to keep your linux and not install it from scratch.</p>
<p>So first of all we will need some live cd linux, because we can&#8217;t migrate &#8220;/&#8221; partition when system is running because there are many temporary files (like lock files, pid files) that we don&#8217;t need to migrate, otherwise migrated system will not run correctly. So I have chosen Knoppix live cd which you can download from <a title="Knoppix" href="http://www.knoppix.net/" target="_blank">http://www.knoppix.net/</a>.</p>
<p>Now we need to connect both hard drives (old and new) to same computer and boot from Knoppix live cd.<br />
When Knoppix is successfully booted we need to mount both partitions (old and new). Note that we need to mount new partition in writable mode. If you haven&#8217;t any created partition yet on new hard drive you can create it by running &#8220;qtparted&#8221; or &#8220;gparted&#8221;. Let&#8217;s assume that old partition&#8217;s name is <strong>sda1</strong> and new one is <strong>sdb5</strong>.</p>
<p>Then we have to open terminal, become root:</p>
<pre class="brush: bash">$ su</pre>
<p>After that we can start copying:</p>
<pre class="brush: bash">$ cp -av /mount/sda1/* /mount/sdb5/</pre>
<p>This may take a while depending on size of your data.</p>
<p>After that boot with your distributive cd, enter &#8220;rescue system&#8221; mode (in my case I&#8217;m using fedora) and simply run:</p>
<pre class="brush: bash">$ grub-install /dev/sdb5</pre>
<p>That&#8217;s all. If you will experience some problems don&#8217;t hesitate to write me about that <img src='http://www.amiryan.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<!--Amazon_CLS_IM_END-->]]></content:encoded>
			<wfw:commentRss>http://www.amiryan.org/2008/10/16/howto-move-your-linux-instalation-to-another-hard-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
