Difference between revisions of "User:PMay/Complete System Backup"

From ArchWiki
Jump to: navigation, search
 
Line 17: Line 17:
 
   rm /deletemelater
 
   rm /deletemelater
 
   df
 
   df
 +
 +
== Backup /boot ==
 +
  umount /boot
 +
  dd if=/dev/sda2 | gzip | ssh mike@84.129.211.92 "cat > boot.img.gz"
 +
  mount /boot

Latest revision as of 16:19, 27 December 2013

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