Hi!
I bought SD card for my Gl-Inet router (it supports SD) and I need to install a lot of plugins. Build in memory is not big enough. Can you recommend something?
Claude offers me following
Here are the basic steps to extend the memory of a Glinet Mudi router running OpenWRT using an SD card:
- Format the SD card as ext4 filesystem. You can do this from the OpenWRT shell using the command:
sudo mkfs.ext4 /dev/mmcblk0p1
- Mount the SD card partition on boot. Edit /etc/fstab and add a line like:
/dev/mmcblk0p1 /mnt/sdcard ext4 defaults 0 2
- Create the mount point directory:
sudo mkdir /mnt/sdcard
- Mount the partition:
sudo mount /mnt/sdcard
- Copy over any large files you want to move to the SD card, like downloaded packages. For example:
sudo cp -r /usr/lib/opkg/info /mnt/sdcard
- Edit /etc/opkg.conf and change the download directory to point to the SD card:
src/gz base http://downloads.openwrt.org/releases/19.07.7/targets/gl-inet/generic/packages
- Reboot for changes to take effect. Now large packages will be downloaded and installed to the SD card, extending the usable space.
Let me know if any part needs more explanation! Proper partitioning and formatting of the SD card is important for reliability.