Edit: adding a guide since i figured this out. All the credit goes to abskmj and @Fox_exe.
Clean Debian Install && OMV 3 Install
Firstly open the WD My Cloud box and unplug the HardDrive from the main board and then connect it to a linux computer.
Partiton drive
Run parted on the WD drive
parted /dev/sd*
Remove all partitions on the drive (DATA LOSS)
rm 1
rm 2
rm 3
rm 4
rm 5
rm 6
rm 7
rm 8
Recreate all needed partitions
mklabel gpt
mkpart primary 528M 2576M
mkpart primary 2576M 4624M
mkpart primary 16M 528M
mkpart primary 4828M 100%
mkpart primary 4624M 4724M
mkpart primary 4724M 4824M
mkpart primary 4824M 4826M
mkpart primary 4826M 4828M
set 1 raid on
set 2 raid on
Quit parted
q
Format data partition
Note: -O ^metadata_csum is needed since new versions of mkfs insert this feature, wich its not supported on older systems.
mkfs -t ext4 -O ^metadata_csum /dev/sd*4
Create swap partition
mkswap /dev/sd*3
Mound raid partions
mdadm --stop /dev/md*
mdadm -A /dev/md0 /dev/sd*1 /dev/sd*2
Mound data partitions
mount -t ext4 /dev/sd*4 /mnt
cd /mnt
Download the Clean Debian package and extract it
wget https://github.com/abskmj/wd-mycloud-gen1/releases/download/packages/clean-debian-jessie.tgz
tar zxvf clean-debian-jessie.tgz
Copy images to partitions
dd if=kernel.img of=/dev/sd*5
dd if=kernel.img of=/dev/sd*6
dd if=config.img of=/dev/sd*7
dd if=config.img of=/dev/sd*8
dd if=rootfs.img of=/dev/md0
Reconnect WD drive to My Cloud board. Power it on and connect a LAN cable
Connect to it with: ssh root@192.168.X.XXX
The default password for the root user is mycloud
First change root password with passwd
and follow the prompt
Remove all lines in sources.list with
nano /etc/apt/sources.list
and paste this inside
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb http://packages.openmediavault.org/public erasmus main
Run the following commands. Ignore the warnings.
apt-get update
apt-get install --force-yes openmediavault-keyring
apt-get update
apt-get upgrade
apt-get install openmediavault
At the mdadm prompt choose none and leave the rest as is.
Finish the install with this command
omv-initsystem
Now we need to label the data partition, since OMV uses labels to identify storage devices.
e2label /dev/sd*4 DATA
Reboot the system
reboot
Once the system is up and running you can login to the web interface at port 80 with the credentials admin
and openmediavault
as password
Go to System > General Settings > Web Administrator Password and change the admin password
Now go to Storage > File Systems and check that the data partition (/dev/sd*4) has the previously given label.
If everything is all right we can move on to the creation of a Shared Folder and a new User under Access Rights Management.
Lastly choose your preferred protocol between the ones available and enjoi your newly updated NAS.