Trouble with corrupted sd card - Raspberry Pi Forums
we have raspberry pi model b running latest raspian image headless server 24/7, , have been having trouble data getting corrupted on sd card. have bash script called udev whenever external usb hard drive plugged in, , uploads new files internet.
drive connected via manual usb switch , may switched @ time, hot-plugging drive without un-mounting it. udev detects removal of drive however, , kills processes using (the bash script , upload process).
drive powered drive (western digital elements 2tb) , mounted read-only protect data on it.
question - causing data corruption on sd card?
research on forum , elsewhere suggests either:
1) poor quality sd cards (we have used kingston cards mainly).
2) hot-plugging of external usb devices (does apply if device has it's own power supply?)
or perhaps should cleanly unmount drive before removing it. however, drive fine - sd card gets corrupted..
3 options options open me appear be:
1) usb hub prevent pi rebooting (if happening - not around check!)
2) move root filesystem on external usb drive prevent data corruption.
3) use gpio pin electronically switch external drive once has been cleanly unmounted.
other ideas?
folks here think best option going forward?
many thanks
james
drive connected via manual usb switch , may switched @ time, hot-plugging drive without un-mounting it. udev detects removal of drive however, , kills processes using (the bash script , upload process).
drive powered drive (western digital elements 2tb) , mounted read-only protect data on it.
question - causing data corruption on sd card?
research on forum , elsewhere suggests either:
1) poor quality sd cards (we have used kingston cards mainly).
2) hot-plugging of external usb devices (does apply if device has it's own power supply?)
or perhaps should cleanly unmount drive before removing it. however, drive fine - sd card gets corrupted..
3 options options open me appear be:
1) usb hub prevent pi rebooting (if happening - not around check!)
2) move root filesystem on external usb drive prevent data corruption.
3) use gpio pin electronically switch external drive once has been cleanly unmounted.
other ideas?
folks here think best option going forward?
many thanks
james
what power measured tp1 tp2
hot plugging can cause power spikes , use powered usb hub , cut red lead going rpi
hot plugging can cause power spikes , use powered usb hub , cut red lead going rpi
raspberrypi
Comments
Post a Comment