View Single Post
Posts: 946 | Thanked: 1,650 times | Joined on Oct 2009 @ Germany
#66
I want to convert my N900 into a real mobile computer by getting rid
of the stone-age filesystem FAT. I tried to follow those helpful instructions
Originally Posted by 白い熊 View Post
http://sumoudou.org/0/5.html
however, I used the builtin sfdisk command. Here are my modified instructions:

sudo gainroot
cd /home/user
umount MyDocs
sfdisk -d > sf
vi sf # set 1st partition to 83
sfdisk --force /dev/mmcblk0 < sf
mkfs.ext3 /dev/mmcblk0p1
mount /dev/mmcblk0p1 /mnt
cp -a /home/* /mnt
umount /mnt
reboot; exit
cd /home/user
vi sf # set 2nd partition to c
sfdisk --force /dev/mmcblk0 < sf
mkfs.vfat -F 32 /dev/mmcblk0p2
mount -t vfat /dev/mmcblk0p2 /home/user/MyDocs

and add only
/bin/mount /home/user/MyDocs
to /etc/event.d/rcS-late before the line:
# We can safely continue booting now.
This leaves me with a 27GB ext3 and a 2GB VFAT partition.
I'd rather have a flexible VFAT image which I can easily let shrink and grow.
So I've set up a loopback device and verified that the camera app can successfully store pictures on it:

cd /home/user
umount MyDocs
dd if=/dev/zero of=FAT bs=1M seek=256 count=0 # small 256MB image
losetup /dev/loop0 FAT
mkfs.vfat -F32 /dev/loop0
vi /etc/fstab # replace /dev/mmcblk0p2 with /dev/loop0
mount MyDocs
this works only till the next reboot.
Now we only need to modify the scripts (in ke-recv?) to do this automatically
and we could completey get rid of the VFAT partition...
 

The Following 14 Users Say Thank You to titan For This Useful Post: