Save and restore boot sector.