Problem with sd card? Help please.
Moderator: Mattk
Problem with sd card? Help please.
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?
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?
Re: Problem with sd card? Help please.
Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
which unfortunately happens here and there on the RPI.
Re: Problem with sd card? Help please.
Can you suggest me a solution?admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
Re: Problem with sd card? Help please.
Simply: regular backups, new sd-card and new installMrPippoTN wrote:Can you suggest me a solution?admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.

Re: Problem with sd card? Help please.
Do you know a brand of safe SD Card?Jippe wrote:Simply: regular backups, new sd-card and new installMrPippoTN wrote:Can you suggest me a solution?admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
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?
Re: Problem with sd card? Help please.
Or log in as root, unmount /data, and run fsck against it...MrPippoTN wrote:Can you suggest me a solution?admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
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.
Re: Problem with sd card? Help please.
I also like to now if there is a tool for repairing the file system.MrPippoTN wrote:Can you suggest me a solution?admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
Regards / Grüß,
Geert - ON1DQD
Geert - ON1DQD
Re: Problem with sd card? Help please.
Linux has tools like e2fsck for that.
Re: Problem with sd card? Help please.
if I do:
than
I receive:
Do I assume that there is still something using /data ?
Code: Select all
fuser -km /data (will kill all processes using /data)
Code: Select all
umount /data
Code: Select all
umount: /data: device is busy
Regards / Grüß,
Geert - ON1DQD
Geert - ON1DQD
- YJB
- Platinum Boarder
- Posts: 387
- Joined: Thu Feb 19, 2009 5:53 pm
- Location: Venhuizen, Netherlands
- Contact:
Re: Problem with sd card? Help please.
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.
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.
Re: Problem with sd card? Help please.
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
/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
Re: Problem with sd card? Help please.
The next time my SD card goes bad, I am seriously considering one of these Panasonic "Industrial Grade" SD cards:MrPippoTN wrote:Can you suggest me a solution?admin wrote:Looks like the file system on your SD card is damaged,
which unfortunately happens here and there on the RPI.
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
Re: Problem with sd card? Help please.
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 can not find them in normal shops.
Also importend what are the prices for 8 or 16GB ?
Regards / Grüß,
Geert - ON1DQD
Geert - ON1DQD
Re: Problem with sd card? Help please.
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 €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 ?
http://eu.mouser.com/ProductDetail/Pana ... CYeA%3d%3d
Greg
Re: Problem with sd card? Help please.
Thanks for sharing.miraculon wrote: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 €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 ?
http://eu.mouser.com/ProductDetail/Pana ... CYeA%3d%3d
Greg
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
Geert - ON1DQD