User:PMay/Complete System Backup

From ArchWiki
Jump to: navigation, search

Use dd to fill the disk with zeros

Fill the /boot partition

  • clear the /boot partition with zero
 dd if=/dev/zero of=/boot/deletemelater bs=1024
 df
 rm /boot/deletemelater
 df

Fill the root partition

  • use df to see how many blocky are free
  • then use dd to fill them
 dd if=/dev/zero of=/deletemelater bs=1024 count=<number_of_free_block - some>
 df
 rm /deletemelater
 df

Backup /boot

 umount /boot
 dd if=/dev/sda2 | gzip | ssh mike@84.129.211.92 "cat > boot.img.gz"
 mount /boot