Trying to debrick MBL 2T, get getting errors

I reviewed the guides and try a few options and now I think I have messed up the drive … it that is even possible!

I am using VMware / Ubuntu 16.04 and a sata -usb connection. On my first go it almost worked but the dashboard was slow and unusable and firmware updates failed so I tried again with the destroy flag and a newer img…more errors and now I am getting these errors…

Seems like like this is the root of the issue mdadm: Cannot find /dev/md0: No such file or directory

What should I try… not data to save.

ian@ian-VirtualBox:~/Downloads$ sudo bash ./debrick.sh mybook.img /dev/sdb destroy

********************** DISK **********************

script will use the following disk:

Model: WDC WD20 EURS-63S48Y0 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags

is this REALLY the disk you want? [y] y

********************** IMAGE **********************

swap.c:12:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main(int argc, char *argv[])
^
swap.c: In function ‘main’:
swap.c:32:9: warning: implicit declaration of function ‘lseek64’ [-Wimplicit-function-declaration]
if (lseek64(fd, offset, 0) < 0LL) {
^

********************** IMPLEMENTATION **********************

everything is now prepared!
device: /dev/sdb
image_img: mybook.img
destroy: true

this is the point of no return, continue? [y] y

32+0 records in
32+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0.283763 s, 118 MB/s
32+0 records in
32+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0.327274 s, 103 MB/s
32+0 records in
32+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0.2614 s, 128 MB/s
32+0 records in
32+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0.22873 s, 147 MB/s
Testing with pattern 0x00: done
Reading and comparing: done
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) mklabel gpt
(parted) mkpart primary 528M 2576M
(parted) mkpart primary 2576M 4624M
(parted) mkpart primary 16M 528M
(parted) mkpart primary 4624M -1M
(parted) set 1 raid on
(parted) set 2 raid on
(parted) quit
Information: You may need to update /etc/fstab.

Warning: blocksize 65536 not usable on most systems.
mke2fs 1.42.13 (17-May-2015)
mkfs.ext4: 65536-byte blocks too big for system (max 4096)
Proceed anyway? (y,n) y
Warning: 65536-byte blocks too big for system (max 4096), forced to continue

Filesystem too small for a journal
Creating filesystem with 512 64k blocks and 512 inodes

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

destroying was done, would you like to continue with installation? [y] y

mdadm: /dev/sdb1 is not a block device
mdadm: Cannot find /dev/md0: No such file or directory
mke2fs 1.42.13 (17-May-2015)
The file /dev/md0 does not exist and no size was specified.
mdadm: error opening /dev/md0: No such file or directory

synchronize raid… mdadm: Cannot find /dev/md0: No such file or directory
done

copying image to disk…
dd: writing to ‘/dev/md0’: No space left on device
1761777+0 records in
1761776+0 records out
902029312 bytes (902 MB, 860 MiB) copied, 67.1523 s, 13.4 MB/s
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error

   In some cases useful info is found in syslog - try
   dmesg | tail or so.

cp: cannot stat ‘/mnt/md0/usr/local/share/bootmd0.scr’: No such file or directory
./debrick.sh: line 359: /mnt/md0/etc/nas/service_startup/ssh: No such file or directory
umount: /mnt/md0: not mounted
mdadm: /dev/md0 does not appear to be an md device
BLKGETSIZE: Inappropriate ioctl for device
BLKGETSIZE: Inappropriate ioctl for device

all done! device should be debricked!

Done… Worked!

Issues for me must have been the USB to SATA connection… followed this Guide without issue once I got the drive directly connected to my PC