手機 - Nokia N900 - Maemo - MyDocs格式化成Ext3



步驟如下:

$ 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