Newb question about expanding partitions

Hello!

I cloned a 64GB SD Card to a 128GB SD Card and I’m attempting to expand the primary partition over SSH. I was able to use parted to expand the partition, but resize2fs and xfs_growfs are both not found when attempting to expand the file system into to the expanded partition. Any ideas? I assume there’s some command that convinces /dev/mmcblk0p6 to expand.

(parted) print list                                                       
Model: SD FD4Q9 (sd/mmc)
Disk /dev/mmcblk0: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name           Flags
 1      37.7MB  53.5MB  15.7MB               boot           boot, hidden, esp
 2      53.5MB  54.5MB  1049kB               env            boot, hidden, esp
 3      54.5MB  55.6MB  1049kB               env-redund     boot, hidden, esp
 4      55.6MB  123MB   67.1MB  fat32        boot-resource  boot, hidden, esp
 5      164MB   8754MB  8590MB  ext4         rootfs         boot, esp
 6      8754MB  128GB   119GB                ROMS           msftdata

[/]# df -h
Filesystem                Size      Used Available Use% Mounted on
none                    453.7M         0    453.7M   0% /dev
/dev/mmcblk0p5            7.8G      2.7G      4.7G  37% /
tmpfs                   487.5M         0    487.5M   0% /dev/shm
tmpfs                   487.5M     24.0K    487.4M   0% /tmp
tmpfs                   487.5M    196.0K    487.3M   0% /run
/dev/mmcblk0p6           50.8G     14.0G     36.8G  28% /mnt/mmc

Thanks!

-Esotic

Unfortunately you cannot expand the exFAT partition on-device as it is mounted via FUSE which is out of our control.

Your best bet would be to use something like gparted on Linux or one of the many partition managers for Windows (just not diskutil).

1 Like