News for hackers. Stuff that matters.
Re:1980s Amiga has been running the AC and heat in 19 school... by blhack on Sunday December 16, 2018 @01:00PM (#18694176)
I have a PI in an interactive art installation that gets power cycled pretty freaking often, and so far the card has held up.

It is something I worry about though.

Re:1980s Amiga has been running the AC and heat in 19 school... by lostlogin on Sunday December 16, 2018 @01:37PM (#18694392)
Can you just duplicate the card and use that image as a backup? I’ve stashed a few away like this but pcdoodle’s suggested solution sounds a lot more elegant.
Re:1980s Amiga has been running the AC and heat in 19 school... by giobox on Sunday December 16, 2018 @01:55PM (#18694487)
This is actually more difficult than you’d expect in some ways. The vast majority of card cloning guides will advise you to use the ‘dd’ command line utility, which makes an exact replica of the card, including the free space.

Unfortunately not all SD cards, even if advertised as the same capacity, are exactly the same size. If your replacement card is just 1 byte smaller your dd clone won’t restore - the “free” space has to fit into the target card as well.

Long story short - most popular methods of cloning microSD cards for the Pi only ensure the ability to restore to a larger SD card, not necessarily one of the same advertized size.

For sure there are workarounds, but it’s not as straightforward as you might assume. Personally I’m much more a fan of other tools such as rsync or version control etc for cloning data to and from Pi projects.

The better answer is just to USB boot the Pi anyway - they’ve supported this for a while now, no card corruption issues to mitigate.

Re:1980s Amiga has been running the AC and heat in 19 school... by lostlogin on Sunday December 16, 2018 @03:46PM (#18695134)
Thanks for this. I need to change what I’m doing.
Re:1980s Amiga has been running the AC and heat in 19 school... by blhack on Tuesday December 18, 2018 @05:49PM (#18711343)
rsyncing the entire root file tree should be good enough.
Re:1980s Amiga has been running the AC and heat in 19 school... by nijave on Sunday December 16, 2018 @06:13PM (#18695840)
Clonezilla?
Re:1980s Amiga has been running the AC and heat in 19 school... by pcdoodle on Sunday December 16, 2018 @01:19PM (#18694283)
Read only file system guides are out there. This makes it 90% more reliable.