4 ms·
The "fix" for inexpensive hardware is to create a card image once the system is setup. Leave a freshly imaged card taped to the Rpi, and when it corrupts the SD
by ChuckMcM 12y ago
The "fix" for inexpensive hardware is to create a card image once the system is setup. Leave a freshly imaged card taped to the Rpi, and when it corrupts the SD card, swap cards, take the corrupted card and re-image it and tape it to the RPi.
An alternative is to boot the RPi diskless, this works but since everything is going through the USB bus it gets even slower than it normally is, which can make it unsuitable for an application.
- ytjohn 12y agoYou actually can't PXE boot the RPi. At best, someone might get a port of U-Boot working with the RPi and that would be what's on the SD card. I was hoping to test out bare-metal provisioning systems using RPi's but no love ther.
- ChuckMcM 12y agoCorrect, you need to craft an NFS u-boot which can boot read-only from the SD card and bring the system up. (http://billforums.station51.net/viewtopic.php?f=1&t=17 http://billforums.station51.net/viewtopic.php?f=1&t=17 is one such example, I found one on Robert Nelon's pages but can't find that one at the moment)
- learc83 12y ago>Leave a freshly imaged card taped to the Rpi, and when it corrupts the SD card, swap cards, take the corrupted card and re-image it and tape it to the RPi. That's exactly what I've done. I periodically backup a sqlite db file to S3, and I wrote a script that will retrieve the latest backup on boot. Just plug in the new card and everything is back to the way it was minus at most 3 hours of data.