<?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>Jucato's Data Core &#187; HowTo</title>
	<atom:link href="http://jucato.org/blog/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://jucato.org/blog</link>
	<description>The Log Module</description>
	<lastBuildDate>Sun, 17 Jan 2010 15:05:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HowTo: Dual Booting the N810</title>
		<link>http://jucato.org/blog/howto-dual-booting-the-n810/</link>
		<comments>http://jucato.org/blog/howto-dual-booting-the-n810/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 07:41:30 +0000</pubDate>
		<dc:creator>Jucato</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[N810]]></category>

		<guid isPermaLink="false">http://jucato.org/blog/?p=181</guid>
		<description><![CDATA[Topics: FOSS, KDE, N810, HowTo
This isn&#8217;t really a full HowTo. They&#8217;re more like my own notes for future reference, for myself and hopefully for others as well. Instead, I link to already available material, but make annotations for some customizations that I made.
This HowTo describes the steps to take in &#8220;dual booting&#8221; on the N810, [...]]]></description>
			<content:encoded><![CDATA[<p>Topics: <a href="http://jucato.org/blog/category/foss/">FOSS</a>, <a href="http://jucato.org/blog/category/kde/">KDE</a>, <a href="http://jucato.org/blog/category/n810/">N810</a>, <a href="http://jucato.org/blog/category/howto/">HowTo</a></p>
<p>This isn&#8217;t really a full HowTo. They&#8217;re more like my own notes for future reference, for myself and hopefully for others as well. Instead, I link to already available material, but make annotations for some customizations that I made.</p>
<p>This HowTo describes the steps to take in &#8220;dual booting&#8221; on the N810, that is, booting from a flash card.</p>
<p><strong>1. Why dual/multi-boot?</strong></p>
<p>The Maemo wiki cites a few reasons why. The main reason why I decided to dual boot was space. I really wasn&#8217;t using the internal 2GB flash memory and I have no use of GPS at the moment. And since Marijn&#8217;s <a href="http://www.kdedevelopers.org/node/3879">KDE packages</a> would be taking up more space, I decided to use the internal memory as my &#8220;main partition&#8221;. It will probably be useful for future KDE development as well. <em>(Note: Marijn says that the packages were broken, so I wasn&#8217;t able to install them fully at that time)</em></p>
<p><strong>2. First, gain root powers</strong></p>
<p>To be able to perform any of the next steps, you need to have superuser access. The Maemo wiki presents three ways to gain root access. I was advised to use the openssh method. This way, I hit two birds (root access and ssh) with one stone.</p>
<p><a href="http://wiki.maemo.org/Root_access">Maemo wiki: Root access</a></p>
<p><strong>3. Split the card</strong></p>
<p>I&#8217;m not sure if this step is absolutely necessary. But since the N810 uses the internal flash memory for virtual memory (swap) automatically, I think it&#8217;s a good thing to do so anyway.</p>
<p><strong>IMPORTANT: Be sure to backup your data on the internal flash memory as partitioning and formatting will completely erase anything in there.</strong></p>
<p>Oh, and turn off virtual memory in the Control Panel first.</p>
<p>Partitioning might be a bit daunting if you&#8217;re not used to command line partitioning tools like fdisk and sfdisk. But the guide in the wiki is very simple and straightforward. The most confusing part is trying to remember which device node (under /dev) stands for which flash card. Just remember that <strong>mmc*1</strong> is for <strong>external</strong>. anything else (mmc*0 and mmc2) are for internal.</p>
<p>Some other notes: </p>
<ul>
<li> The first partition&#8217;s starting cylinder is always 1.</li>
<li> The next partition&#8217;s starting cylinder is 1 more than the previous partition&#8217;s end cylinder</li>
<li> To compute the number of cylinders for a given MB size, I used the formula <strong>numCylinders = sizeMB / 0.032</strong> or <strong>numCylinders = sizeKB / 32</strong>.</li>
</ul>
<p>Since I wanted to split the card in half, but giving more space for the cloned system, I gave around 29,000 cylinders to the first partition, leaving the rest to the second partition. The sfdisk step looked something like this:</p>
<pre>
sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,29000,6
/dev/mmcblk0p2:29001,,
</pre>
<p><a href="http://wiki.maemo.org/Partitioning_a_flash_card">Maemo wiki: Partitioning a flash card</a></p>
<p><strong>4. Attack of the clones</strong></p>
<p>This last step was the most complicated in the process, but even that is made easy by a lot of ready made scripts. It would be best if you had your Maemo browser open to the wiki page so that you can just copy the wget commands instead of typing them manually (which I stupidly did).</p>
<p>I followed the guide to the letter except for the following:</p>
<ul>
<li> I didn&#8217;t configure the bootmenu options at that time (see below for more information)</li>
<li> Since I was using the latest Diablo version, I used <strong>immc2</strong> for the device name in the <strong><em>Set the default boot device</em></strong> step.</li>
<li> I also didn&#8217;t remove the menu (last step)</li>
</ul>
<p><a href="http://wiki.maemo.org/Booting_from_a_flash_card">Maemo wiki: Booting from a flash card</a></p>
<p><strong>5. And finally&#8230;</strong></p>
<p>Everything went well and I was booted into the clone system on the internal flash card in no time. Now for some final tips:</p>
<ul>
<li> Don&#8217;t forget to re-enable the virtual memory</li>
<li> Don&#8217;t be worried if the memory usage reported for the Device is almost twice as big as on the original system. I was told that this is because the flash card is not compressed, unlike in the original um&#8230; memory (what is the technical name for that? RAM?).</li>
<li> I found that the 30 (or was it 20?) second delay for the boot menu was too long. I wanted to shorten that time, like you could when using GRUB. You can edit the <strong>bootmenu.sh</strong> file in <strong><em>/mnt/initfs/</em></strong>. However, that mount is read-only, so you have to remount the thing with this command: <strong>mount -o remount,rw /mnt/initfs/</strong>. Look for the MENU_TIMEOUT line and set the number of seconds that you want.</li>
</ul>
<p>Enjoy your cloned system and extra space! <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jucato.org/blog/howto-dual-booting-the-n810/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
