LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Reliability of SD/MMC for running OS (https://www.linuxquestions.org/questions/slackware-arm-108/reliability-of-sd-mmc-for-running-os-4175559423/)

atelszewski 11-20-2015 10:17 AM

Reliability of SD/MMC for running OS
 
Hi,

I've been doing embedded Linux based systems for quite some time now.
I'm using Buildroot as opposed to Slackware. The point here is that Slackware would be overkill. With Buildroot I can get fully usable system that, depending on the target goal, can be between 4 to 40MB in size, kernel included. The size matters when it comes to installation time and very often the devices do not have enough flash storage for a full blown system. In addition, systems generated with Buildroot will keep most of the frequently changing files in the tmpfs, which prevents killing the NAND flash too quickly. And last, but not least, Buildroot gives me the fine-grained control over what goes into the final filesystem. As you can see, I have no big experience with Slackware ARM.

And now my question:

I think many of you is using SD/MMC and doing full Slackware installation on such a medium. I would like to ask you, what is the reliability of such setups? I mean, does it behave well running for extended period of times or do you experience some hiccups related to SD/MMC not being reliable and erroneous?

I'm personally really scared of SD/MMC and I try to avoid it as much as possible. The point is that, I have experienced some erroneous behaviors. It wasn't frequent, but still. What I observed was read errors, write errors and system hangups. The hangup happened to me recently on RPi B+, even though the system was running from ramfs. I credit this to the SD/MMC driver for RPi having some errors.

I would phrase it in the following way: give me your board running from SD/MMC and after shorter or longer time I'll hang it and it will hang due to the SD/MMC error;)

I don't remember where I read it, but somebody said that even the most expensive SD/MMC won't give much more reliability over a cheaper card. They are simply not reliable.

Please let me know your thoughts and experience.

--
Best regards,
Andrzej Telszewski

justwantin 11-20-2015 01:20 PM

I have an RPI B that has been up one year six days 24X7 today in my garden shed with the exception of a couple power outages. It's connected to a DIY weather station circuit. Data from circuit plus data parsed from BOM webpage at nearby airport is stored in a round robin database and a csv file. Halfway through this period I also started parsing and collecting data for forex and spot prices. All this is served up on a web page available on our lan via wireless. Webpage contents include pre-formatted text that along with data and graphs (as images) is updated every 15 minutes. Much of the info is presented in fancybox popups. There is also a webcam providing video feed of back garden on demand.

I was concerned about the rewrites and power outages but so far the only problem I have had was from birds. Blackbirds nested in the shed near my setup and and while the parents didn't bother anything the fledgings must've been attracted by the LEDs and pecked at the circuit board before leaving home for good damaging my humidity sensor:<(

I don't know how long it would take me to put all that together with Buildroot but everything with the exception of four slackbuilds came with a Slackwarearm install less the gui stuff.

atelszewski 11-20-2015 01:33 PM

Hi,

@justwantin the question is, are you running all of this from SD card?

--
Best regards,
Andrzej Telszewski

justwantin 11-20-2015 01:37 PM

Yes

atelszewski 11-20-2015 01:44 PM

Hi,

Quote:

Originally Posted by justwantin (Post 5452835)
Yes

I don't believe it ;)

--
Best regards,
Andrzej Telszewski

justwantin 11-20-2015 02:06 PM

What reason would there be for me to lie. I don't have shares in Kingston or Sandisk. I have also had a cards go bad but I would put that down to my abuse. The setup I described is a prototype that, as I said, has been running headless for over a year year with access via ssh. I intend to build something more permanent (and bird proof) with a bananapipro and 2.5" hdd. That will go into a stevenson screen on a post instead of a shelf behind a window in a garden shed. I just haven't, had time.

atelszewski 11-20-2015 02:11 PM

Hi,

Quote:

What reason would there be for me to lie.
Don't take it too seriously, there was no insult in my reply.
Please note the ":)" at the end of the phrase, well, :)

--
Best regards,
Andrzej Telszewski

justwantin 11-20-2015 02:21 PM

I've seen people smile as the stuck hooks in worms!

atelszewski 11-20-2015 02:36 PM

Hi,

@justwantin when I smile I smile because I smile:)

--
Best regards,
Andrzej Telszewski

nolretou 11-23-2015 04:41 AM

Some cards support only FAT32.
Some cards seems to support e.g. EXT2, but fails after a while.

Sandisk Extreme Pro seems to be the best choice.

Here's a non-exhaustive chart :
http://pandorawiki.org/SD_compatibility_list

Note that the read/write speeds are related to the Open Pandora, which is limited to around 17MB/s.

atelszewski 11-23-2015 09:04 AM

Hi,

Quote:

Some cards support only FAT32.
How is this possible? I've never heard of such a limitation.

--
Best regards,
Andrzej Telszewski

nolretou 11-23-2015 09:45 AM

I have absolutely no idea.
I saw it myself a bunch of times, that's why I stick with the expensive extreme pro. I think extreme are also ok, but I didn't test any since 2012.

atelszewski 11-23-2015 10:02 AM

Hi,

Can you give me a bit more details?
You mean mke2fs is not able to create the file system structure?
Or you cannot use fdisk to partition?

--
Best regards,
Andrzej Telszewski

nolretou 11-23-2015 10:12 AM

Usually, partitioning and formatting works.
As soon as you write data, you run into I/O errors.

Penthux 11-26-2015 02:06 PM

Since the release of the Samsung EVO microSD cards I have used them, almost exclusively, on the rpi and rpi2. These cards have proven to be 100% stable and reliable, more so than any other SD or microSD card I have used on these devices. I believe the Samsung EVO microSD cards to be superior and that's why I use them and would recommend them to anyone and everyone. In all the time I have used these cards they have not given me one single problem.

I have approx. 5 rpi and rpi2 devices active at the moment, using Samsung EVO microSD cards in 4 of them. I use them for; running and testing (mainly Slackware ARM) Linux operating systems, KODI, SlackBuilding lots of packages, doing lots and lots of BASH scripting, running a web server, running a ntp server, and lately I've been doing a bit of Python development to interact with some website projects.

I cannot recall how many installations of Slackware ARM I have performed on the Samsung EVO microSD cards, but it will literally be 100s. Or the countless hours/days/weeks/months I have spent working with them.

If you are wanting the best microSD card then, in my experience, I cannot recommend the Samsung EVO highly enough.


All times are GMT -5. The time now is 09:09 AM.