Greetings,
I have a WD My Cloud running v04.04.02-105.
I tried manually upgrading and auto upgrading the firmware but received:
“Device does not have enough space for upgrade. (370002)” in both instances.
I also followed the KB Guide:
http://support.wdc.com/knowledgebase/answer.aspx?ID=13179
This did not work either. Just kept getting the same error.
Finally, I did some digging and discovered that the scripts WD uses to check the available space on /DataVolume was not working properly.
Specifically, the script calls the linux utility “df”
As we can see in this…
/usr/local/sbin/updateFirmwareFromFile.sh on line 202:
dfout=df | grep /DataVolume
Unfortunately, my version of df on the device (GNU coreutils) 8.23 did not output anything for DataVolume because it considered it a dummy file system, and without the “-a” flag, it would omit those results, thus causing the dfout variable to be null and thus invoking this error.
So, I got around this to upgrade by modifying three lines:
/usr/local/sbin/updateFirmwareFromFile.sh on line 202:
dfout=df | grep /DataVolume
TO:
dfout=df -a | grep /DataVolume
/usr/local/sbin/updateFirmwareToLatest.sh on line 59:
dfout=df | grep /DataVolume
TO:
dfout=df -a | grep /DataVolume
/usr/local/sbin/getDataVolumePercentUsed.sh on line 13:
dfout=df | grep /DataVolume
TO:
dfout=df -a | grep /DataVolume
]
Incidentally, I was able to perform an auto upgrade after these modifications from the UI to v04.04.04-101.
It should be noted, that after upgrading to this version, the df utility was downgraded to (GNU coreutils) 8.13 and does show all of the volumes without needing the -a flag.