Problem with sd card? Help please.

all about Meteohub on the new Raspberry PI platform

Moderator: Mattk

MrPippoTN
Senior Boarder
Senior Boarder
Posts: 41
Joined: Sat Dec 10, 2011 1:49 pm

Problem with sd card? Help please.

Post by MrPippoTN »

Hello. In last three or four days I've had a problem with my Meteohub. I noticed that my weather data were strange on my website: http://www.dolomitilivecam.it/it/meteo- ... m-badia-bz

So I opened my Meteohub's control panel and tried to understand what happened. I rebooted the Raspberry, then clicked on "Weather Station" menu link and tried to set "clear internal recordings and set interval to 5 minutes" on Init Comand.

But after clicking on "Save" I get this red alert message:
Initialization file cannot be opened (/home/meteohub/logger.conf): No space left on device

No space left on device? What? I started to use this meteohub less than one month ago! It's a Raspberry Pi with a 8 GB SD card.

Any suggestion?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Problem with sd card? Help please.

Post by admin »

Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
MrPippoTN
Senior Boarder
Senior Boarder
Posts: 41
Joined: Sat Dec 10, 2011 1:49 pm

Re: Problem with sd card? Help please.

Post by MrPippoTN »

admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
Can you suggest me a solution?
Jippe
Junior Boarder
Junior Boarder
Posts: 20
Joined: Wed Dec 15, 2010 4:25 pm
Contact:

Re: Problem with sd card? Help please.

Post by Jippe »

MrPippoTN wrote:
admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
Can you suggest me a solution?
Simply: regular backups, new sd-card and new install ;)
MrPippoTN
Senior Boarder
Senior Boarder
Posts: 41
Joined: Sat Dec 10, 2011 1:49 pm

Re: Problem with sd card? Help please.

Post by MrPippoTN »

Jippe wrote:
MrPippoTN wrote:
admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
Can you suggest me a solution?
Simply: regular backups, new sd-card and new install ;)
Do you know a brand of safe SD Card?

The weather station I'm asking help for is very far apart from here. Can I set all parameters from my home and send a ready SD card to the weather station's owner? And, eventually, how?
goombah
Fresh Boarder
Fresh Boarder
Posts: 15
Joined: Sat Apr 18, 2015 5:45 am

Re: Problem with sd card? Help please.

Post by goombah »

MrPippoTN wrote:
admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
Can you suggest me a solution?
Or log in as root, unmount /data, and run fsck against it...

fuser -km /data - will kill all processes using /data
umount /data
fsck /dev/mmcblk0p4
shutdown -r now

A "df" command will show you the utilization of each mounted filesystem, I'm presuming its /data that is having the problem.
User avatar
ON1DQD
Expert Boarder
Expert Boarder
Posts: 101
Joined: Fri Dec 05, 2008 8:46 pm
Location: Belgium (Genk)

Re: Problem with sd card? Help please.

Post by ON1DQD »

MrPippoTN wrote:
admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
Can you suggest me a solution?
I also like to now if there is a tool for repairing the file system.
Regards / Grüß,
Geert - ON1DQD
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Problem with sd card? Help please.

Post by admin »

Linux has tools like e2fsck for that.
User avatar
ON1DQD
Expert Boarder
Expert Boarder
Posts: 101
Joined: Fri Dec 05, 2008 8:46 pm
Location: Belgium (Genk)

Re: Problem with sd card? Help please.

Post by ON1DQD »

if I do:

Code: Select all

fuser -km /data     (will kill all processes using /data)

than

Code: Select all

umount /data
I receive:

Code: Select all

 umount: /data: device is busy
Do I assume that there is still something using /data ?
Regards / Grüß,
Geert - ON1DQD
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: Problem with sd card? Help please.

Post by YJB »

Yeah, fuser will not kill all the processes.

If you have access to the console, I would recommend to go to init 1 (which means no network access), as this will definitely kill things like smb.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Problem with sd card? Help please.

Post by admin »

Core files to transfer are:
/data/weather/YYYYMM/* for raw weather data
/data/graphs/* for graph definition
/home/meteohub/meteohub.conf for most of config data
/var/cron/tabs/root for the upload/send schedules
miraculon
Senior Boarder
Senior Boarder
Posts: 56
Joined: Sun Dec 15, 2013 3:02 pm

Re: Problem with sd card? Help please.

Post by miraculon »

MrPippoTN wrote:
admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
Can you suggest me a solution?
The next time my SD card goes bad, I am seriously considering one of these Panasonic "Industrial Grade" SD cards:

http://panasonic.net/avc/sdcard/industr ... ineup.html

The "SLC" (single-level) cards seem to be the best, but they are really expensive. Even the RP-SDPC16 is almost twice what the Rasperry Pi costs.

Greg
User avatar
ON1DQD
Expert Boarder
Expert Boarder
Posts: 101
Joined: Fri Dec 05, 2008 8:46 pm
Location: Belgium (Genk)

Re: Problem with sd card? Help please.

Post by ON1DQD »

Where do you buy these cards?
I can not find them in normal shops.

Also importend what are the prices for 8 or 16GB ?
Regards / Grüß,
Geert - ON1DQD
miraculon
Senior Boarder
Senior Boarder
Posts: 56
Joined: Sun Dec 15, 2013 3:02 pm

Re: Problem with sd card? Help please.

Post by miraculon »

ON1DQD wrote:Where do you buy these cards?
I can not find them in normal shops.

Also importend what are the prices for 8 or 16GB ?
I found them (16GB) on Mouser (USA), but I switched to Mouser Europe and they seem to have it as well. Price is 57,79 €

http://eu.mouser.com/ProductDetail/Pana ... CYeA%3d%3d

Greg
User avatar
ON1DQD
Expert Boarder
Expert Boarder
Posts: 101
Joined: Fri Dec 05, 2008 8:46 pm
Location: Belgium (Genk)

Re: Problem with sd card? Help please.

Post by ON1DQD »

miraculon wrote:
ON1DQD wrote:Where do you buy these cards?
I can not find them in normal shops.

Also importend what are the prices for 8 or 16GB ?
I found them (16GB) on Mouser (USA), but I switched to Mouser Europe and they seem to have it as well. Price is 57,79 €

http://eu.mouser.com/ProductDetail/Pana ... CYeA%3d%3d

Greg
Thanks for sharing.

Why would these cards be any better than the normal ones accept for better Low/High temperature environments, can someone confirm thats it is worth the money?
Regards / Grüß,
Geert - ON1DQD
Post Reply