set block device before checking for free devices to attach.