As usual Google is your friend - search for 'boot raspberry Pi from USB disk' and you will find a plethora of replies, many of which have tutorials or links to tutorials.
Gary
great, I will update my environment with hdd.
Regards
Jacek
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
I had 5 already
toshiba claas 10
samsung evo pro
sandisk extreme
sandisk ultra
Intenso claas 10
in general all get corrupted after 3-4 month
all cards had been 16-32gb
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Jacek,
When you say you are seeing "corruption", what do you mean? In my experience SD card failures typically show as write or read failures, but not data corruption.
Like Thomas, I have PI systems that have been running for over two years with no SD card failures. As long as you don't do something like enable a swap partition and run so much on the PI that you cause swapping, there shouldn't be enough data activity to hit any of the SD write limits for several years.
---
Dan Rich <dr...@employees.org> | http://www.employees.org/~drich/ | "Step up to red alert!" "Are you sure, sir? | It means changing the bulb in the sign..." | - Red Dwarf (BBC)
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
I mean crash of the rasbperry Pi
and many errors like kernel panic connected with the filesystem
Few times I had tried to get card to the PC with knoppix and do fsck to repair filesystem but all trials make the data corrupted -> I gave up and bougth new card and system was working for some time.
At the begining I thought it's a case of power / stability of power.
For about 6months I have PiUPS and APC UPS, APC is mainly for making the power more electric user friendly and to keep power for 5minutes. PiUPS is for keeping power for 30minutes and then to clearly poweroff. From this time - I have 100% power on, but on Saturday second card failed. I get mail from WU about no data from station, I attached tv to the Pi and I had seen kernel panic because of filesystem.
This is my problem.
iotop shows nothing special from time to time 50KB/S write but total is always 0.
I use sqlite version - and the file weewx.sdb was located on external USB Flash
I have default skin, I send data to 4 weathers services and ftping those to my web server - located in external DC.
So in my point of view it's crazy!!!
One of my friend told me that the problem could be reading data
from /dev/ttyUSB0 and putting logs on sd card
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
Total DISK READ : 0.00 B/s | Total DISK WRITE : 0.00 B/sActual DISK READ: 0.00 B/s | Actual DISK WRITE: 0.00 B/sPID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND87 be/3 root 0.00 B 136.00 K 0.00 % 0.03 % [jbd2/mmcblk0p2-]14302 be/4 root 0.00 B 704.00 K 0.00 % 0.00 % python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf12435 be/4 pi 0.00 B 24.00 K 0.00 % 0.00 % vmstat 60 1440495 be/4 root 0.00 B 16.00 K 0.00 % 0.00 % rsyslogd -n
On Tuesday, November 1, 2016 at 9:28:58 AM UTC+1, Glenn McKechnie wrote:I wouldn't have thought ftp would add any burden - the files have been generated already and it's just reading them.run iotop as iotop -oaP This will show running process's only and accumulated totals - run it for a while and you'll get a better feel of what's happening as regards total writes.sqlite write total will be included under the python /usr/bin/weewx total - sqlite is a friendlier option for the SDCardlogging will be visible under iotop as rsyslogd -n (or whatever daemon you use). Turns out, it's not as big a burden as it's made out to be; at least on the systems here.
/dev/ttyUSB0 should be dealt with in memory, no disk access involved
As you say, it is a bit odd.
vmstat is from 2 days to see when and what is going on.
I need to talk to my friend who moved files from sd to flash. Because he did it for me.
Regards
Jacek
after one hour I get14302 be/4 root 0.00 B 11.70 M 0.00 % 0.01 % python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
does it mean that weewx pid write down 11.7? or which file produced so huge amount of data?
Maybe I should put it in the ram or on the flash
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
answering inline
Out of curiosity - do youa)run software other than debian, weewx, SQLite and maybe a webserver on your pi?
b)do you regularly - eg once a month - keep your rpi sw up-to-date with update/upgrade?
c)do you regularly keep other software you use up-to-date?
d)do you make sure that you do not run experimental sw on your 'production' pi, but only on a backup pi - in case issues are raised during the experiment .....
e)do you run fsck routinely?
f)have you tried repairing the sd card by booting into single user - or touching to force fsck on boot?
g)do you always - 100% of the time - do orderly powerdowns and in the event of any unexpected power failures routinely do full fsck and repairs?
Some of these questions are relevant in that, for example, the effects of a disorderly loss of power may not be seen until some time after the event - when the disk sector(s) in question are next accessed. Software which crashes can corrupt a disk before crashing - and if that SW is not used (because it crashed) the effect can go unnoticed for some considerable time .... and so on and so forth .....
There's no need to respond to this post - it is more intended to just make sure that you are thinking of these things - since I seem to recall that you're not, for example, on the latest weewx - and seemed to have difficulties working out a simple template change to add soilTemp1 to a webpage, so I am not sure of your level of expertise in computers/Linux/RPi/weewx/etc .....
Just trying to be helpful and give you some 'food for thought' ..... as I said, no need to respond!!
Andrew
answering inline
Out of curiosity - do you
a)run software other than debian, weewx, SQLite and maybe a webserver on your pi?
no, the pi is dedicated for weewx, so this is a core. Of course I have additional small programs like htop, bwm-ng and other just to monitor the pi.
yes, I dob)do you regularly - eg once a month - keep your rpi sw up-to-date with update/upgrade?
c)do you regularly keep other software you use up-to-date?
hard to say what is experimental, I did not provide any bigger chages to the rasbian so I think there is nothing speciald)do you make sure that you do not run experimental sw on your 'production' pi, but only on a backup pi - in case issues are raised during the experiment .....
no, I do it only in case of errore)do you run fsck routinely?
2 times, I booted lapton with knoppix, put the card in reader and tried to repair, after few hours of fight - theoretically card was repaired but when I inserted it and booted system from it, the weewex was corruptedf)have you tried repairing the sd card by booting into single user - or touching to force fsck on boot?
having pi UPS, it's nearly impossible to have unexpected power failure. This setup is also connected to the APC UPS - to make power better for electric devices.g)do you always - 100% of the time - do orderly powerdowns and in the event of any unexpected power failures routinely do full fsck and repairs?
Some of these questions are relevant in that, for example, the effects of a disorderly loss of power may not be seen until some time after the event - when the disk sector(s) in question are next accessed. Software which crashes can corrupt a disk before crashing - and if that SW is not used (because it crashed) the effect can go unnoticed for some considerable time .... and so on and so forth .....
There's no need to respond to this post - it is more intended to just make sure that you are thinking of these things - since I seem to recall that you're not, for example, on the latest weewx - and seemed to have difficulties working out a simple template change to add soilTemp1 to a webpage, so I am not sure of your level of expertise in computers/Linux/RPi/weewx/etc .....
Just trying to be helpful and give you some 'food for thought' ..... as I said, no need to respond!!
Andrew
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
we solved the problem with raspberries and SD Cards with writings most things to "RAMDISK" / tmp Files. So RAM Drive is the solution for the problem.
# For Debian Jessie - RAM Drive using weewx
tmpfs /tmp tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0tmpfs /var/log tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0
tmpfs /var/tmp tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0
tmpfs /var/run tmpfs defaults,nosuid,mode=0755,noatime 0 0
I did a little more research with some controlled reboots and found that systemd really doesn't like /var/run in tmpfs.
Does a 'systemctl' command on your system show a couple failed processes ?
tmpfs /var/www/weewx tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0tmpfs /var/log/nginx tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0
Cool idea putting that stuff in tmpfs rather than hard-allocating a ramdisk and maybe not using it...that'll give me more free space on the pi that does my weathercam. Thanks !
- for the weewx directory, your NOAA reports will disappear every time you reboot, so wouldn't weewx (very slowly) regenerate them every reboot ?
- I didn't notice where your archive directories are located. Do you copy the old one back into place via rc.local or something on every reboot ?
Does a 'systemctl' command on your system show a couple failed processes ?
No :-)
- frank
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Hi Vince
- for the weewx directory, your NOAA reports will disappear every time you reboot, so wouldn't weewx (very slowly) regenerate them every reboot ?
we run jessie on the raspberries with no problem running this fstab.Maybe /var/run to tmpfs causes problems on other systems - here no problems
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
On my RPi installs of jessie and wheezy, /var/run is just a symlink to /run, and /run is a tmpfs filesystem — it’s created by an init script, not mounted out of fstab, but it is tmpfs.