Jump to content

Available space is UNBEARABLE :(


UnKn0wnBooof

Recommended Posts

All my infusions are installed on the SD card yet the Pineapple has still managed to run out of disk space within less than an hour. WTH?

I can't even write a single log file, move content or anything. I'm treated as if the internal storage was RO (which it isn't. It's just out of space because the internal NAND is basically rubbish, tbh).

Could we possibly have the entire FS redirected to the SD card, sorta like a Raspberry Pi where it boots from the SD itself?

I've lost count of how many times I've "unbricked" my MKV within the past couple of days, trying to get it working properly. Why is the internal storage so crappy? :/

root@L-PAP:~# echo test > file.txt

-ash: can't create file.txt: No space left on device
root@L-PAP:~# ls /sd
depends etc infusions tmp usr
root@L-PAP:~# ls /sd/infusions/
ardronepwn delorean meterpreter sslsplit tcpdump
blackout dipstatus nmap sslstrip urlsnarf
deauth logcheck portalauth strip-n-inject wps
root@L-PAP:~#
Filesystem Size Used Available Use% Mounted on
rootfs 3.1M 3.0M 80.0K 98% /
/dev/root 11.8M 11.8M 0 100% /rom
tmpfs 30.2M 136.0K 30.0M 0% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock3 3.1M 3.0M 80.0K 98% /overlay
overlayfs:/overlay 3.1M 3.0M 80.0K 98% /
/dev/sdcard/sd1 2.8G 118.0M 2.5G 4% /sd

Has anyone else had this issue?

Link to comment
Share on other sites

One thing I recently pointed out in PortalAuth's support thread is that you may want to consider moving its dependencies to your SD card as well. There are multiple python libraries that can take up quite a bit of space.

This is what I mentioned in my thread. Try it out and you'll probably free up a bit of space.

Version 2.6 has been submitted to the Pineapple Bar. During testing I noticed that my Pineapple was running out of space for the libraries required (I may just have more stuff installed than others) but if you run into this problem I recommend the following:

1. Move /usr/lib/python2.7/site-packages/ to /sd/depends/site-packages.

2. Create a symlink between the two.

3. Install dependencies.

mv /usr/lib/python2.7/site-packages /sd/depends/site-packages
ln -s /sd/depends/site-packages/ /usr/lib/python2.7/site-packages
Link to comment
Share on other sites

One thing I recently pointed out in PortalAuth's support thread is that you may want to consider moving its dependencies to your SD card as well. There are multiple python libraries that can take up quite a bit of space.

This is what I mentioned in my thread. Try it out and you'll probably free up a bit of space.

Neat! Will try this out! :D

I wish the Pineapples firmware was fully open source ._. Maybe if we made a few tweaks to the kernel, we could boot everything from the SD card and not worry about running out of space, as the NAND would only store the kernel. I can dream, I suppose.

Link to comment
Share on other sites

i noticed in the logs and reporting infusion there was a clean up after log sent check box. maybe your stockpiling log data? i had my pineapple choke after three days of reporting while trying out the infusion.

It had literally ran out of space within minutes. Symlinking some data as sud0nick mentioned, seems to have fixed it for now. The free 3MB is still unbearable imo.

Thanks for the tip :)

Link to comment
Share on other sites

That doesn't make sense to me. Boot off of internal, store everything on SD card. Just like my OS boots off my SSD and I store everything on multi traditional hard disks.

To be honest, it would be better to boot off of an external device. We're limited on what packagaes can be installed. Even the dependencies for portalauth, eats up a bunch of space, making the user have to sym link data to the sd card.

It's way too limited, in my opinion. I do think that booting off of something external, is the way to go. It would offer so much more flexibility.

Link to comment
Share on other sites

It is up to infusions developers to handle their storage correctly. I'd they choose to use internal storage, yes, you don't have enough space. Really though, you can install all packages to the SD card and infusions should create necessary links by themselves.

3mb isn't a lot, but if used properly shouldn't run out any time soon.

If you really do want to move to an sdcard, Google OpenWRT extroot. They don't recommend it, and neither do we, but it does work.

If you want to compile kernel modules, our build guide has everything you need for modules. The kernel isn't what you want to modify here though. If you do this, I recommend you pivot the overlay.

What we could do is ship it as an experimental option, and if proven stable recommend it during initial setup.

Best regards,

Sebkinne

Link to comment
Share on other sites

It is up to infusions developers to handle their storage correctly. I'd they choose to use internal storage, yes, you don't have enough space. Really though, you can install all packages to the SD card and infusions should create necessary links by themselves.

3mb isn't a lot, but if used properly shouldn't run out any time soon.

If you really do want to move to an sdcard, Google OpenWRT extroot. They don't recommend it, and neither do we, but it does work.

If you want to compile kernel modules, our build guide has everything you need for modules. The kernel isn't what you want to modify here though. If you do this, I recommend you pivot the overlay.

What we could do is ship it as an experimental option, and if proven stable recommend it during initial setup.

Best regards,

Sebkinne

That would be awesome! :D Do you think this option could be added in the next firmware release? Just curious ._.

Link to comment
Share on other sites

  • 2 months later...
I have this problem - tmp runs full .. because of perhaps to many clients for the pineap ? what is the easy way to get that tmp directory moved to /sd/tmp ?

