08-17-2016, 09:52 AM
(08-14-2016, 06:33 PM)MarkHaysHarris777 Wrote: Another tip, you can backup the SD card by reversing the burn process. Once I get my SD cards working the way I want them to I use the DD command to write the card back out to my image server. If I blow a card I'm back up and running without a hitch in about twenty minutes.
I'm not sure I can write a card in 20 minutes, but I might do that. My main issue is that the pine is running necessary network infrastructure (dhcp and dns), so the wife and kids get grumpy when I take that away
And pfeerick, you'll probably get better compression if you compress with xz or bzip2. dd will read from standard in if you leave out the if argument i.e.
Code:
bzcat image.bz2 | dd of=/dev/sdcard bs=1m
or
Code:
xzcat image.xz | dd of=/dev/sdcard bs=1m
You could also easily create compressed images:
Code:
dd if=/dev/sdcard bs=1m | bzip2 - > image.bz2
or
Code:
dd if=/dev/sdcard bs=1m | xz - > image.xz
You could get crazy and include -9 in the compression arguments if time isn't an issue, but space is. In fact, I might do that... we just need some "down time".