Go Down

Topic: How to expand the storage memory on the Yún (Read 35736 times) previous topic - next topic

ShapeShifter

Is there a limit to the sd-card's capacity? I can't get my Yun to recognize any sd-card that I have (they are all 32gb).
I have several 32GB cards. The Yun recognized and accessed all of them when they are formatted as a single FAT32 partition.

Once I run the disk expander which creates an ext4 Linux partition and a FAT32 data partition, none of them are recognized.

Not a definitive answer, but one data point in trying to figure out what is and is not compatible?

Angelo9999

Are these SD cards recognized on a computer?

Try to run on your Yun with the SD inserted and post your output:

Code: [Select]
fdisk -l /dev/sda

https://github.com/sngl

ShapeShifter

Are these SD cards recognized on a computer?
Not sure who you're asking... me, or the guy I responded to who was having disk problems?

In case it's me, when my 32 GB card was a single large FAT32 partition, I could access it on my PC and my Yuns. Once I ran the expansion sketch which partitioned and formatted my 32 GB card, I can no longer access it from my PC.

Code: [Select]
root@Arduino1:~# fdisk -l /dev/sda

Disk /dev/sda: 31.9 GB, 31914983424 bytes
64 heads, 32 sectors/track, 30436 cylinders, total 62333952 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xac9bc88c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    50333695    25165824    c  W95 FAT32 (LBA)
/dev/sda2        50333696    62333951     6000128   83  Linux



If I run a partition manager on my PC, it shows very similar information (see attachment.)


rwaldron

Are these SD cards recognized on a computer?

Try to run on your Yun with the SD inserted and post your output:

Code: [Select]
fdisk -l /dev/sda


Yes, they are recognized on a computer. I had a new Yun delivered yesterday which easily recognized the sd-card(s)--until it ceased responding at the end of a Yun-LininoOS upgrade.

Angelo9999

Yes, they are recognized on a computer. I had a new Yun delivered yesterday which easily recognized the sd-card(s)--until it ceased responding at the end of a Yun-LininoOS upgrade.
Are they with a single partition or two partition?

@ShapeShifter:
Yes I was asking to you. By the way it seems good from fdisk output, honestly I don't know that the cause can be. I'll do some research about it.
https://github.com/sngl

ShapeShifter

Thanks. When I insert it into my laptop, the access light on the card reader (internal card slot, not a USB reader) blinks about once a second, constantly (normally there is a few seconds of fast fluttering, then it only lights while actually being accessed.) The drive never mounts, and a windows never makes the book-beep sound when it is recognized and mounted. But the partitioning software (Paragon Partition Manager) has no trouble reading and displaying the partition data.

otrcomm

#51
Jan 04, 2015, 08:08 pm Last Edit: Jan 04, 2015, 08:59 pm by otrcomm
Hello all - I am a newbee to the Yun and I am having difficulties expanding the storage memory. I have followed the tutorial, but keep getting various errors. When I load the YunDiskSpaceExpander.ino and walk through the prompts, sometimes I get the message "The micro SD card is not available." Other times I make it through creation of partitions and loading software to the SD card, but then at reboot with YUN RST button, I get error about unable to mount /dev/sda2.

Currently I am stuck at the "...micro SD card is not available" error.

I am using a 2GB SanDisk MicroSD Card and have tried two different cards.

Any ideas?

I got beyond the "... SD card not available" message and this is what I get when I reboot with YUN RST:

Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[    9.600000] JFFS2 notice: (527) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 11 of xref (0 dead, 0 orphan) found.
[   11.380000] sd 0:0:0:0: [sda] 3899392 512-byte logical blocks: (1.99 GB/1.85 GiB)
[   11.380000] sd 0:0:0:0: [sda] Write Protect is off
[   11.390000] sd 0:0:0:0: [sda] No Caching mode page present
[   11.390000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   11.390000] sd 0:0:0:0: [sda] No Caching mode page present
[   11.400000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   11.400000]  sda: sda1 sda2
[   11.410000] sd 0:0:0:0: [sda] No Caching mode page present
[   11.410000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   11.410000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   31.930000] EXT4-fs (sda2): ext4_check_descriptors: Block bitmap for group 0 not in group (block 4294967295)!
[   31.930000] EXT4-fs (sda2): group descriptors corrupted!
mount: mounting /dev/sda2 on /overlay failed: Invalid argument
switching to jffs2
- init -

Any ideas here?

Thanks!

ShapeShifter

I am using a 2GB SanDisk MicroSD Card and have tried two different cards.
Have you tried putting those cards in another computer, formatting them, copying 2GB of data to them, and then making sure you can read them back?

It's probably not your problem, but there are a lot of counterfeit cards out there. SanDisk is especially susceptible to the unscrupulous counterfeiters because they are such a widely known name. These counterfeit cards often don't work properly, or actually have less memory than stated. These are often sold as "upgraded" cards meaning that they are really smaller cards that have been fudged to report that they contain more memory than is really there. They start out working OK, so people think that all is well. But as the card fills up, it suddenly starts giving them trouble once it reaches the point where there is no more actual memory.

I'm not saying this is your problem. But since the disk expander sketch puts the Linux boot partition at the end of the card's space, problems would show up quickly if it were an "upgraded" counterfeit.

Put the cards in another computer, reformat them, and give them a good workout. If the cards don't work well in the other computer, they won't have a chance of working on the Yun.

otrcomm

ShapeShifter - amitofo - thanks for the comeback. you hit the nail on the head. the "SanDisk" cards were bogus. I tried a MicroSD card and it worked perfectly.

ShapeShifter

Hmmm... I don't know how to feel about this. I'm happy you got it working, but I'm sad you got stuck with bad cards.

otrcomm

Well it is ok from our stand point since the SanDisks work fine in our UNOs for data acquisition at various water wells that we have. So, now the Yun can be setup as the data acquisition hub on the internal network and send out sms messages if critical events occur.

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.

ShapeShifter

I think that error is usually due to an Internet connectivity problem. Given that you can't access the URL from Chrome, I think that clinches it. The problem doesn't appear to be with the Yun or opkg, but rather with your Internet connection. Until you can download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig with your browser, I wouldn't worry too much about trying to do it with the Yun.

SoUpY

#58
Jan 16, 2015, 01:06 am Last Edit: Jan 16, 2015, 01:45 am by 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?

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

jessemonroy650

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

Go Up