OpenWrt Forum Archive

Topic: How to increase space on Linksys WRT1200AC under '/' ?

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi there folks,

I proudly own a Linksys WRT1200AC which reportedly is equipped with 128MB Flash.
When I check on my system I get the following info:

root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00200000 00020000 "u-boot"
mtd1: 00040000 00020000 "u_env"
mtd2: 00040000 00020000 "s_env"
mtd3: 00100000 00020000 "devinfo"
mtd4: 02800000 00020000 "kernel1"
mtd5: 02200000 00020000 "rootfs1"
mtd6: 02800000 00020000 "kernel2"
mtd7: 02200000 00020000 "ubi"
mtd8: 02600000 00020000 "syscfg"
mtd9: 00680000 00020000 "unused_area"

Which of these mtds can I use to increase available space under '/' and how can this be done?

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   21.3M     15.6M      4.6M  77% /
/dev/root                 5.0M      5.0M         0 100% /rom
tmpfs                   251.6M    852.0K    250.8M   0% /tmp
/dev/ubi0_1              21.3M     15.6M      4.6M  77% /overlay
overlayfs:/overlay       21.3M     15.6M      4.6M  77% /
ubi1:syscfg              29.6M    264.0K     27.8M   1% /tmp/syscfg
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                54.9G     16.1G     36.0G  31% /mnt

As far as flash is concerned I can see that there is about 22M total for '/' and about 30M mounted under '/tmp/syscfg'.
What is the idea to have so much disk space under /tmp/syscfg? I'd rather have a larger '/' to get more disk space for my base system.
In addition I see some /overlay which I haven't seen yet apart from systems using extroot.
So I guess with reserved blocks for kernel and uboot this sums up in total to the mentioned 128M...

Is there a way to rearrange my setup in a simple way to obtain more disk space under '/'? I know I could use my external SSD but it is kinda hotplugged and I'd like to keep it optional for my router software setup.

thanks in advance for your tips and hints

Edit: maybe I've posted this in the wrong section - moderators, please feel free to move the topic to where it's most appropriate...

UPDATE: still no idea how to do it manually. However I found trondas builds and they offer much more packages and free space than the official ones - https://forum.openwrt.org/viewtopic.php?id=50914

(Last edited by caetydid on 17 Jan 2016, 23:37)

Hi,

Did you get your answer or find a way to do it? I'm also interested to change partitions and have a custom flash layout.

Cheers

I didn't mess with it longer, it must be however possible, There exists different builds from trunk and they have different partition layout resulting in more available space.
I am particularily disappointed with the Wifi stability of this model that is why I stopped working on it for a while already. Now I see there is LEDE available and it is said to be progressing nicely. Maybe I'll give it a try...

The discussion might have continued from here.