Read here some articles of howto do this and that in installing, setting up, administering and programming stuff in embedded and Linux computing. It is intended only to facilitate tasks which are more frequent.
The idea is to extend the existing flash memory in the router hardware containing the rootfs by a writable filesystem on a USB connected SSD. Follow this guide for using an external SSD as extroot overlay to the system.