try multiple times to attach a loop device to a file