Unable to Add USB as extroot - no free memory

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

Post Reply
IanBlakeley
Posts: 32
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Unable to Add USB as extroot - no free memory

Post by IanBlakeley »

TP-Link TL-WDR3600 v1 with V1.10.0


Coming to the extroot follows a chain of circumstance. I noted that although I'd added a SSH key from my desktop I'd enabled accidentally external access, unticking that deleted the key and now nothing I do will let me re-add it. If I reboot the router I can unselect external access and login via password, that disappears again each reboot, leaving external access enabled no password and no key. Getting back in via ssh and trying to add the key manually by SCP to /tmp and then

Code: Select all

cat /tmp/gargoyle.pub ]] authorized_keys
reports Read-only file system if I mount as RW then the disk is full, perhaps why configuration changes from the GUI aren't sticking.

I've tried removing the Adblock plugin I added to free space but it remains, so thought I'd use my spare 4GB USB as a extroot, however, although it is detected when I format from the GUI to use it after the format the router reboots but doesn't mount it as a extroot the only choice to format again.

Status reports only 17% of memory used although df shows root at 100%

Code: Select all

root@Gargoyle:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                     704       644        60  91% /
/dev/root                 6144      6144         0 100% /rom
tmpfs                    63040       624     62416   1% /tmp
/dev/mtdblock3             704       644        60  91% /overlay
overlayfs:/overlay         704       644        60  91% /
tmpfs                      512         0       512   0% /dev
root@Gargoyle:/#
I tried diretly editing the

Code: Select all

/etc/config/dropbear
but have the same issue vis-a-vis memory, It seems I need to free up some memory to do anything but cannot


--
Ian

Lantis
Moderator
Posts: 6752
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Unable to Add USB as extroot - no free memory

Post by Lantis »

If you fill your router completely it locks down into Read Only mode, hence why nothing you do is saving.

You need to reset to defaults completely using failsafe reset (note that in v1.10 failsafe reset now requires SSH, not Telnet).
Then the first thing you should do is setup extroot if you feel you are going to continue to need large amounts of space.

After that everything else should fall into place.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

IanBlakeley
Posts: 32
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Re: Unable to Add USB as extroot - no free memory

Post by IanBlakeley »

Thanks.

I'd only added the adblock plugin, anyway, gone back to default and working again. Still doesn't utilise the extroot, the format takes place followed by the reboot but it's not used, if I subsequently remove the USB and check it with Gparted it has been formatted as chosen. Although I have managed to get the swap partition on the same USB recognised none of it is currently utilised according to the GUI. I am not going to re-download the plugins for a bit, already had earache for interrupting the TV viewing by booting the router. :D

IanBlakeley
Posts: 32
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Re: Unable to Add USB as extroot - no free memory

Post by IanBlakeley »

I don't think for me the GUI method is working

Code: Select all

root@Gargoyle:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  704.0K    452.0K    252.0K  64% /
/dev/root                 6.0M      6.0M         0 100% /rom
tmpfs                    61.6M    616.0K     61.0M   1% /tmp
/dev/mtdblock3          704.0K    452.0K    252.0K  64% /overlay
overlayfs:/overlay      704.0K    452.0K    252.0K  64% /
tmpfs                   512.0K         0    512.0K   0% /dev
root@Gargoyle:~# 
Doesn't look like extroot is mounted and used following the format, it's a 4GB pen drive, as above the format happens but not the move of the root. Any way to continue this from either CLI or the GUI?

IanBlakeley
Posts: 32
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Re: Unable to Add USB as extroot - no free memory (SOLVED)

Post by IanBlakeley »

To followup my own post again. Everyone is out so I tried a couple of times more and finally it stuck. I don't know why it finally worked but I guess I now have sufficient space

Code: Select all

root@Gargoyle:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.3G      4.4M      2.2G   0% /
/dev/root                 6.0M      6.0M         0 100% /rom
tmpfs                    61.6M    108.0K     61.5M   0% /tmp
/dev/sda1                 2.3G      4.4M      2.2G   0% /overlay
overlayfs:/overlay        2.3G      4.4M      2.2G   0% /
tmpfs                   512.0K         0    512.0K   0% /dev
So now only the ROM is fully utilised and

Code: Select all

root@Gargoyle:~# block info
/dev/mtdblock2: UUID="e25c008b-1f208f7c-a8c46e66-5ba341ae" VERSION="4.0" TYPE="squashfs"
/dev/mtdblock3: TYPE="jffs2"
/dev/sda1: UUID="ce0bbd7b-c97c-4744-8af1-b9c6de4482f8" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4"
/dev/sda2: VERSION="1" TYPE="swap"
I guess this now means I should be able to load some plugins without fear of running out of space.

Post Reply