PINE64

Full Version: Manually resizing SD partition
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(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
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

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.