/dev/mmcblk0p2パーティションを削除し、再作成(開始セクタはそのままで,終了セクタを最大値にする)
# fdisk /dev/mmcblk0
Command (m for help): p
Disk /dev/mmcblk0: 29.5 GiB, 31657558016 bytes, 61831168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x50446648
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 249855 247808 121M c W95 FAT32 (LBA)
/dev/mmcblk0p2 249856 6146047 5896192 2.8G 83 Linux
Command (m for help): d
Partition number (1,2, default 2): 2
Partition 2 has been deleted.
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2): 2
First sector (249856-61831167, default 249856):
Last sector, +sectors or +size{K,M,G,T,P} (249856-61831167, default 61831167):
Created a new partition 2 of type 'Linux' and of size 29.4 GiB.
Command (m for help): p
Disk /dev/mmcblk0: 29.5 GiB, 31657558016 bytes, 61831168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x50446648
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 249855 247808 121M c W95 FAT32 (LBA)
/dev/mmcblk0p2 249856 61831167 61581312 29.4G 83 Linux
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).