deleenheir
Posts: 28
Joined: Thu Sep 19, 2013 10:00 pm

Running long term of an SD card/USB-stick

Mon Nov 10, 2014 11:39 am

I have a raspberry pi that runs raspbmc + mysql + web server + some other stuf.

I have it installed on a USB stick.

Now after 6 months the system is getting unstable.

The mysql db might be doing a lot of disc work. It executes +/- 20 querries every minute
Could it be the USB stick is already wearing out?


i'm getting errors in dmesg:

Code: Select all

EXT4-fs error (device sda1): ext4_ext_check_inode:481: inode #788007: comm ls: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 1, max 4(4), depth 128(128)

User avatar
ReBoot
Posts: 147
Joined: Mon Sep 17, 2012 2:23 pm
Location: Germany
Contact: Website

Re: Running long term of an SD card/USB-stick

Tue Nov 11, 2014 2:27 pm

This is indeed entirely possible. A friend of mine killed his SD card this way a while ago.

fruitoftheloom
Posts: 23074
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Running long term of an SD card/USB-stick

Tue Nov 11, 2014 2:42 pm

deleenheir wrote:I have a raspberry pi that runs raspbmc + mysql + web server + some other stuf.

I have it installed on a USB stick.

Now after 6 months the system is getting unstable.

The mysql db might be doing a lot of disc work. It executes +/- 20 querries every minute
Could it be the USB stick is already wearing out?


i'm getting errors in dmesg:

Code: Select all

EXT4-fs error (device sda1): ext4_ext_check_inode:481: inode #788007: comm ls: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 1, max 4(4), depth 128(128)
Install the Operating System on a Standard Hard Drive, leaving the Boot Partition on the SD Card, Flash Media has a I/O life span and will eventually fail
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
RaTTuS
Posts: 10555
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Running long term of an SD card/USB-stick

Tue Nov 11, 2014 2:46 pm

you can get 1.8" real hard disk drives if you want to keep the package really small
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

deleenheir
Posts: 28
Joined: Thu Sep 19, 2013 10:00 pm

Re: Running long term of an SD card/USB-stick

Wed Nov 12, 2014 7:14 pm

just to confirm:
I reinstalled raspbian completely... 2 days later i got the same message...

So it seems I managed to kill a kingston dt rubber 3.0 16gb in about 1 year.

I find it curious there aren't more people having these problems...

Will an ssd be as susceptible?

User avatar
ReBoot
Posts: 147
Joined: Mon Sep 17, 2012 2:23 pm
Location: Germany
Contact: Website

Re: Running long term of an SD card/USB-stick

Wed Nov 12, 2014 7:56 pm

Use a RAM-disk. That's what the co-worker of mine is doing.

DirkS
Posts: 10345
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Running long term of an SD card/USB-stick

Wed Nov 12, 2014 9:14 pm

ReBoot wrote:Use a RAM-disk. That's what the co-worker of mine is doing.
For what?

User avatar
ReBoot
Posts: 147
Joined: Mon Sep 17, 2012 2:23 pm
Location: Germany
Contact: Website

Re: Running long term of an SD card/USB-stick

Wed Nov 12, 2014 9:32 pm

For not killing the card with frequent writes.

User avatar
rpdom
Posts: 16984
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Running long term of an SD card/USB-stick

Wed Nov 12, 2014 9:42 pm

Is there enough free RAM to make a big enough RAM disk?

DirkS
Posts: 10345
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Running long term of an SD card/USB-stick

Wed Nov 12, 2014 9:47 pm

ReBoot wrote:For not killing the card with frequent writes.
Yes, that's obvious. But what are you going to store on it specifically in the OPs scenario?
And RAM is going to be a squeeze anyway and you're suggesting to take some (or a lot) away.

Gr.
Dirk.

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Running long term of an SD card/USB-stick

Thu Nov 13, 2014 5:26 am

I recommend you disable the swap file that is in Raspbian (100mb swap). I use a separate USB stick that I created a swap partition on. The USB stick is an old 512mb. More than enough for swap. If it is killed it is easy and cheap to replace. Raspbian finds it and uses it with no settings necessary.

This will remove some of the writes to your OS card so it should last longer for you!
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

User avatar
Marty
Posts: 9
Joined: Sat Nov 22, 2014 7:39 pm

3600 writes per hour when idle

Sun Nov 30, 2014 9:06 pm

Does an idle Raspbian system performs 3600 writes per hour?

The green led on my Raspberry Pi B+ faintly flashes about 60 times a minute when the system is idle.
(When I trigger activity like logging in, then the green led flashes brightly.)

If these faint flashes represent a write action to the microSD card, that would mean that the card is written to about 3600 times per hour. When using the Pi as an always on home server, write wearing on the SD card would become an issue rather quickly.

I'm running on a freshly installed Raspbian Linux 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l GNU/Linux (downloaded from: http://downloads.raspberrypi.org/raspbian_latest).

Do the faint flashes indicate microSD writes?
What causes the frequent writes during idle time?
How can they be decreased?

Return to “Raspberry Pi OS”