LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 11-16-2014, 12:56 PM   #1
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Rasp PI: how long is the lifetime of a SD card 16GB with RASPBIAN?


Hello,

I had to re-install raspbian on a new SD card since it did not boot anymore (I still have to serach what happens to the card; probably it is dead).
The Card is a Transcend Extreme-Speed SDHC 16GB Class 10
The raspberry PI is used as print and data server and has maximum 1x on/off per day.
My impression is the SD card has to be changed from time to time (because swap on /var/..?).

How is the experience here? how long is the lifetime of a SD card on a PI with RASPBIAN? Perhaps I will have to move to another hardware with enough RAM and a small HDD (swap only) for avoiding 10€ cards from time to time.

Another question: how to copy a SD card to another (EVERYTHING: boot flag, structure, size.. ): I will make now a backup SD card if the new one, I am using now, dies again.

And last question: what cheap hardware and low consumption would you suggest in replacement of my PI? I have here old boxes but it is too big and the noise/consumption is not so good.

Thanks a lot.
 
Old 11-16-2014, 02:41 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you can attach a hard disk to the pi too, using an usb slot. The life of the sd card depends on the usage, therefore hard to say anything. You can use the command dd to save the content of the sd card . And finally there are a lot of different boxes out there, like banana pi, cubieboard .... Just check what do you really need (some of them have sata ports too)
 
Old 11-16-2014, 05:25 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

If you do connect a external USB drive to the Rpi then be sure to use a powered USB hub or you will experience issues using just the Rpi USB as power source for the external drive since that will exceed the Rpi power available.

Hope this helps.
Have fun & enjoy!
 
Old 11-16-2014, 06:07 PM   #4
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
I have 3 Pis and one of them has had issues with its SD card, the other have had no issues. See "Usage" below. The troublesome machine is the most heavily used. So I back up often. I have had 2 card failures. One was completely DOA, not just corrupted. There does not appear to be any regularity to it. I suspect variation in card quality the issue.

The raspberrypi forums have lots of discussion about card problems. In my opinion, they fall into three areas in decreasing causes: mechanical, card quality and usage.

Mechanical: Most issues are when cards get "bowed" and do not make good contact with the Pi's card holder. Sometimes cleaning the contacts or bending the card will correct it. I have read where some user add shims to force contact.

Quality: Lots of reports of cheap cards or faked brand name cards failing. Caution as to whether that great on-line deal was really a good one.

Usage: Older Pi firmware did have some issue causing rare card corruption. Supposedly this has been fixed. There are some reports that powering off with out doing a shutdown could cause corruption. Try to minimize this occurrence. Finally there is some concern that high usage is not what these cards were designed for. Use a HDD for very active volumes.
 
Old 12-01-2014, 06:46 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
As suggested by others, you should install an external HDD, meaning a real hard drive (magnetic storage media) via USB and power that externally because the Pi will not be able to power the HDD properly.

Also as stated, the lifetime of cards will vary according to manufacturing quality, and also usage. Likely the usage is the more important number. Perhaps there are some cards of very poor quality, which therefore will fail soon no matter what, but in general the quality of these cards are pretty fair and therefore uniformly high in the amount of write cycles. The usage is then the problem.

Set it up so that it boots off of the SD card, no swap, put your RFS on the external HDD and I think you'll find that the disk lasts better, plus any potential data loss will be restricted to the quality and endurance of the HDD which will be much better long term.
 
  


Reply

Tags
raspbian



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Raspbery Pi's Own Raspbian Gets SD Card Image LXer Syndicated Linux News 0 07-18-2012 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration