Manually resizing SD partition - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Android on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=5) +--- Thread: Manually resizing SD partition (/showthread.php?tid=227) |
Manually resizing SD partition - atoomic - 01-30-2016 Would like to know the best way to resize the sd card partition if I install android from the dd image to a larger sd card than the original ? is there any android tool to do this ? should I use gparted or any other command line ? > dd bs=4M if=something-from-a-2-GB-card.img of=/dev/mmcblk0 # to a 64 GB card RE: Manually resizing SD partition - patrickhwood - 01-30-2016 (01-30-2016, 08:34 AM)atoomic Wrote: Would like to know the best way to resize the sd card partition if I install android from the dd image gparted will work. For a partition at the end of the device, it essentially does the same thing as using fdisk to delete the partition, create a new, larger one starting at the same location, and using resize2fs (if it's an ext2/3/4 file system) to make it bigger. Resizing to a larger size can be performed on an ext file system while it's mounted and live. There's a similar fatresize command; don't know if it can be used while the fs is mounted. To increase the size of a partition that's wedged between others, gparted is probably a lot better option than doing it from the command line. |