Ext2 as SD-card filesystem on N800

The necessary kernel modules are already there, but not loaded by default (tested on OS2007, 3.2007.10.7). From the attached tar file, put the script ext2fs into /etc/init.d/ on the N800, then do as root:

# ln -s /etc/init.d/ext2fs /etc/rc2.d/S18ext2fs
# ln -s /etc/init.d/ext2fs /etc/rc0.d/K18ext2fs

Then, back up your original MMC mount script:

# cp /usr/sbin/mmc-mount /usr/sbin/mmc-mount.orig

and copy the one from the tar archive in its place. I simply left out the explicit filetype declaration, so that it should now recognise and mount vfat and ext2 automatically.

I installed e2fsprogs

# apt-get install e2fsprogs

to format the card directly on the N800 (-c checks for bad blocks, -m 1 reserves only 1% of blocks to root):
Make sure to use the correct device specification, or you may wipe out the wrong card!

# mkfs.ext2 -c -m 1 /dev/mmcblk1p1

I also disabled autocheck on this file system:

# tune2fs -i 0 /dev/mmcblk1p1

I understand that it is safe to use a standard filesystem on an SD-card, as these devices got on-board controllers taking care not to wear out specific memory areas prematurely; see this article on Wikipedia for more information.

Initial info (for N770) is from this article on maemo.org.

Some more info on formatting and partitioning an ext2 SD-card on N770.

Comments

2 Responses to “Ext2 as SD-card filesystem on N800”

  1. mich on 2007-10-07 0:32

    Updated mmc-mount script in the tar archive to include the dmask=000 as found in the new firmware version of the file.

  2. N800 Firmware-Update to Version 4.2007.38-2 : blogmich on 2007-10-07 18:48

    […] Ext2 as SD-card filesystem on N800 […]