View Single Post
Posts: 201 | Thanked: 96 times | Joined on Dec 2009
#1280
Originally Posted by kingoddball View Post
...........


Code:

umount /dev/mmcblk1p1 # unmount the mmc for partitioning

sfdisk -uM /dev/mmcblk1
,512,C # 512mb partition for FAT32
,,L # the rest of the mmc is LINUX83
,, # empty
,,

Next, to prepare the new partitions for Android installation, run the following and then reboot you device; this will format the first partition in vfat, and the second in ext3:

Code:

mkdosfs /dev/mmcblk1p1
mke2fs -j /dev/mmcblk1p2 -m0

After formatting the partitions and rebooting the device, you can mount the ext3 partition with the following:

Code:

mkdir -p /mnt/
mount /dev/mmcblk1p2 /mnt/


!!!!!!!!!
ok. didnt know it could be done with sfdisk. whats with the "!!!!!!!!!"?