View Single Post
Posts: 678 | Thanked: 197 times | Joined on Jul 2007 @ San Jose CA
#46
Originally Posted by lm2 View Post
Thanks for the response.

I used file manager to format the card. I then used Acronis to put the 2gb ext2 partition on the card.
What I meant was to use the file manager of the IT after you have mounted the fat32 partition. I did not buy this utility because I am one of the guys who wants to know how to do things step-by-step. I'd partition the card using sfdik -M, mount the new card, and copy files over the newly created partitions all using the IT.

Two scripts of my cloning processes:

COPY flash TO MMC2 (boot from flash and after sfdisk the card, using ext2)

insmod /mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko

insmod /mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko

mount -t jffs2 -o ro /dev/mtdblock4 /floppy

mount /dev/mmcblk0p2 /opt

rm -rf /opt/*

tar cf - -C /floppy . | tar xvf - -C /opt

umount /opt

umount /floppy

shutdown -r now


COPY MMC2 TO MMC1 (boot from flash and after sfdisk the card, using ext2)

insmod /mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko

insmod /mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko

mount /dev/mmcblk0p2 /floppy

mount /dev/mmcblk1p2 /opt

rm -rf /opt/*

tar cf - -C /floppy . | tar xvf - -C /opt

umount /opt

umount /floppy

shutdown -r now


 

The Following 3 Users Say Thank You to nhanquy For This Useful Post: