Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #backup
- dd bs=4M if=/dev/sdb | gzip > sdcard.gz
- #restore
- gzip -dc sdcard.gz | dd bs=4M of=/dev/sdb
- #recreate partition
- fdisk
- p
- # note start sector of partition 2 -> start
- d
- 2
- n
- p
- 2
- #<-start
- #default
- n
- w
- #check for errors & resize
- umount /dev/sdb2
- e2fsck -f /dev/sdb2
- resize2fs /dev/sdb2
Add Comment
Please, Sign In to add comment