Skip to content

Instantly share code, notes, and snippets.

View msebolt's full-sized avatar
🔩
stack builder

Matthew Sebolt msebolt

🔩
stack builder
View GitHub Profile
@msebolt
msebolt / backup.txt
Created March 2, 2018 23:24
(Pi) Server Image Backup Process
dd if=/dev/zero of=test.img bs=4096 count=10240 (can make larger)
fdisk test.img
use 'o'
then 'n', 'p', '1', '8192', '122879'
then 't', '1', 'c'
look up 'End' sector number of first partition, add 1
then 'n', 'p', '2', 'number calculated above', default full space end
then 'w'
...