root@bridge:/tmp# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 3.1M 2.4M 720.0K 78% /
/dev/root 11.8M 11.8M 0 100% /rom
tmpfs 30.2M 30.2M 0 100% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock3 3.1M 2.4M 720.0K 78% /overlay
overlayfs:/overlay 3.1M 2.4M 720.0K 78% /
/dev/sdcard/sd1 904.4M 69.3M 789.7M 8% /sd
Here is the "sinner file" - filling up tmp
root@bridge:/tmp# ls -alh spool/cron/atspool/a00004017012b1
-rw------- 1 root root 30.1M Nov 12 11:11 spool/cron/atspool/a00004017012b1
root@bridge:/tmp# tail spool/cron/atspool/a00004017012b1
Cannot accept client.
Cannot accept client.
Cannot accept client.
Cannot accept client.
Cannot accept client.
Cannot accept client.
Cannot accept client.
Cannot accept client.
Cannot accept client.
Cannot accept client.root@bridge:/tmp# at -l
4 Thu Nov 12 10:53:00 2015 = root
It is made by the AT job ..
root@bridge:/tmp# at -c 4
#!/bin/sh
# atrun uid=0 gid=0
# mail root 0
umask 22
CONFIG_cfg02e48a_TYPE=system; export CONFIG_cfg02e48a_TYPE
USER=root; export USER
CONFIG_cfg058bba_dev=eth0; export CONFIG_cfg058bba_dev
CONFIG_autostart_log_associations=1; export CONFIG_autostart_log_associations
CONFIG_cfg078bba_dev=wlan0; export CONFIG_cfg078bba_dev
HOME=/; export HOME
CONFIG_cfg058bba_TYPE=led; export CONFIG_cfg058bba_TYPE
CONFIG_cfg02e48a_timezone=GMT-1; export CONFIG_cfg02e48a_timezone
CONFIG_cfg098bba_dev=wlan1; export CONFIG_cfg098bba_dev
CONFIG_cfg078bba_TYPE=led; export CONFIG_cfg078bba_TYPE
CONFIG_ntp_server_LENGTH=; export CONFIG_ntp_server_LENGTH
CONFIG_ntp_server=; export CONFIG_ntp_server
CONFIG_cfg098bba_TYPE=led; export CONFIG_cfg098bba_TYPE
CONFIG_cfg058bba_trigger=netdev; export CONFIG_cfg058bba_trigger
CONFIG_autostart_harvester=1; export CONFIG_autostart_harvester
CONFIG_cfg078bba_trigger=netdev; export CONFIG_cfg078bba_trigger
CONFIG_cfg098bba_trigger=netdev; export CONFIG_cfg098bba_trigger
CONFIG_ntp_enable_server=1; export CONFIG_ntp_enable_server
CONFIG_autostart_TYPE=pineap; export CONFIG_autostart_TYPE
CONFIG_cfg058bba_sysfs=mk5:amber:lan; export CONFIG_cfg058bba_sysfs
CONFIG_ntp_TYPE=timeserver; export CONFIG_ntp_TYPE
status=1; export status
CONFIG_cfg078bba_sysfs=mk5:blue:wlan0; export CONFIG_cfg078bba_sysfs
CONFIG_NUM_SECTIONS=1; export CONFIG_NUM_SECTIONS
CONFIG_autostart_enabled=1; export CONFIG_autostart_enabled
CONFIG_autostart_pineap=1; export CONFIG_autostart_pineap
CONFIG_autostart_dogma=1; export CONFIG_autostart_dogma
PATH=/sbin:/usr/sbin:/bin:/usr/bin; export PATH
CONFIG_LIST_STATE=; export CONFIG_LIST_STATE
CONFIG_cfg098bba_sysfs=mk5:red:wlan1; export CONFIG_cfg098bba_sysfs
CONFIG_autostart_log_probes=0; export CONFIG_autostart_log_probes
foreground=0; export foreground
CONFIG_cfg058bba_name=ethernet; export CONFIG_cfg058bba_name
CONFIG_autostart_karma=1; export CONFIG_autostart_karma
CONFIG_cfg078bba_name=wlan0; export CONFIG_cfg078bba_name
CONFIG_cfg098bba_name=wlan1; export CONFIG_cfg098bba_name
CONFIG_cfg058bba_mode=link\ tx\ rx; export CONFIG_cfg058bba_mode
CONFIG_ntp_server_ITEM1=10.13.37.42; export CONFIG_ntp_server_ITEM1
CONFIG_cfg078bba_mode=link\ tx\ rx; export CONFIG_cfg078bba_mode
CONFIG_cfg098bba_mode=link\ tx\ rx; export CONFIG_cfg098bba_mode
CONFIG_SECTION=autostart; export CONFIG_SECTION
PWD=/; export PWD
CONFIG_cfg02e48a_hostname=bridge; export CONFIG_cfg02e48a_hostname
CONFIG_autostart_beacon_responses=1; export CONFIG_autostart_beacon_responses
CONFIG_SECTIONS=autostart; export CONFIG_SECTIONS
cd / || {
echo 'Execution directory inaccessible' >&2
exit 1
}
pineap 6 00:13:37:A5:09:BE
Link to comment
Share on other sites

Sure - but .. what is the alternative ?

Run the same functions that Mark V delivers on a self installed openwrt running on a NUC with proper CPU, Disk and memory ;)

Well - i think i figured it out - the auto start of pineap does not run well when the dip switches starts the same function ( running twice)

Now my focus is on the speed of the sd card.. it also troubles me (darn slow.. )

http://www.bhphotovideo.com/explora/photography/buying-guide/fastest-memory-cards-money-can-buy

I hope the next mark VI is with +2G memory and options to expand it ..

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...