How recover firmware

Good afternoon!
Forgive for my English, I use Google.
It was connected to MyCloud on ssh, I have executed commands
sudo apt-get update
sudo apt-get upgrade.
The mistake has got out, it wasn’t succeeded to be updated.
After restart dashboard doesn’t work, but on ssh I can be connected.

At your forum I have found,

don’t try using apt-get from standard Debian repositories; the MyCloud is Debian, but is built with a non-standard 64k page size. Installing from standard (4k page size) Debian repositories is likely to brick your device.
and I have understood that has done a foolish think, more so I won’t do.

Execution of the command of sudo apt-get - f install gives out:

Preparing to unpack …/libc-bin_2.19-18+deb8u4_armhf.deb …
Unpacking libc-bin (2.19-18+deb8u4) over (2.17-93) …
dpkg: error processing archive /var/cache/apt/archives/libc-bin_2.19-18+deb8u4_armhf.deb (–unpack):
trying to overwrite ‘/etc/ld.so.conf.d/libc.conf’, which is also in package wd-lib 01.05.02-7ee92da
Errors were encountered while processing:
/var/cache/apt/archives/libc-bin_2.19-18+deb8u4_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have downloaded an insertion from the website, I have filled in on MyCloud, I have tried to execute the sudo updateFirmwareFromFile.sh /DataVolume/firmware.deb command, I receive a mistake:

12:52:51:failed 201 “not enough space on device for upgrade”

Thanks in advance

DO NOT USE APT-GET!!!

If you have already corrupted the OS of the My Cloud by doing an apt-get and you still have SSH access one can try using SSH to issue the firmware upgrade command. Note this may only work on the older v4.x version My Cloud devices that have the /usr/local/sbin/updateFirmwareFromFile.sh intact/present. Here are the general steps:

Note: You may need to be in the Public folder (DataVolume/shares/Public/) before issuing the wget command.

First download the current or newer firmware file to the Public folder:
wget http://download.wdc.com/nas/sq-040403-113-20160510.zip

Next Unzip the file:
unzip sq-040403-113-20160510.zip

Next issue the firmware upgrade command:
/usr/local/sbin/updateFirmwareFromFile.sh /DataVolume/shares/Public/sq-040403-113-20160510.deb

Thanks, for the answer.
I have done everything on points. However I did similar actions and earlier what I wrote above about.
Having done steps according to your instruction.
I have received result.

NIchCloud:/DataVolume/shares/Public# /usr/local/sbin/updateFirmwareFromFile.sh /DataVolume/shares/Public/sq-040403-113-20160510.deb
updateFirmwareFromFile.sh:05/25/16 06:57:30:: ( /DataVolume/shares/Public/sq-040403-113-20160510.deb )
updateFirmwareFromFile.sh:05/25/16 06:57:30:upgrade start: /DataVolume/shares/Public/sq-040403-113-20160510.deb
updateFirmwareFromFile.sh:05/25/16 06:57:30:check_size=
Error fw_update_status: failed 201 “not enough space on device for upgrade”
updateFirmwareFromFile.sh:05/25/16 06:57:31:failed 201 “not enough space on device for upgrade”
send_update_log=200

Thanks, for the answer.
I have done everything on points. However I did similar actions and earlier what I wrote above about.
Having done steps according to your instruction.
I have received result.

NIchCloud:/DataVolume/shares/Public# /usr/local/sbin/updateFirmwareFromFile.sh /DataVolume/shares/Public/sq-040403-113-20160510.deb
updateFirmwareFromFile.sh:05/25/16 06:57:30:: ( /DataVolume/shares/Public/sq-040403-113-20160510.deb )
updateFirmwareFromFile.sh:05/25/16 06:57:30:upgrade start: /DataVolume/shares/Public/sq-040403-113-20160510.deb
updateFirmwareFromFile.sh:05/25/16 06:57:30:check_size=
Error fw_update_status: failed 201 “not enough space on device for upgrade”
updateFirmwareFromFile.sh:05/25/16 06:57:31:failed 201 “not enough space on device for upgrade”
send_update_log=200

You may find solution to this error in other threads (found via a forum search using the magnifying glass icon upper right).

https://community.wd.com/t/manual-update-error-device-does-not-have-enough-space-for-upgrade/94668

https://community.wd.com/t/problem-with-firmware-update/96134

https://community.wd.com/t/not-enough-space-for-upgrade-error/93240

https://community.wd.com/t/easy-method-to-downgrade-to-previous-version-of-the-firmware/93489/86

Do a search to find more threads that may help with that specific error.

Hello, Alexandr

I had the same problem last week. Here’s my story. And this command helped me to fix “not enough space” problem.

It is also possible to correct the update script /usr/local/sbin/updateFirmwareFromFile.sh

check disk usage

dfout=df | grep /DataVolume

into:

check disk usage

dfout=df /DataVolume | grep /DataVolume