How to expand the storage memory on the Yún

I would like some clarification, although the answer may be painfully obvious: What exactly is moved on to the new root partition that you create? Is it only the files that you yourself create, or does it move other important files as well? In other words, in the future, what would I need to do if I lose the SD card or need to use a larger one?

EDIT: jessemonroy650, your probably right. I'll post/research in the future if I need to

SoUpY: I would like some clarification, although the answer may be painfully obvious: What exactly is moved on to the new root partition that you create? Is it only the files that you yourself create, or does it move other important files as well? In other words, in the future, what would I need to do if I lose the SD card or need to use a larger one?

SoUpY, Please start a new thread. This is off topic for this thread.

Jesse

I don’t know, I don’t think it’s that far of topic, at least not for a quick answer:

SoUpY:
What exactly is moved on to the new root partition that you create?

The entire Linux file system is moved over.

what would I need to do if I lose the SD card or need to use a larger one?

Repeat the whole process - but first do a quick edit to the fstab of the on-board file system to undo the expansion. (See the “if you encounter any error” section of THIS POST.)

iamadog3333: :'( When I do the expand storage tutorial, opkg update procee failed.

When I run the cmd "opkg update", connection to the server seems failed.

root@Arduinoyunzhang:~# opkg update Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz. Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig. Signature check failed. Remove wrong Signature file. Collected errors: * opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz, wget returned 8. * opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig, wget returned 8.


For Chinese guys, if Internet blocked, use the Files: 百度云盘 http://yun.baidu.com/share/link?shareid=840462841&uk=1950281063

Thanks to Angelo9999.

I also can not acess the URL from my Chrome Browser. I am at Beijing, China. Any surgestions? Thank you.

iamadog3333: :'( When I do the expand storage tutorial, opkg update procee failed.

When I run the cmd "opkg update", connection to the server seems failed.

root@Arduinoyunzhang:~# opkg update Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz. Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig. Signature check failed. Remove wrong Signature file. Collected errors: * opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz, wget returned 8.

* opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig, wget returned 8.

I also can not acess the URL from my Chrome Browser. I am at Beijing, China. Any surgestions? Thank you.

For Chinese guys, if Internet blocked, use the Files: 百度云盘 http://yun.baidu.com/share/link?shareid=840462841&uk=1950281063

Thanks to Angelo9999.

And use this method: nano /etc/opkg.conf

src/gz attitude_adjustment http://downloads.arduino.cc/openwrtyun/1/packages

src/gz local file:////mnt/sda1/openwrtyun opkg update

Thanks to sonnyyu.

http://forum.arduino.cc/index.php?topic=237178.msg2054049#msg2054049

http://forum.arduino.cc/index.php?topic=292286.0

Hi. I have tried your tutorial and it works. It partitioned my SD card, but, how come when I compile my sketch the size of it still the same? Does the SD really expand the memory?

It expands the amount of space available on the Linux system drive so that you can install more files into the Linux system. The "memory" it is referencing is the on-board flash memory that is used by Linux as a boot drive.

It has nothing to do with the amount of RAM in the Linux processor, nor does it have anything to do with the amount of RAM, PROGMEM, or EEPROM in the Arduino processor. There is nothing that can be done to increase the amount of these other types of memory.

Carefully re-read the first paragraph of the first post in this thread, it explains the limited scope of this upgrade. It's a very hand thing to do, but it does not affect sketch programming in any way.

I got gcc to work three weeks ago, on three different Arduinos, but now I can't get the SD cards to work correctly. Very annoying.

Once you get the SD cards initialized, and change the /overlay file system as needed (which is done by the memory expansion sketch), then you get to install the gcc environment using opkg.

The main things (from memory): gcc is named (I think) yun-gcc, so you need to do this: opkg install yun-gcc That will not work, so it will then tell you to do a wget, followed by local image install. You also need libc. This should be loaded auto-magically. Finally, you need to install bintools, if you actually want to run the program. Oh, yeah, make would be good to have, too.

dave_98063: I got gcc to work three weeks ago, on three different Arduinos, but now I can't get the SD cards to work correctly. Very annoying. ::::SNIP::::

