Unbrick MyCloud Once and For All - Lets Make A Clear Tutorial for Everyone!

Oooh missed that one. :slight_smile: What I’ve done is create a set of img files with the latest My Cloud firmware from the My Cloud partition to a Share on the My Cloud:

Create backups of My Cloud partitions using SSH while in a My Cloud Share:
sudo dd if=/dev/sda5 of=kernel.img
sudo dd if=/dev/sda7 of=config.img
sudo dd if=/dev/md0 of=rootfs.img

I copy those three files to a PC that has Ubuntu installed on it. Then use a portion of the Fox_exe script to write those files back to the My Cloud hard drive attached to that Ubuntu PC when either using a new drive or when futzing around in the firmware (currently struggling with trying to get Clean Debian and Open Media Vault working) and bricking the current drive. Obviously this process only works if the drive is already partitioned correctly.

sudo mdadm --stop /dev/md*
sudo mdadm --create /dev/md0 --level=1 --metadata=0.9 --raid-devices=2 /dev/sdb1 /dev/sdb2
sudo watch cat /proc/mdstat 
Wait for 100%. Then - [ctrl] + [c] for close.
sudo dd if=kernel.img of=/dev/sdb5
sudo dd if=kernel.img of=/dev/sdb6
sudo dd if=config.img of=/dev/sdb7
sudo dd if=config.img of=/dev/sdb8
sudo dd if=rootfs.img of=/dev/md0