Added searching for a location with enough free space for edata rebuilding.