Fat32 is a very poor filesystem and Nokia chose it for the n900's MyDocs directory so Windows users could view their files if the n900 is plugged into a Windows PC via USB cable. Those of us who use the n900 on Linux machines (or use SSH/SFTP to access files) have the flexibility to use a better filesystem.



sed -i '1d' /usr/sbin/mmc-mount

echo -e '#!/bin/sh\ncase "$(sfdisk -c $(echo $1 | cut -c1-12) $(echo $1 | cut -c14))" in\n  43|83)\n    mount -t auto -o $3,noauto,nosuid,noatime,nodiratime "$1" "$2" > /dev/null\n    ;;\n  *)\n    '$(cat /usr/sbin/mmc-mount)'\n    ;;\nesac' > /usr/sbin/mmc-mount

sed -i 's/\(| 1e\)/\1 |43|83/' /usr/sbin/osso-mmc-mount.sh

umount /home/user/MyDocs

sfdisk -c /dev/mmcblk0 1 43

mkfs.ext3 -m 0 -L "Nokia N900" /dev/mmcblk0p1

osso-mmc-mount.sh /dev/mmcblk0p1 /home/user/MyDocs

chown -R user:users /home/user/MyDocs