Editing Changing the eMMC filesystem

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 15: Line 15:
=== Solution #1: Do everything on-device ===
=== Solution #1: Do everything on-device ===
-
This solution is based on Solution #8 in [[Repartitioning_the_flash]].
+
This solution is based on Solution #7 in [[Repartitioning_the_flash]].
<ol>
<ol>
<li>
<li>
-
Move <code>/home</code> as described in Solution #8 in [[Repartitioning_the_flash]]. Follow the described steps strictly until you reach the command which would actually repartition the flash (the sfdisk command). You don't need to follow any other steps from the mentioned solution from now onwards.
+
Move <code>/home</code> as described in Solution #7 in [[Repartitioning_the_flash]]. Follow the described steps strictly until you reach the command which would actually repartition the flash (the sfdisk command). You don't need to follow any other steps from the mentioned solution from now onwards.
</li>
</li>
<li>
<li>
Line 36: Line 36:
</li>
</li>
<li>
<li>
-
Now you should edit <code>/etc/event.d/rcS-late</code> to make Maemo use <code>/home</code> its original partition again and accept its new filesystem type.  
+
Now you should edit <code>/etc/rcS-late</code> to make Maemo use <code>/home</code> its original partition again and accept its new filesystem type.  
<ol>
<ol>
<li>
<li>
''Making Maemo use <code>/home</code> its original partition again.''
''Making Maemo use <code>/home</code> its original partition again.''
-
In step 1, you've added two lines:
+
In step 1, you've added the line:
<pre>
<pre>
echo "/dev/mmcblk1p1 /home ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0" >> $tmp_fstab
echo "/dev/mmcblk1p1 /home ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0" >> $tmp_fstab
-
echo "/home/opt /opt none bind" >> $tmp_fstab
 
-
 
</pre>
</pre>
-
to <code>/etc/event.d/rcS-late</code>. For ext4 (or any ext), remove both lines.
+
to <code>/etc/event.d/rcS-late</code>. Modify this line to represent the fstab entry of your new filesystem on /home its original partition. Examples include:
-
 
+
<pre>
-
For other filesystems, remove only second line (containing /opt) and modify first one, to include appropriate mount options for filesystem of Your choose:
+
#ext4 example
 +
echo "/dev/mmcblk0p2 /home ext4 rw,noatime,errors=continue,commit=1,data=writeback 0 0" >> $tmp_fstab
 +
</pre>
<pre>
<pre>
#Reiser4 example
#Reiser4 example
Line 59: Line 59:
''Making Maemo accept the new filesystem type.''
''Making Maemo accept the new filesystem type.''
-
Line no. 12, 17, 22, 23 and 25 of rcS-late got "ext3" hard-coded in it (line 9 contains ext3 in comment, but this don't affect funcionality of script - You can change it if You want). We need to edit these lines to represent our new filesystem.  
+
Line no. 13, 18, 23, 24 and 26 of rcS-late got "ext3" hard-coded in it. We need to edit these lines to represent our new filesystem.  
Ext4 example:
Ext4 example:
<pre>
<pre>
Line 86: Line 86:
##End of snippet
##End of snippet
</pre>
</pre>
-
Make sure line 23 contains a valid fsck.X command. Try running the command with all its parameters manually before making it permanent.
+
Make sure line 24 contains a valid fsck.X command. Try running the command with all its parameters manually before making it permanent.
-
 
+
-
File <code>/usr/lib/genfstab.awk</code> also contain ext3 hardcoded in it (line 19 in vanilla Maemo, line 20 in latest CSSU-Testing). For switching to another ext filesystem (like ext4) change it to appropriate value.
+
-
 
+
-
On systems with [[CSSU]], one also need to edit <code>/etc/default/mount-opts</code>, which contain mount options, including filesystem type (ext3 by default, manual modification required).
+
-
 
+
-
<code>//Note for Geeks:</code>
+
-
Original creator of this article didn't mention that You need to modify <code>/usr/lib/genfstab.awk</code> - instead, he suggested to keep 1st line added to <code>/etc/event.d/rcS-late</code>. This probably allowed to go around omitted modification of <code>/usr/lib/genfstab.awk</code>, but approach proposed now is more accurate to native way how Maemo do it. Ho ever, i only tested it using ext4 filesystem - that have identical mount options (except stating that it's ext4) as ext3. I don't know if editing <code>/usr/lib/genfstab.awk</code> will work with filesystems other than ext family (like reiser4), that's why I stated in instruction to modify - instead of delete - line in rcS-late, containing mount options for reiser4. The same apply for genfstab.awk - I stated it should be only modified for ext filesystem family. So, for reiser4 and other no ext filesystems, instructions remain same as made by original author.
+
-
 
+
-
If someone have experience with changing filesystem other to ext4 (or any ext), and/or like to experiment with setting genfstab.awk, please update this article with Your findings.
+
</li>
</li>
</ol>
</ol>
Line 103: Line 94:
</li>
</li>
</ol>
</ol>
-
 
-
=== Solution #2: Easier GUI solution, need another PC + linux live CD===
 
-
 
-
Coming soon - will write instructions based on use of gParted,Aptosid, or any other Linux liveCD and backupmenu (or backupmenu-multiboot). Inspired by main (GUI) solution in "repartitioning the flash" article.
 
== Some initial benchmarks ==
== Some initial benchmarks ==
Line 173: Line 160:
*Reiser4 has some problems with both cluster=8K and cluster=16K on the N900 ("<code>Wrong level found in node</code>" warnings in dmesg). The parameters cluster=32K and cluster=64K (the default value) work without error. Use these values to prevent potential data loss.
*Reiser4 has some problems with both cluster=8K and cluster=16K on the N900 ("<code>Wrong level found in node</code>" warnings in dmesg). The parameters cluster=32K and cluster=64K (the default value) work without error. Use these values to prevent potential data loss.
-
The following options have been tested by creating a tarball of /home/opt (~400MiB), extracting it once mounted, removing the original tar and then repeating for a tarball of the SDK (~500MiB). Originally cluster=8K was attempted but a reboot produced the dreaded <code>Wrong level found in node</code> error again so reverting to 32K
+
The following seems to have removed the warnings in dmesg, test consisted of creating a tarball of /home/opt (~400MiB), extracting it once mounted, removal of the original tar and then repeating for a tarball of the SDK (~500MiB).  
-
'''Take note of the fsck.reiser4 stage which should be executed before the first mount.''' It creates lost+found directory and inserts an entry for ".", amongst other fixes.
+
'''Take note of the fsck.reiser4 stage which should be executed before the first mount.'''
-
  mkfs.reiser4 -y -o create=ccreg40,compress=lzo1,compressMode=ultim,cluster=32K,fibration=ext_3_fibre,formatting=smart /dev/mmcblkXpY
+
  mkfs.reiser4 -o create=ccreg40,compress=lzo1,compressMode=ultim,cluster=8K,fibration=ext_3_fibre,formatting=smart
-
  fsck.reiser4 -y --build-fs /dev/mmcblkXpY
+
  fsck.reiser4 -y --build-fs
-
  mount -t reiser4 -o rw,noatime,nodiratime /dev/mmcblkXpY /path/to/mount
+
  mount -t reiser4 -o rw,noatime,nodiratime
== Different filesystem in action ==
== Different filesystem in action ==

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)