How to format the TF/mmc?

Hi, I am trying to enlarge the "overlay" with a partition of the TF card, but failed to format it into ext4.

the TF card, 128G with 2 partitions, is recognized in the "block info",
but mkfs.ext4 does not work.

Any suggestions are appreciated!!

root@GL-MT1300:~# block info
/dev/mtdblock5: UUID="f28f0cac-34e0f290-926ce6bd-8164daa0" VERSION="4.0" MOUNT="/rom" TYPE="squashfs"
/dev/mtdblock6: MOUNT="/overlay" TYPE="jffs2"
/dev/mmcblk0p1: UUID="D615-CCD0" LABEL="U_8G" TYPE="exfat"
/dev/mmcblk0p2: UUID="AABD-6737" LABEL="U_111G" TYPE="exfat"
root@GL-MT1300:~#
root@GL-MT1300:~# mkfs.ext4 dev/mmcblk0p1
mke2fs 1.44.5 (15-Dec-2018)
The file dev/mmcblk0p1 does not exist and no size was specified.

I'd start by installing an official build of OpenWrt. You appear to be using the GL-Inet firmware which probably operates differently. So, with OpenWrt installed, you can follow this guide and you'll be able to do what you want:

(USB and SD cards are essentially the same from the perspective of the operating system).

Or, alternatively, you could ask these questions on the GL-Inet support pages if you want to continue using the firmware they provided.

2 Likes
mkfs.ext4 /dev/mmcblk0p1

See the difference.

3 Likes

Yes, that works :joy:
My fault. Thank you very much!

Thanks a lot!

I missed the slash beore "dev/". Now the format is performed.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.