Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #20327

Re: Zero-WH, strange SD card behaviour

From druck <news@druck.org.uk>
Newsgroups comp.sys.raspberry-pi
Subject Re: Zero-WH, strange SD card behaviour
Date 2019-06-22 12:20 +0100
Organization A noiseless patient Spider
Message-ID <qel2us$rhd$1@dont-email.me> (permalink)
References <qeivp3$g5k$2@dont-email.me> <qejdq2$gtu$1@dont-email.me> <qekqfb$a3u$1@dont-email.me>

Show all headers | View raw


On 22/06/2019 09:56, Markus Robert Kessler wrote:
> - I switched to crontab-based reboots because the same machine (RPi Zero
> Wifi) is used for taking photos on demand. Therefore I ssh into it and
> start a script which accesses a USB webcam via fswebcam and transfers the
> photos to a webserver.
> This works fine, but from time to time fswebcam suddenly is no longer
> able to get data from the webcam for some reason. In this case even a
> "USB reset" does not work. So the machine has to be rebooted anyway.

This suggests to me that the webcam may be very close to the maximum 
current available from the Zero's USB port. If it has been currently 
limited the voltage will drop and many devices will no longer respond 
until the power is cycled. A USB deivce drawing too much current may 
also cause the WiFi to drop out on the Pi.

The solution would be to either attach the webcam through an externally 
powered USB hub, or replace it with a Raspberrp Pi camera, which are 
lower power.

> B.t.w., I already tried to put the line "fsck -p /dev/mmcblk0p1" into /
> etc/rc.local to reset file system's "dirty bit" to prevent it from
> demanding for a filesystem check. This seems to have no effect.

A fsck will be performed on system startup, long before anything in 
/etc/rc.local gets run. I know you can force an fsck on boot using 
/boot/cmdline.txt but I don't think you can prevent one.

> So, RPi or the OS, seems to make changes to the filesystem / MBR or what
> else, which cannot be recovered by RPi itself, but a "normal" Linux
> machine can handle this without even alerting about any trouble.

If this is happening the card needs to be replaced. If it wasn't a Zero 
I'd suggest booting from a USB stick for better reliability, but as an 
SD card is the only option, a high endurance version is probably worthwhile.

---druck

Back to comp.sys.raspberry-pi | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Zero-WH, strange SD card behaviour Markus Robert Kessler <dimke.fax@uni.de> - 2019-06-21 16:14 +0000
  Re: Zero-WH, strange SD card behaviour Martin Gregorie <martin@mydomain.invalid> - 2019-06-21 18:45 +0000
  Re: Zero-WH, strange SD card behaviour Alister <alister.ware@ntlworld.com> - 2019-06-21 19:30 +0000
  Re: Zero-WH, strange SD card behaviour druck <news@druck.org.uk> - 2019-06-21 21:13 +0100
    Re: Zero-WH, strange SD card behaviour Markus Robert Kessler <dimke.fax@uni.de> - 2019-06-22 08:56 +0000
      Re: Zero-WH, strange SD card behaviour druck <news@druck.org.uk> - 2019-06-22 12:20 +0100
        Re: Zero-WH, strange SD card behaviour Markus Robert Kessler <dimke.fax@uni.de> - 2019-06-22 20:48 +0000
          Re: Zero-WH, strange SD card behaviour druck <news@druck.org.uk> - 2019-06-24 21:59 +0100
        Zero-WH, strange SD card behaviour. nospam.Henri.Derksen@f1208.n280.z2.binkp.net (Henri Derksen) - 2019-06-25 12:37 +1300
          Re: Zero-WH, strange SD card behaviour. nospam.Dan.Clough@f1.n770.z1694.fidonet.org (Dan Clough) - 2019-06-25 19:22 +1300
          Re: Zero-WH, strange SD card behaviour. druck <news@druck.org.uk> - 2019-06-26 19:44 +0100
  Re: Zero-WH, strange SD card behaviour nev young <newsforpasiphae1953@yahoo.co.uk> - 2019-06-22 11:33 +0100

csiph-web