Increasing partition of a SD card
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I have a SD card that has two partitions /dev/sdb1 that holds the boot sector, and /dev/sdb2 that holds the OS. The card still has unpartitioned free space. How can I take all the unpartitioned free space and add it to /dev/sdb2 without formatting the drive? I want to do this in on command line only linux ubuntu partition fsck share | improve this question edited Sep 23 '15 at 19:02 asked Sep 23 '15 at 18:55 Kousha 285 3 16 See man resize2fs . – goldilocks Sep 23 '15 at 19:04 The sequence of steps is: 1. resize the partition, using any appropriate tool ( fdisk , cfdisk , gdisk , &c.), and 2. resize the filesystem, using resize2fs (most likely; there are different tools for different FSs). If you want, you can use gparted to do it automatically. – Tom Hunt Sep 23 '15 at 20:17 @goldilocks, I did use resize2fs ...