Sziasztok!
Azoknak szeretnék segíteni, akik hozzám hasonlóan frissítetek a firmware-t 4.00.00-607-re és most szeretnék visszaállítani a régi 03.04.01-230 -as firmware-t, mert pl. Transmission 2.82-t nem tudják telepíteni az új firmware-re. A megoldást a WD Community oldalán találtam meg. A lentebb leírtakat mindenki csak saját felelősségére csinálja meg. Én 0.0% Linux és 100%-os Google Translate angol tudással csináltam meg.
Re: [GUIDE] Transmission 2.82 [ Edited ]
Thursday - last edited Thursday
(of course, I don't take responsability if your disk crashes, your girlfriend leaves you or your nany goes homicidal)
Ok, Ill walk through the process of downgrading a My Cloud as I’ve had to unexpectedly experience this issue today after an automatic update over night!.
The info needed is already in this thread;
As posted by kdh812
“You can try this as following this command on SSH :
# /usr/local/sbin/updateFirmwareFromFile.sh /DataVolume/shares/Public/sq-030401-230-20140415.deb
Before run this command, you should download and unzip like this.
# wget http://download.wdc.com/nas/sq-030401-230-20140415.deb.zip
# unzip http://download.wdc.com/nas/sq-030401-230-20140415.deb.zip
”
Thank you for the comment, you gave me the first of the info required; running the below in a terminal...
/usr/local/sbin/updateFirmwareFromFile.sh /DataVolume/shares/Public/sq-030401-230-20140415.deb
Lets break this down;
/usr/local/sbin/updateFirmwareFromFile.sh
This is the script My Cloud uses to install new firmware, (we will be using this later)
/shares/Public/sq-030401-230-20140415.deb
The above is the location of the firmware file,
Right now the My Cloud install script will not allow you to downgrade, as confirmed by JoaquinAR, with the following output when trying to downgrade.
“updateFirmwareFromFile.sh:07/10/14 01:23:51:: ( /DataVolume/shares/Public/sq-030401-230-20140415.deb )
updateFirmwareFromFile.sh:07/10/14 01:23:51:upgrade start: /DataVolume/shares/Public/sq-030401-230-20140415.deb
updateFirmwareFromFile.sh:07/10/14 01:23:51:check_size=
updateFirmwareFromFile.sh:07/10/14 01:23:52:version_current=040000607
updateFirmwareFromFile.sh:07/10/14 01:23:52:version_newfile=030401230
updateFirmwareFromFile.sh:07/10/14 01:23:52:smileytongue:ackage_newfile=sq
updateFirmwareFromFile.sh:07/10/14 01:23:52:master_package_name=sq
updateFirmwareFromFile.sh:07/10/14 01:23:52:master_package_new=sq
updateFirmwareFromFile.sh:07/10/14 01:23:52:update_container=
Error fw_update_status: failed 200 "invalid firmware package"
updateFirmwareFromFile.sh:07/10/14 01:23:52:failed 200 "invalid firmware package"”
JoaquinAR again posted the final peace of the puzzle.
“Lines 256 through 259 of /usr/local/sbin/updateFirmwareFromFile.sh
# if [ -z "${update_container}" ] && [ "${vnew}" -lt "${vnow}" ]; then
# error="failed 200 \"invalid firmware package\""
# pre-update_error $error
# fi
Aaand back to previous firmware.
”
The format above may be off, but what we need to do is include a hash (#) at the beginning of lines 256 through to 259 of the /usr/local/sbin/updateFirmwareFromFile.sh script;
Ok lets do that J
From the terminal type
nano /usr/local/sbin/updateFirmwareFromFile.sh
Locate the above code at lines 256 through to 259 and hash them out and save the file.
Upload the extracted firmware “sq-030401-230-20140415.deb” to a location on the My Cloud for example the Public directory. (/share/Public) ß on my device
Back to the terminal make sure you know the location to the downgrade file – in my case: /share/Public/ sq-030401-230-20140415.deb
Issue the final command:
/usr/local/sbin/updateFirmwareFromFile.sh /share/Public/ sq-030401-230-20140415.deb
This will initialise a downgrade to firmware version v03.04.01-230 –
Don’t panic this takes a few minutes with blinking lights – once complete (5-mins aprrox)
REMEMBER!! Turn off Auto Firmware update in settings J.
your done:
if any doubts DONT DO THIS!! you have be warned!
[ Szerkesztve ]