<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=91.20.215.3</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=91.20.215.3"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/91.20.215.3"/>
	<updated>2026-04-22T05:55:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Creating_a_large_partition_and_booting_off_it&amp;diff=5137</id>
		<title>Creating a large partition and booting off it</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Creating_a_large_partition_and_booting_off_it&amp;diff=5137"/>
		<updated>2010-04-25T20:47:14Z</updated>

		<summary type="html">&lt;p&gt;91.20.215.3: /* WARNING: Using this recipe you will loose MyDocs. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I found it is possible to add a partition to the internal flash card.&lt;br /&gt;
&lt;br /&gt;
== WARNING: Using this recipe you will lose MyDocs.  ==&lt;br /&gt;
Make a backup of MyDocs!&lt;br /&gt;
&lt;br /&gt;
= Creation of the new partition =&lt;br /&gt;
 umount /home/user/MyDocs&lt;br /&gt;
&lt;br /&gt;
/home cannot be umounted, unfortunately. But this didn&#039;t do any harm to /home&lt;br /&gt;
&lt;br /&gt;
Use parted to shrink the MyDocs partition (on my N900 it was the 1st one)&lt;br /&gt;
 parted /dev/mmcblk0 print&lt;br /&gt;
 parted /dev/mmcblk0 1 resize 1kb 25GB&lt;br /&gt;
&lt;br /&gt;
reboot&lt;br /&gt;
&lt;br /&gt;
Use fdisk to &lt;br /&gt;
# remove the first partition (Because parted makes it not end on a cylinder boundary)&lt;br /&gt;
# recreate the exactly same partition again (this time ending on a cylinder boundary) Make sure to specify &amp;quot;TYPE C&amp;quot; for vfat&lt;br /&gt;
# add the 4th partition right after the 1st one&lt;br /&gt;
&lt;br /&gt;
reboot&lt;br /&gt;
&lt;br /&gt;
 Enjoy the new partition.&lt;br /&gt;
 The result might look similar to this one&lt;br /&gt;
 Disk /dev/mmcblk0: 32.0 GB, 32015122432 bytes&lt;br /&gt;
 4 heads, 16 sectors/track, 977024 cylinders&lt;br /&gt;
 Units = cylinders of 64 * 512 = 32768 bytes&lt;br /&gt;
 Disk identifier: 0x000c260e&lt;br /&gt;
 &lt;br /&gt;
        Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
 /dev/mmcblk0p1               1      762940    24414072    c  W95 F AT32 (LBA)&lt;br /&gt;
 /dev/mmcblk0p2          884866      950401     2097152   83  Linux &lt;br /&gt;
 /dev/mmcblk0p3          950402      974977      786432   82  Linux swap /  Solaris&lt;br /&gt;
 /dev/mmcblk0p4          762941      884865     3901600   83  Linux&lt;br /&gt;
&lt;br /&gt;
== Using the new partition == &lt;br /&gt;
Using bootmenu.sh you can in fact boot from that partition. &lt;br /&gt;
(I got bootmenu.sh via svn from https://garage.maemo.org/plugins/scmsvn/viewcvs.php?view=rev&amp;amp;root=bootmenu&amp;amp;revision=53 using trunk/install_bootmenu) &lt;br /&gt;
&lt;br /&gt;
Copy the stuff of your root dist to the new one&lt;br /&gt;
 rsync -rlutopgxv / &amp;lt;mountpoint of new partition&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the device tree (Sure this is too much, but not copying it will not work)&lt;br /&gt;
 cp -af /dev/* &amp;lt;mountpoint&amp;gt;/dev&lt;br /&gt;
&lt;br /&gt;
Using bootmenu.sh and this entry in /etc/bootmenu.d I can now boot into my new 3.7GB root drive&lt;br /&gt;
 ITEM_NAME=&amp;quot;Internal part 4&amp;quot;&lt;br /&gt;
 ITEM_ID=&amp;quot;mmc4&amp;quot;&lt;br /&gt;
 ITEM_DEVICE=&amp;quot;mmcblk0p4&amp;quot;&lt;br /&gt;
 ITEM_MODULES=&amp;quot;mbcache jbd ext2&amp;quot;&lt;br /&gt;
 ITEM_FSTYPE=&amp;quot;ext2&amp;quot;&lt;br /&gt;
 ITEM_FSOPTIONS=&amp;quot;noatime&amp;quot;&lt;br /&gt;
 ITEM_LINUXRC=&amp;quot;&amp;quot;&lt;br /&gt;
 ITEM_FBMODE=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
 [root@phon:~/bootmenu]$ df -h&lt;br /&gt;
 Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;
 rootfs                3,7G  524M  3,0G  15% /&lt;br /&gt;
 ubi0:rootfs           228M  192M   33M  86% /mnt/initfs&lt;br /&gt;
 /dev/mmcblk0p4        3,7G  524M  3,0G  15% /&lt;br /&gt;
 tmpfs                 1,0M   60K  964K   6% /tmp&lt;br /&gt;
 tmpfs                 256K   84K  172K  33% /var/run&lt;br /&gt;
 none                   10M   76K   10M   1% /dev&lt;br /&gt;
 tmpfs                  64M  4,0K   64M   1% /dev/shm&lt;br /&gt;
 /dev/mmcblk0p2        2,0G  129M  1,8G   7% /home&lt;br /&gt;
 /dev/mmcblk0p1         24G  7,9G   16G  34% /home/user/MyDocs&lt;/div&gt;</summary>
		<author><name>91.20.215.3</name></author>
	</entry>
</feed>