Page 1 of 1
Extroot workign, cannot install plugins
Posted: Sat Dec 09, 2017 10:52 am
by IanBlakeley
After a couple of tries I have extroot working on a TP-Link TL-WDR3600 v1 with version1.10.0, having had previous space problems with plugins, however, now although it seems I should have plenty of available space

the entire plugin list reports not enough space available

restarted browser as per one suggestion on here. Can I install via CLI?
Re: Extroot workign, cannot install plugins
Posted: Sun Dec 10, 2017 10:11 pm
by oliver
can you post the output from both 'df -k' and 'mount' (from an SSH session)?
Re: Extroot workign, cannot install plugins
Posted: Sun Dec 10, 2017 10:57 pm
by IanBlakeley
Sure, here you are
Code: Select all
root@Gargoyle:/# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 2434032 4504 2286172 0% /
/dev/root 6144 6144 0 100% /rom
tmpfs 262144 608 261536 0% /tmp
/dev/sda1 2434032 4504 2286172 0% /overlay
overlayfs:/overlay 2434032 4504 2286172 0% /
tmpfs 512 0 512 0% /dev
Code: Select all
root@Gargoyle:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=262144k)
/dev/sda1 on /overlay type ext4 (rw,relatime,data=ordered)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
Re: Extroot workign, cannot install plugins
Posted: Mon Dec 11, 2017 9:15 pm
by oliver
interesting... mine looks slightly different (on a 3600 too)
Code: Select all
root@Gargoyle:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 704 328 376 47% /
/dev/root 6144 6144 0 100% /rom
tmpfs 63040 260 62780 0% /tmp
/dev/mtdblock3 704 328 376 47% /overlay
overlayfs:/overlay 704 328 376 47% /
tmpfs 512 0 512 0% /dev
/dev/sda1 174328 11007 150424 7% /tmp/usb_mount/0b5bfa5f-6f03-4669-8ad3-825944ebb318
Code: Select all
root@Gargoyle:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/sda1 on /tmp/usb_mount/0b5bfa5f-6f03-4669-8ad3-825944ebb318 type ext4 (rw,noatime,data=ordered)
When you go to the web portal and go to system > plugins does it show the size of the USB drive and the amount free?
I'm not sure how but it looks like something got mounted over the top of your external USB drive
Re: Extroot workign, cannot install plugins
Posted: Mon Dec 11, 2017 9:45 pm
by IanBlakeley
Picture is in first post just checked, still shows 2.180GB free space on the webguil under system plugins. I've tried rebooting, tried turning off the power and then back on again after a few minutes still the same
Re: Extroot workign, cannot install plugins
Posted: Thu Dec 14, 2017 9:53 pm
by IanBlakeley
Any idea anyone? Looks like I have more accessible space with extroot off albeit it tiny.
Re: Extroot workign, cannot install plugins
Posted: Sun Dec 17, 2017 1:53 am
by IanBlakeley
Finally got to the bottom of this after starting from scratch again. Note still needed 8 attempts at formatting the extroot drive until the router used it. In the end the problem is the symlink pointing at plugin_root is going to the data partition on the card mounted from the tmp folder which never seems to get mounted so does not exist.
Made a directory off the root and changed the symlink
Code: Select all
wxrwxrwx 1 root root 20 Dec 17 11:19 plugin_root -> /plugin/plugin_root/
Now all seems to be okay, installed the adblock plugin and that's working just need to decide which others I would like
Re: Extroot workign, cannot install plugins
Posted: Sun Dec 17, 2017 10:23 am
by d3fz
So was it a bug or something else (wrong configuration)?
If it was indeed a bug, would you mind sharing the exact same steps you took to solve it? It might be helpful to others as well (myself included), and probably a definitive fix in the meantime.
Re: Extroot working, cannot install plugins (SOLVED)
Posted: Sun Dec 17, 2017 10:39 pm
by IanBlakeley
d3fz wrote:So was it a bug or something else (wrong configuration)?
If it was indeed a bug, would you mind sharing the exact same steps you took to solve it? It might be helpful to others as well (myself included), and probably a definitive fix in the meantime.
I noticed that when running without extroot the USB drive is seen as available. Formatting to get it taken into use as an extroot should leave 75% (assuming) default available as an attached USB drive, I never saw this where I had both.
Digging in via ssh there's a symlink in the root directoy for plugin_root that points to /tmp/usb mount <uuid> (sorry didn;t save the actual). Obviously if the USB is not mounting then the directory doesn't exist and hence there's no space for plugins. I created an directory /plugin/plugin_root and then since you can't edit symlinks I made a symlink in the /tmp directory and then moved it to / overwriting the existing one and effectively moving the location of plugin_root.
I was going to place in the /tmp but of course that gets recreated on a reboot wiping whatever is in there
Code: Select all
root@Gargoyle:/tmp# ln -s /plugin/plugin_root plugin_root
root@Gargoyle:/tmp# mv plugin_root /plugin_root
So now the / directory is
Code: Select all
root@Gargoyle:/# ls -altr
dr-xr-xr-x 52 root root 0 Jan 1 1970 proc
dr-xr-xr-x 11 root root 0 Jan 1 1970 sys
drwxr-xr-x 6 root root 4096 Jan 1 1970 overlay
drwxr-xr-x 2 root root 3 Oct 26 00:36 root
drwxr-xr-x 2 root root 3 Oct 26 00:36 mnt
lrwxrwxrwx 1 root root 4 Oct 26 00:38 var -> /tmp
drwxr-xr-x 2 root root 850 Oct 26 00:38 sbin
drwxr-xr-x 11 root root 861 Oct 26 00:38 lib
drwxr-xr-x 16 root root 223 Oct 26 00:38 rom
drwxr-xr-x 1 root root 4096 Dec 17 10:47 usr
lrwxrwxrwx 1 root root 8 Dec 17 10:47 nfs -> /tmp/nfs
drwxr-xr-x 1 root root 4096 Dec 17 10:47 bin
-rw-r--r-- 1 root root 0 Dec 17 11:10 error
drwxr-xr-x 3 root root 4096 Dec 17 11:18 plugin
lrwxrwxrwx 1 root root 20 Dec 17 11:19 plugin_root -> /plugin/plugin_root/
drwxr-xr-x 1 root root 4096 Dec 17 11:20 ..
drwxr-xr-x 1 root root 4096 Dec 17 11:20 .
drwxr-xr-x 1 root root 4096 Dec 17 13:17 www
drwxr-xr-x 5 root root 940 Dec 17 14:21 dev
drwxr-xr-x 1 root root 4096 Dec 17 14:21 etc
drwxrwxrwt 20 root root 560 Dec 18 10:34 tmp
Re: Extroot workign, cannot install plugins
Posted: Wed Dec 20, 2017 6:37 pm
by d3fz
Thanks for explaining in details. I might give it a try later and see how it goes (never messed with extroot).