First of all, thanks @Fox_exe for the hard work. I really appreciated.
My device is a Gen 1 and I was doing some experiments that lead me to a problem now.
After installing clean_debian 64k the repos were not working so I decided to move it back to clean_debian Jessie but when I try to re-run autoinstall it said that mdadm was not working proberly.
When I tried to run root@mycloud: mdadm
it always answer with ‘Killed’.
root@MyCloud:~# mdadm
Killed
Full Log:
root@MyCloud:/data/shares/Public# ./install.sh
=============================================
Ok, lets go...
Stop all processes...
forked-daapd: no process found
Stopping periodic command scheduler: cron.
./install.sh: line 44: wdAutoMountAdm.pm: command not found
Recreate mdraid partitions:
/dev/md0 exist! Deleting...
./install.sh: line 58: 2093 Killed mdadm --stop ${upgradeDevice} 2> /dev/null
./install.sh: line 58: 2094 Killed mdadm --wait ${upgradeDevice} 2> /dev/null
Restoring raid...
./install.sh: line 61: 2097 Killed mdadm ${currentRootDevice} --remove ${Disk}1 > /dev/null 2>&1
./install.sh: line 62: 2098 Killed mdadm --wait ${currentRootDevice} 2> /dev/null
./install.sh: line 63: 2099 Killed mdadm ${currentRootDevice} --add ${Disk}1 > /dev/null 2>&1
./install.sh: line 64: 2100 Killed mdadm --wait ${currentRootDevice} 2> /dev/null
./install.sh: line 65: 2101 Killed mdadm ${currentRootDevice} --remove ${Disk}2 > /dev/null 2>&1
./install.sh: line 66: 2102 Killed mdadm --wait ${currentRootDevice} 2> /dev/null
./install.sh: line 67: 2103 Killed mdadm ${currentRootDevice} --add ${Disk}2 > /dev/null 2>&1
./install.sh: line 68: 2104 Killed mdadm --wait ${currentRootDevice} 2> /dev/null
=============================================
Current device: /dev/md1
Upgrade device: /dev/md0
Upgrade part: /dev/sda1
Current raid status:
Personalities : [linear] [raid0] [raid1] [raid10]
md1 : active raid1 sda2[0]
1999808 blocks [2/1] [U_]
md0 : active raid1 sda1[0]
1999808 blocks [2/1] [U_]
unused devices: <none>
=============================================
Creating new mdraid volume...
./install.sh: line 80: 2106 Killed mdadm ${currentRootDevice} -f ${upgradePart}
./install.sh: line 81: 2107 Killed mdadm --wait ${currentRootDevice}
./install.sh: line 83: 2109 Killed mdadm ${currentRootDevice} -r ${upgradePart}
./install.sh: line 84: 2110 Killed mdadm --wait ${currentRootDevice}
./install.sh: line 86: 2112 Killed mdadm --zero-superblock --force --verbose ${upgradePart}
./install.sh: line 89: 2115 Killed mdadm --create ${upgradeDevice} --verbose --metadata=0.90 --raid-devices=2 --level=raid1 --run ${upgradePart} missing 2> /dev/null
./install.sh: line 90: 2116 Killed mdadm --wait ${upgradeDevice}
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Something wrong: /dev/md0 not exist !!
!! Exiting now. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I tried to reinstall mdadm but unfortunately with the 64k repo not working I wasn`t able to doit. Now i am stuck, I still have access to ssh, mounting and unmounting and everyting but I cant reinstall debian.
Thanks in advance.