OpenWRT: Expand Storage Space and Memory
A Software Engineer passionate about public good projects and making technology to serve society en masse.
Search for a command to run...
A Software Engineer passionate about public good projects and making technology to serve society en masse.
No comments yet. Be the first to comment.
HS (Harmonised System) Codes help classify customs authorities and businesses around the world to ensure appropriate import/export control. This system recursively classifies a product into finer granularity of categories. Figure 1: A simple exercis...
Jan allows you to deploy and run LLMs on your Windows or macOS computer! 16 Gigabytes of memory and a M1 chip was enough for me to run Mistral locally. Now how do you take Jan and use libraries like Langchain? https://jan.ai Local API Server Click ...
My talk at PyCon Thailand 2023 on the security aspects and possible attack vectors of LLM Applications, tailored to both product people and engineers! https://youtu.be/_fvk_Qa5OsM Thank you PyCon TH team!
Looking for a flat for rent, with LLMs
Code generators replace mindless coding with productivity; a pure function that produces predictable code, given a (set of) input(s). Generating boilerplate classes or templates — a common use case for Codegen. Use-case: Generating Classes We will be...
When using OpenWRT on relatively cheap routers, low memory and storage becomes a bottleneck, preventing you from installing a lot of packages and really unleashing the true computing power of your router. In this tutorial, we are gonna use a USB storage device (Flash Drive, Portable Hard Drive or whatever) to expand our memory. Now it’s time to get our hands dirty!
And, if you didn’t know about OpenWRT, it is a third-party after-market firmware available for many routers. (You can think of it as Cyanogenmod for Routers)
A Router with a USB port and OpenWRT 12.09-rc1 or greater installed
A USB Storage Device (Flash Drive, USB HDD, Memory cards…)
A good partitioning tool (I suggest GParted)
It’s a good idea not to use memory cards like SD or MicroSD, they are prone to read-writes and might wear out very soon.
I am using a 4GB USB Flash Drive as my storage device. Just plug it in to your system and launch your partition manager. Remvoe previous partitions and create two new partitions.
An ext3 partition –> 3GB
A swap partition –> 768MB
Actually you don’t need that much of swap, you can allocate as much memory as you want. Just remember four things,
The ORDER is important. The ext3 should be the FIRST partition, swap should be the second one.
The ext3 one will hold your data, programs and all other stuff.
The swap partition will act as a boost of RAM.
The frequent swap read-writes WILL reduce the lifespan of your USB flash storage. (Not a problem with Hard Drives)
Connect the USB Storage Device via the USB port of your router.
Login to the OpenWRT Control Panel with your browser.
Go to System > Mount Points from the menu. You will see your device getting detected.

Now, click on the edit button of the /dev/sda1 device.

Check Enable this mount, select ext3 as the Filesystem, check Use as root filesystem and finally click Save and Apply.

Come back to System > Mount Points, and click the edit button of the swap partition. Check Enable this mount and click Save and Apply.
Now reboot the device from System > Reboot.
Login to your router console via SSH.
Run the commands df -h and free!

Yeppi! Now you have a boost of storage and memory ready!