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

From ArchWiki
Jump to: navigation, search
Line 7: Line 7:
 
   df
 
   df
 
   rm /boot/deletemelater
 
   rm /boot/deletemelater
 +
  df
  
 
=== Fill the root partition ===
 
=== Fill the root partition ===
Line 15: Line 16:
 
   df
 
   df
 
   rm /deletemelater
 
   rm /deletemelater
 +
  df

Revision as of 12:15, 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