<strong><a href="Non-Sumou.html">Other Nokia N900 GNU mobile phone tips</a></strong></p>

The Nokia N900 is the first full GNU mobile phone.</p>

However it suffers from a very poor root file system partitioning scheme. It has root mounted with only 80 Megs free, other than that the internal disk has two partitions mounted, one ext3 of 2 Gigs, and one FAT (of all things, terrible) with 23 Gigs.</p>

There is no way to repartition the device, as the partitions live on differet chips...</p>

To get more root space, and especially more ext3 space, this is what you should do on a clean device <strong>(assuming your ext3 formatted MicroSD is mounted at /media/0)</strong>:</p> <ul> <li>Enable Maemo extras repository: start Application manager &gt; menu &gt; Application catalogs &gt; Maemo Extras &gt; untick Disabled.</li> <li>Install rootsh from Application manager.</li> <li><table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>$ mkdir /media/0/n900<br /> $ cp -r ~/MyDocs /media/0/n900/<br /> $ wget -c <a href="http://sumoudou.org/n900/fdisk">http://sumoudou.org/n900/fdisk</a></b></td></tr></table></li> <li><table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b># umount /home/user/MyDocs<br /> # cp -a /home /media/0/n900/<br /> # ./fdisk /dev/mmcblk0</b></td></tr></table></li> <li>In fdisk change the type of partition 1 to 83, to change it to ext3, save and exit fdisk.</li> <li><table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b># mkfs.ext3 /dev/mmcblk0p1<br /> # mount /dev/mmcblk0p1 /home/user/MyDocs<br /> cd /home/<br /> cp -r * /home/user/MyDocs</b></td></tr></table></li> <li>Reboot. <em>/dev/mmcblk0p1</em> will mount as <em>/home</em>, <em>/dev/mmcblk0p2</em> will not mount.</li> <li><table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b># ./fdisk /dev/mmcblk0</b></td></tr></table></li> <li>In fdisk change the type of partition 2 to c, to change it to FAT. A fat partition is needed to be mounted in ~/MyDocs, otherwise Nokia N900's camera will not save pictures. Save the partition table and exit.</li> <li><table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b># mkfs.vfat /dev/mmcblk0p2<br /> mount -t vfat /dev/mmcblk0p2 /home/user/MyDocs<br /> mv -r /media/0/n900/MyDocs/* /home/user/MyDocs<br /> rm -r /media/0/n900</b></td></tr></table></li> <li>Edit <em>/etc/event.d/rcS-late</em> as root and after the line:</li> </ul> <blockquote> <p class="quoted"></p> </blockquote> <pre class="example">

/bin/mount /home echo &quot;Failed to mount /home partition.&quot;
</pre> <blockquote> <p class="quoted">add the following two lines:</p> </blockquote> <blockquote> <p class="quoted"></p> </blockquote> <pre class="example"> /bin/mount /home/user/MyDocs&lt;br&gt;

/bin/mount /dev/mmcblk1p1 /media/0 -t ext3 /

<ul> <li><table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b># mkdir -p /home/root/usr/share<br /> cd /usr/<br /> for FILE in games include local src var<br /> do<br /> mv $FILE /home/root/usr/<br /> ln -s /home/root/usr/$FILE /usr/<br /> done<br /> mkdir -p /home/root/var/cache<br /> cd /var/cache/<br /> for FILE in apt<br /> do<br /> <blockquote> <p class="quoted">mv $FILE /home/root/var/cache/<br /> ln -s /home/root/var/cache/$FILE /var/cache/<br /> done<br /> cd /usr/share/<br /> for FILE in fonts icons locale mime nokia-maps pixmaps sounds themes tutorial-applet zoneinfo<br /> do<br /> mv $FILE /home/root/usr/share/<br /> ln -s /home/root/usr/share/$FILE /usr/share/<br /> done<br /> mkdir /home/root/usr/share/games<br /> ln -s /home/root/usr/share/games .</b></td></tr></table></p> </blockquote></li> <li>Reboot.</li> </ul>

The N900 will reboot and as a result of the above you will have:

<ul> <li>111 Megs free in /</li> <li>/home with 23 Gigs free in ext3</li> <li>/home/user/MyDocs in FAT of 2 Gigs</li> </ul> <!— Page published by Emacs Muse ends here —> </div> <i>To send me feedback about this page, use the below email.</i><br /> <b>&copy; sumoudou.org 2010</b><br /> <img style="border:0" alt="sumoudou.org" src="email.gif" width="129" height="10" /><br /> <a href="http://www.gnu.org/" style="text-decoration: none;"><img style="border:0" alt="GNU" src="powered-by-gnu.png" />]] <a href="http://www.gnu.org/software/emacs/emacs.html" style="text-decoration: none;"><img style="border:0" alt="GNU Emacs" src="made-with-emacs.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hcoop-proud-member.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hosted-by-hcoop.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="made-with-muse.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="powered-by-muse.png" />]] <br /> <a href="http://www.fsf.org/resources/formats/playogg" style="text-decoration: none;"><img style="border:0" alt="Ogg" src="play-ogg.png" />]] <a href="http://www.catb.org/hacker-emblem/" style="text-decoration: none;"><img style="border:0" alt="Glider" src="glider.png" />]] <a href="http://ubuntu.com/" style="text-decoration: none;"><img style="border:0" alt="Ubuntu" src="ubuntu.png" />]] <a href="http://validator.w3.org/check?uri=referer" style="text-decoration: none;"><img style="border:0" alt="Valid XHTML 1.0 Strict!" src="valid-xhtml10-blue.png" />]] <a href="http://jigsaw.w3.org/css-validator/check/referer" style="text-decoration: none;"><img style="border:0" alt="Valid CSS!" src="valid-css-blue.png" />]] <br />Last updated 2009-11-30-001333 </div> <br />. </body> </html>