@dave_98063, this is appears to be off topic. Please start a new thread. It appears you have a gcc install problem. Or something directly related to the actual install.

TIA Jesse

Agreed. New thread will be called something like "Problems with SD card memory expansion"

Will this help me with "the sketch is too big" error message?

Update: I guess I did not read carefully the thread. ShapeShifter explained it all. This hack is for the other side of the "bridge" where Linux lives. So sad :) the Arduino's memory cannot be in crease.

Hi,

How can we know which packages to delete? And do we have to re-install them after?

Thank for helping.

roadfun: My first Yun conversion went smoothly. But my second one failed (error detailed below). I surmised this was a issues with free space on / (of course that's why I was happy to see this extension scheme). I recalled I was at about 90% before running the conversion script. I removed a couple of packages to get to 83% full on / and re-ran the sketch. It ran correctly.

Bottom line is you may want to ensure you have about 80% free space on / before running this conversion.

Software list updated. Installing software (this will take a while)... err. installing e2fsprogs mkdosfs fdisk

This page has some info on 'opkg'. If you do aopkg list it will show everything that's installed. Look for any optional packages you installed and remove however many you need in order to free up space using opkg remove package_name. Just be careful not to remove the key system packages.

Thank for your reply.

Is it a way to have the default packages list of the board?

Thank you.

To find out default installed packages list at board:

/usr/bin/reset-to-factory-anyway
reboot
opkg list-installed

Caution "reset-to-factory-anyway" will bring board back to factory default , anything you did will be reset.

Hello

I have expanded my Yun with a 8GB microSD card and installed node.js and node-serialport.js, and everything was OK.

The next step was to edit the /etc/inittab, and before doing it I wanted to check whether unplugging the microSD card, I could access SSH via serial port COM with the root file system that is in the flash memory.

Once I was checked that it was Ok. I wanted to plug the microSD card again to work with my Yun expanded, so I unplugged my Yun, plug the microSD card and plug the Yun again and when I enter via SSH and typed:

root@ofcyun:/# df -h / /mnt/sda1 Filesystem Size Used Available Use% Mounted on rootfs 6.9M 1.3M 5.7M 19% / df: /mnt/sda1: can't find mount point root@ofcyun:/#

So it doesn't recognize the microSD card, I don't get errors , and I didn't edit the /etc/config/fstab.

Once I have plugged the microSD card I reboot both the Linux and Arduino parts.

So, Are there something that i have missed?

Thanks

aabm01: Hello

Please don't cross-post and ask the same question multiple times. It doesn't get your question answered any faster, and it only dilutes the responses by spreading any answers over multiple threads. It just wastes time and effort. I already responded in in your original thread.

Sorry you are right.

When I saw your answer to the other question I took the opportunity to ask the this question and forget delete or redirect this one.

Hi all,

did someones Yun ever show the "Not enough disk space"-Error, while using the diskExpander-Sketch?

I need some help hereby.....

Any idea why I am getting this instead of the windows shown in this tutorial? http://www.arduino.cc/en/Tutorial/ExpandingYunDiskSpace

Here's what I get: http://i.imgur.com/GfrM17T.png

I am planning to install Node using opkg but I ran out of space so I came across this tutorial but it is not working either. root@Arduino:~# opkg update Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz. Updated list of available packages in /var/opkg-lists/attitude_adjustment. Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig. Signature check passed. root@Arduino:~# opkg install node Installing node (v0.10.33-1) to root... Collected errors: * verify_pkg_installable: Only have 2040kb available on filesystem /overlay, pkg node needs 3016 * opkg_install_cmd: Cannot install package node. root@Arduino:~# df -h Filesystem Size Used Available Use% Mounted on rootfs 6.9M 4.9M 2.0M 71% / /dev/root 7.5M 7.5M 0 100% /rom tmpfs 29.8M 480.0K 29.4M 2% /tmp tmpfs 512.0K 0 512.0K 0% /dev /dev/mtdblock3 6.9M 4.9M 2.0M 71% /overlay overlayfs:/overlay 6.9M 4.9M 2.0M 71% / /dev/sda1 7.3G 46.8M 7.2G 1% /mnt/sda1

Any step-by-step commands that help me increase the step would be really great. My MicroSD card is 8G.