backing up and restoring the root partition