Go to advanced search

by paulv
Wed Jun 13, 2018 7:20 am
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB (Flash) stick corruption

After trying to minimize the "disc" activity by reducing logging of my applications, using logrotate and tmpfs and a couple more things, it only took about 2 moths before the stick developed issues. And this was with a brand name USD flash stick, sigh... I gave up on using a flash stick for the OS. ...
by paulv
Fri Jun 01, 2018 7:39 am
Forum: Automation, sensing and robotics
Topic: Simple Pi UPS with 2 batteries
Replies: 18
Views: 11807

Re: Simple Pi UPS with 2 batteries

The circuit in this post is from a long, long time ago. I have learned a lot since then. If you look for other posts I have made on this forum regarding UPS supplies, you will find several that also use Li-Ion cells. A very good one is described here : https://www.raspberrypi.org/forums/viewtopic.ph...
by paulv
Thu May 31, 2018 7:05 pm
Forum: Automation, sensing and robotics
Topic: Simple Pi UPS with 2 batteries
Replies: 18
Views: 11807

Re: Simple Pi UPS with 2 batteries

NO! You can't use this simple charger method for Lithium-Ion cell types!
The risk is too high. This is especially why I used NiMH cells, they are much more forgiving.
by paulv
Thu May 10, 2018 6:55 pm
Forum: Advanced users
Topic: STICKY: HOWTO: Move the filesystem to a USB stick/Drive
Replies: 330
Views: 406960

Re: STICKY: HOWTO: Move the filesystem to a USB stick/Drive

Putting your data files in one place makes a backup all the more easy, and you can move the data easier between different target computers.
If you don't need/want that, keeping the partition as large as possible helps the card with wear leveling.

Enjoy!
by paulv
Wed May 09, 2018 6:06 pm
Forum: Advanced users
Topic: Is this the correct way to install the watchdog package?
Replies: 44
Views: 49114

Re: Is this the correct way to install the watchdog package?

The systemd version as I have described it will only cover a hung system or unresponsive app. There are a couple more things it can do, but not watch your internet connection, unless you write the code in your app to do that. The "traditional" watchdog package has the ability to "watch" over many di...
by paulv
Sat Apr 07, 2018 5:14 pm
Forum: Advanced users
Topic: STICKY: HOWTO: Move the filesystem to a USB stick/Drive
Replies: 330
Views: 406960

Re: STICKY: HOWTO: Move the filesystem to a USB stick/Drive

Hi Nalbee, The smallest size SD card for this application is the one that your selected OS version will fit on. There is no definite number because the size changes with every OS revision. However, keep in mind that if you are going to use the card for "normal" use (running the OS from it), the larg...
by paulv
Sat Apr 07, 2018 6:20 am
Forum: Automation, sensing and robotics
Topic: Add an analog output to the Pi (DAC)
Replies: 15
Views: 13251

Re: Add an analog output to the Pi (DAC)

Hi Paul, Using CE0 and CE1 is exactly how you describe. You can use these two hardware "selectors" to control two separate devices. Alternatively, you can use one chip with two (or more) devices and select them in software (controlling a "selector "bit within the control byte/word of the chip) in a ...
by paulv
Wed Mar 28, 2018 3:30 pm
Forum: Automation, sensing and robotics
Topic: Raspberry Pi UPS with Auto Restart
Replies: 20
Views: 10951

Re: Raspberry Pi UPS with Auto Restart

Well done mj2708! I have the same observation. Doesn't bother me though, because it helps me to see if the RPi is powered or not. On my system, the red LED is on when the RPi is off, and when it runs, this LED is off. The green LED is on when the main power is present, and the blue shows power to th...
by paulv
Tue Mar 20, 2018 9:11 am
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB (Flash) stick corruption

Despite my recent efforts to minimize crashes, I had another catastrophic failure today. In my latest setup, I used a 16GB Transcent USB stick that tested OK with the destructive tests before I used it.This stick has been used for occasional temporary data storage for a couple of years without any p...
by paulv
Mon Mar 12, 2018 7:27 pm
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB (Flash) stick corruption

While further trying to find tools that can identity potential troublesome flash drives, I first tried the DOS tool H2testW (version 1.4) that reported a bunch of problems. Encouraged, I then downloaded and installed the F3 Linux tool suite, which is based on H2testW, but further developed, and trie...
by paulv
Mon Mar 12, 2018 6:40 am
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB (Flash) stick corruption

While my tests are running, I started to look for more information about what can/could go wrong when using flash drives. Eventually, you’ll come across tools that try to separate the fake from the real sticks. Fake because there are sticks that report a much higher capacity then is actually there. ...
by paulv
Sun Mar 11, 2018 10:15 am
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB (Flash) stick corruption

Some more observations while using my "bad" USB flash "drive". I created 3 partitions on the 8GB stick, each 2GB in size with type fd00 (Linux raid) I created a type 5 raid as follows : sudo mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdb2 /dev/sdb3 Then did the usual...
by paulv
Sun Mar 11, 2018 9:17 am
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB (Flash) stick corruption

