Manually resizing SD partition
#1
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
#2
(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.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Xposed works! More or less. How To: Manually install Xposed Framework hyperlogos 6 17,855 10-21-2016, 08:11 AM
Last Post: webterminator77
  Partition Table xalius 1 3,297 07-24-2016, 05:08 AM
Last Post: xalius
  U-Boot, partition layout and flash kap1r0t0 13 16,452 06-02-2016, 12:31 PM
Last Post: kap1r0t0
  Expanding the /data partition in the Android sdcard Terra854 3 5,365 03-18-2016, 12:45 AM
Last Post: JulianM

Forum Jump:


Users browsing this thread: 1 Guest(s)