cheeto Posted January 20, 2015 Share Posted January 20, 2015 Hey guys, I tried to copy a couple of folders into the internal storage. (3mb or so) and I got an error in the middle of the process saying that the disc is full. Could that be right? Is there anything that i can do to free up more space? All my infusions are in the SD. thanks Here are my resources: Current Disk Usage:Filesystem Size Used Available Use% Mounted onrootfs 3.2M 2.1M 1.1M 66% //dev/root 11.8M 11.8M 0 100% /romtmpfs 30.2M 132.0K 30.1M 0% /tmptmpfs 512.0K 0 512.0K 0% /dev/dev/mtdblock3 3.2M 2.1M 1.1M 66% /overlayoverlayfs:/overlay 3.2M 2.1M 1.1M 66% //dev/sdcard/sd1 13.8G 343.3M 12.8G 3% /sd Current Memory Usage:total used free shared buffersMem: 61804 53732 8072 0 6964-/+ buffers: 46768 15036Swap: 1004024 0 1004024 Drop CachesDrop Page Cache - only use if you know what you are doing. Quote Link to comment Share on other sites More sharing options...
sud0nick Posted January 20, 2015 Share Posted January 20, 2015 I got the same error yesterday. There is hardly any internal space available. You should always use the sd card. If not for its available space at least for the fact you will have all of your stuff when a new firmware upgrade comes out. Quote Link to comment Share on other sites More sharing options...
cheeto Posted January 20, 2015 Author Share Posted January 20, 2015 that's really limited. When performing firmware updates, i can assume that the old firmware's files are completely deleted. right? is there anything that can be deleted? (temp files) I won't delete anything unless i'm 100% sure that it can be deleted. Cheers Quote Link to comment Share on other sites More sharing options...
sud0nick Posted January 20, 2015 Share Posted January 20, 2015 When new firmware is installed anything that is not needed is probably deleted (at least it should be). I wouldn't go poking around the Pineapple and deleting things just to free up space. Instead why not get a bigger sd card? There is no reason to store anything internally as everything on the Pineapple can be done just the same while using an sd card. Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted January 20, 2015 Share Posted January 20, 2015 You have around 2.8mb free on the WiFi Pineapple MKV after a fresh install. A reflash will completely wipe your device (except for the sdcard). So will a factory reset. Best Regards,Sebkinne Quote Link to comment Share on other sites More sharing options...
cheeto Posted January 21, 2015 Author Share Posted January 21, 2015 now that's odd..... I have no infusions from the pineapple bar in my internal memory.... I recently flashed the firmware. Could there be extra junk left over from a previous version? thanks Quote Link to comment Share on other sites More sharing options...
m40295 Posted January 21, 2015 Share Posted January 21, 2015 Double check to make sure your karma log file is stored on SD it gets pretty big pretty quick Quote Link to comment Share on other sites More sharing options...
cheeto Posted January 21, 2015 Author Share Posted January 21, 2015 (edited) Good point regarding the Karma log. I think it was set to tmp. I just now changed it to SD. Now i just re-flashed my mkv. I took a screen shot of the RESOURCES before and after. It's hard to determine how much free space i have internally. BEFORE: After: Edited January 21, 2015 by cheeto Quote Link to comment Share on other sites More sharing options...
sud0nick Posted January 21, 2015 Share Posted January 21, 2015 Well it's clear that your rootfs now has a lot more free space. Quote Link to comment Share on other sites More sharing options...
cheeto Posted January 21, 2015 Author Share Posted January 21, 2015 Rootfs only has a total capacity of 3.2mb. I think these screen shots don't tell me much about my free space in my internal memory. Quote Link to comment Share on other sites More sharing options...
DataHead Posted January 21, 2015 Share Posted January 21, 2015 The internal memory is low by default, and wouldn't recommend installing much to it. It is recommended to use an sd card instead of the internal. If something you are doing is needing a structure on the internal memory, you can always look into symlinking the folders. and that is with the ln -s command, id recommended reading up on that. But do keep in mind, everything is ran as a root user on the pineapple. Quote Link to comment Share on other sites More sharing options...
sud0nick Posted January 21, 2015 Share Posted January 21, 2015 The internal memory is low by default, and wouldn't recommend installing much to it. It is recommended to use an sd card instead of the internal. If something you are doing is needing a structure on the internal memory, you can always look into symlinking the folders. and that is with the ln -s command, id recommended reading up on that. But do keep in mind, everything is ran as a root user on the pineapple. I'm glad you brought that up. That's what I've done on my Pineapple. The only thing that sucks about a firmware update is having to recreate all of my symlinks, lol. I should just write a script for it and keep it on the sd card. Quote Link to comment Share on other sites More sharing options...
chreestopher Posted January 24, 2015 Share Posted January 24, 2015 on this topic, has anyone figured out how to get pip installed onto SD card, and default your site-packages to the SD card, I was able to do it after several frustrating days, only to find out the pip package i wanted to install (pysnmp) would not install (I guess pyasn1 doesnt like mips?) and then after reflashing firmware, I completely forgot how I was able to install pip... so now I just have to use the python builtins or distutils, but with such low onboard storage, cant really do much until i figure out how to move my python site-packages to the SD... I loathe installing python environments Quote Link to comment Share on other sites More sharing options...
sud0nick Posted January 24, 2015 Share Posted January 24, 2015 That's what I've been trying to do, not so much for pip, but python dependencies. It is rather difficult and opkg doesn't have some of the tools I need. Most of them aren't supported on the Pineapple anyway as they are developed for larger OSes. If you can get pip installed I would like to know how you did it so I can try to install ghost or phantomJS. Even with the sd card some python libraries are just too large and probably won't do so well, performance wise, on the Pineapple. Quote Link to comment Share on other sites More sharing options...
chreestopher Posted January 25, 2015 Share Posted January 25, 2015 I was able to get pip instaled, but it was a pain, and i even got pip + a virtual env installed onto my sdcard, but after reflashing the firmware, the virtual env on the sd card broke... as for installing pip, I first used ez-setup.py to install setuptools , then i used get-pip.py with prefix=/sd/python.... or it might have been dest=/sd/python. I had to do this on a fresh pineapple to avoid running out of space, and also I believe i had to manually create a couple directories inside of /sd/python/.../site-packages, which the pip install told me the paths were not there or had improper permissions, so i just manually created them and then it worked. Also, I had a partition on the sd for swap space, not sure if that helped or not, but figured i would mention it. After this, I was able to use virtualenv.py /sd/python/env to create a virtual env with pip at /sd/python/env. this did work great, but after a firmware flash i had essentially a virtualenv which i could use with absolute paths, but could not activate and use. I havent gotten back around to setting it up again, because of the fear of losing my working autossh ... (my relay is a windows machine, and i have to use a separate ssh server and client, so its always a pain getting my keys right, using bitvise ssh server, and openssh from cygwin as a client (couldnt get the cygwin provided ssh server to work)) Let me know if you have any success with this method please. Darren, Seb, I would really love to see a opkg python-pip for the pineapple that makes it easy to get pip installed onto the sd card, or even a way to easily move python onto the sd card entirely I tried using symlinks but it was pretty much a total disaster, not sure why, most likely because im a complete n00b.... Quote Link to comment Share on other sites More sharing options...
sud0nick Posted January 26, 2015 Share Posted January 26, 2015 I was able to get pip instaled, but it was a pain, and i even got pip + a virtual env installed onto my sdcard, but after reflashing the firmware, the virtual env on the sd card broke... as for installing pip, I first used ez-setup.py to install setuptools , then i used get-pip.py with prefix=/sd/python.... or it might have been dest=/sd/python. I had to do this on a fresh pineapple to avoid running out of space, and also I believe i had to manually create a couple directories inside of /sd/python/.../site-packages, which the pip install told me the paths were not there or had improper permissions, so i just manually created them and then it worked. Also, I had a partition on the sd for swap space, not sure if that helped or not, but figured i would mention it. After this, I was able to use virtualenv.py /sd/python/env to create a virtual env with pip at /sd/python/env. this did work great, but after a firmware flash i had essentially a virtualenv which i could use with absolute paths, but could not activate and use. I havent gotten back around to setting it up again, because of the fear of losing my working autossh ... (my relay is a windows machine, and i have to use a separate ssh server and client, so its always a pain getting my keys right, using bitvise ssh server, and openssh from cygwin as a client (couldnt get the cygwin provided ssh server to work)) Let me know if you have any success with this method please. Darren, Seb, I would really love to see a opkg python-pip for the pineapple that makes it easy to get pip installed onto the sd card, or even a way to easily move python onto the sd card entirely I tried using symlinks but it was pretty much a total disaster, not sure why, most likely because im a complete n00b.... I'm glad you were able to get it working but this is still too messy to work for installing dependencies for an infusion. I will have to pass on it for now. Are you able to install packages from pip like PhantomJS? Or are they just too large for the Pineapple? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.