Hi hojnikb, Thank you for your tips. However, they are not bringing insight into what this post is all about. In the first post, I specifically said : Please don't tell me to use a rotating HDD or an SSD one, I know that much and I will go that route, but I just want to find out what tricks, if any,...
by paulv
Sat Mar 10, 2018 10:40 am
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB (Flash) stick corruption

Karrika et all, The funny thing is, I have used these mini 8GB flash sticks for longer periods as the rootfs for my RPi's. See my sticky post : https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=44177 In any case, I have now configured a raid5 by using three partitions of 2GB each on one 8GB st...
by paulv
Sat Mar 10, 2018 4:44 am
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB (Flash) stick corruption

Here is more information if you want to learn about RAID drives.
https://www.tecmint.com/understanding-r ... -in-linux/
Enjoy!
by paulv
Sat Mar 10, 2018 4:42 am
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB (Flash) stick corruption

It seems I’m not the only one with weird corruption issues on USB flash drives.
viewtopic.php?t=65108
by paulv
Fri Mar 09, 2018 2:45 pm
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB stick corruption

After experiencing the same corruption problem on a regular basis, while trying to prevent it from happening, I did a couple of things that may be useful for other as well. First of all, I used cron to run a shell file-check script every 6 hours. This script would terminate all the processes that ac...
by paulv
Fri Mar 02, 2018 7:57 pm
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Re: Prevent/Minimize USB stick corruption

Model B Rev 2 with 512MB Made in the UK cat /proc/cpuinfo processor : 0 model name : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 697.95 Features : half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7 Hardware : BCM...
by paulv
Fri Mar 02, 2018 4:23 pm
Forum: Advanced users
Topic: Prevent/Minimize USB (Flash) stick corruption
Replies: 17
Views: 1623

Prevent/Minimize USB (Flash) stick corruption

No, this is not for the SD card! I use an 8GB USB Flash stick "drive" as data storage connected to one of the RPi USB ports. The data storage is less than 1MB in total, so there should be plenty of free space for data management and re-allocation, I think. For this project, I use a classic Model (1...
by paulv
Wed Feb 28, 2018 8:43 am
Forum: Beginners
Topic: HOW-TO Start/Stop/Powerdown Pi with 1 Button
Replies: 30
Views: 19432

Re: HOW-TO Start/Stop/Powerdown Pi with 1 Button

Hi Uwe, I'm glad you like it. Actually, the best and safe solution for you would be to use a 78L05 voltage regulator, which is a voltage regulator in a TO-92 package. You can give this just about any voltage between 2V above the output value all the way up to 40V. I'm mentioning 2V above the output ...
by paulv
Tue Jan 09, 2018 7:11 pm
Forum: Beginners
Topic: HOW-TO Start/Stop/Powerdown Pi with 1 Button
Replies: 30
Views: 19432

Re: HOW-TO Start/Stop/Powerdown Pi with 1 Button

Hi Alan, The link you provide does not seem to go where you intend it to go. It gives me no clue to what you're using. In any case, it could very well be that your EN pin has the logic inverted. With my example, the EN is tied to ground in the standard configuration. In that xase, the output is enab...
by paulv
Thu Nov 02, 2017 3:46 pm
Forum: Advanced users
Topic: Is this the correct way to install the watchdog package?
Replies: 44
Views: 49114

Re: Is this the correct way to install the watchdog package?

You are probably right, but then the whole post has to be re-written.
This will be a big PITA with the poor editing features, so I'm not going to do that.

I'll leave it for somebody else to write a post titled "This is the correct way to use the Watchdog" ;)

Have fun!

Paul
by paulv
Thu Nov 02, 2017 2:19 pm
Forum: Advanced users
Topic: Is this the correct way to install the watchdog package?
Replies: 44
Views: 49114

Re: Is this the correct way to install the watchdog package?

After all this time, I finally got a reply email from the Debian kernel folks. They have now my bug reports. Here is a link to an updated Watchdog description for Debian: viewtopic.php?t=147501&p=972709 Note that in the text it says to activate the watchdog with 20seconds. This does not work on the ...
by paulv
Tue Oct 03, 2017 2:45 pm
Forum: Advanced users
Topic: Is this the correct way to install the watchdog package?
Replies: 44
Views: 49114

Re: Is this the correct way to install the watchdog package?

For those of you that still experience a not automatically rebooting RPi after a kernel crash, I happened to find a possible solution that probably came about in a later kernel version. Try this: sudo nano /etc/sysctl.conf And add the following : Kernel.panic=10 This will set the automatic reboot af...
by paulv
Mon Sep 11, 2017 8:11 am
Forum: Advanced users
Topic: Designing a single cell UPS for the power hungry RPi's
Replies: 0
Views: 944

Designing a single cell UPS for the power hungry RPi's

A friend and I set out on a quest to design a UPS for the RPi that really worked for higher power applications. Most designs, even the ones I have listed on this Forum myself, suffer from a lack of true output power for the more power hungry RPi Models, like the Model 3, or when there are enough dev...

Go to advanced search