huh! but I don't want the current changes to persist.. I want to make sure whether flashing the emmc will give Me out-of-box state? thx!
How to revert Warning: /home must have less than 2 GB usage! MyDocs will be deleted! Code: umount /home/user/MyDocs sfdisk -c /dev/mmcblk0 1 83 # optional (safer): change FAT to ext3 id mkfs.ext3 /dev/mmcblk0p1 # create ext3 on smaller partition mount /dev/mmcblk0p1 /mnt # mount new /home cp -a /home/* /mnt # copy contents of /home to large partition umount /mnt # unmount it create the file "table" (this is the original layout): Code: unit: sectors /dev/mmcblk0p1 : start= 64, size= 56631296, Id=c /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id= 83 /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82 /dev/mmcblk0p4 : start= 0, size= 0, Id= 0 continue with Code: sfdisk --no-reread /dev/mmcblk0 < table # change partition table, swap p1 and p2 Code: reboot; exit # reboot to re-read new table after reboot Code: mkfs.vfat -F32 -s64 /dev/mmcblk0p1 # create VFAT on 27GB partition Code: mount /home/user/MyDocs # mount it
umount /home/user/MyDocs sfdisk -c /dev/mmcblk0 1 83 # optional (safer): change FAT to ext3 id mkfs.ext3 /dev/mmcblk0p1 # create ext3 on smaller partition mount /dev/mmcblk0p1 /mnt # mount new /home cp -a /home/* /mnt # copy contents of /home to large partition umount /mnt # unmount it
unit: sectors /dev/mmcblk0p1 : start= 64, size= 56631296, Id=c /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id= 83 /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82 /dev/mmcblk0p4 : start= 0, size= 0, Id= 0
sfdisk --no-reread /dev/mmcblk0 < table # change partition table, swap p1 and p2
reboot; exit # reboot to re-read new table
mkfs.vfat -F32 -s64 /dev/mmcblk0p1 # create VFAT on 27GB partition
mount /home/user/MyDocs # mount it