MT-1300 | How to mount the TF card?

The TF card is plugged in, and can be seen in Luci.
But run “cfdisk” cannot open dev/sda.

Any advice on this are appreciated. Thanks in advance!!

BTW, may the TF be divided into 2 partitions and use one as “Overlay” and the other for file storage/share??

if you are using the official OpenWRT then you need to additionally install the microSD bypass packages.

If you are using the official GL.Inet operating system and want to use the card, the location will be for example /dev/mmcblk0p1 .
Remember to have the packages installed for the filesystems you use.

1 Like

The /dev/mmcblk0p1 and /dev/mmcblk0p2 is the SD card.

Thank you!

I’m using the official GL.Inet 3.211.
What packages shall be installed for the Overlay and File Storage?

Thank you!

So may I mount /dev/mmcblk0p1 as Overlay (to install the packages) and /dev/mmcblk0p2 as file storage?
Shall any packages to be installed for these functions?

Linux considers everything to be a file location which can be easy but also complicated. You will never be able to “mount” a device directly, instead you need to give it a mount point. In your case, a command like mount /dev/mmcblk0p1 /mnt/sdcard1 would be what you would use, then you would be able to cd /mnt/sdcard1 and start to see the contents of the device.

With the above knowledge, you can arbitrarily assign a location and (for the most part) won’t have too many issues. The linux community typically mounts devices under /mnt or /media and if you try to mount it as other existing directories you may have some issues.

For the record, I do not work for gl-inet.

Also an article that explains a little more if you are interested.

also also,
If you wanted to use the larger partition for the overlayfs, I would copy all the contents of the current folder to the sd card partition of choice and then reassign the overlay in the mount points.

1 Like

Thanks a lot for all these info!

Homework to do :joy: I will try

When I tried to formmat the partition into ext4, “The file dev/mmcblk0p1 does not exist and no size was specified”.

Any steps missed?

Try “/dev/mmcblk0p1” with a leading “/”.

I do not work for and I do not have formal association with GL.iNet


miss typed the slash before “dev/” :rofl:

root@GL-MT1300:~# mkfs.ext4 /dev/mmcblk0p1
mke2fs 1.44.5 (15-Dec-2018)
/dev/mmcblk0p1 contains a exfat file system labelled 'U_8G'
Proceed anyway? (y,N) y
Creating filesystem with 2019840 4k blocks and 505920 inodes
Filesystem UUID: 2f88cb24-593f-4cb2-b04d-b8d1ec59daa3
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

Yes, you are right :+1: :+1: