How to safely shutdown MyCloud

I don’t have a v2.x My Cloud so I don’t know if the file locations listed below are the same. But for v4.x firmware the Dashboard HTML code initally lists the following three CSS files:

css/jquery/aggregate.css
css/aggregate.css
css/language_styles/language_style_en_US.css

On the v4.x they are located in the following directories:

/var/www/htdocs/UI/css/jquery/
/var/www/htdocs/UI/css/
/var/www/htdocs/UI/css/language_styles/

. Note I used WinSCP to access the My Cloud via SSH and view/copy the CSS files to my local PC.

Hi

under the path var/www/htdocs there is anything about UI
I must search better the correct path…

help me how to shutdown WD my cloud 4TB ? latest firmware 2.30.165.
No shutdown menu in dashboard and WD Access

As explained upthread and in numerous other discussion on the lack of the Dashboard shutdown in v2.x firmware for the single bay My Cloud units one can use (I think) WD Quick View (https://support.wdc.com/product.aspx?ID=904#WD_downloads) to shut down a v2.x single bay My Cloud. One can apparently also use SSH to issue the shutdown command to the v2.x version and can use a web browser hack of the My Cloud Dashboard to shut down the v2.x version.

Yeah, how about that shutdown command … on version 2.x firmware.

image

One CANNOT apparently use SSH to run the shutdown command on 2.x firmware.

This is the only official (no hack) way to perform a proper shutdown:

https://support.wdc.com/downloads.aspx?p=188

Download and install WD Quick View using the above link.

One can apparently use SSH to issue the 'halt" command to shut down a v2.x firmware single bay My Cloud. There is much discussion on the v2.x shutdown via SSH and other methods in the following thread:

Correct. As previously mentioned up thread using WD Quick View is the current way to shut down a v2.x single bay My Cloud unit. WD even has a Knowledgebase article covering how to shut down the single bay My Cloud models.

https://support.wdc.com/knowledgebase/answer.aspx?ID=16782

There is much confusion on shutting down the single bay My Cloud units due to the different methods to shut down the first gen v4.x My Cloud and the second gen v2.x My Cloud. The v2.x single bay My Cloud no longer has a shutdown (or hibernate) option in the My Cloud Dashboard. And while the v4.x My Cloud can be shut down using WD Access, the v2.x My Cloud can be shut down using WD Quick View. Then there is the issue that the two My Cloud models use different firmware which means the SSH commands to shut down the older v4.x My Cloud does not work on the newer v2.x My Clouds.

Incorrect, and I showed visual proof that the shutdown command is not even available on the 2.x firmware.

There is much circular logic discussion with people pointing to other people saying other people are doing it, yet not confirming the actual firmware version. People with 4.x firmware can do it, but not those with 2.x firmware.

Again, the people saying it can be done are only those with 4.x firmware.

Let’s stop the rumors and check the facts. I showed above that the shutdown command is not even available on the 2.x firmware single drive My Cloud.

Why Western Digital left out the shutdown option from the GUI is the question/concern here though.

BusyBox does not even have the command:

https://busybox.net/downloads/BusyBox.html

Rather odd …

Not sure who calls the script. But the gen2 firmware 2.30.165 has a /usr/sbin/shutdown.sh script.

There IS a shutdown script on the v2.x single bay My Cloud. It is:
/usr/local/modules/script/shutdown.sh

See the following posts from the thread in my prior post that indicates it DOES appear to work to some extent.

Another method using SSH:

There is also discussion of unhiding the code in the CSS file that hides the shutdown option from the v2.x single bay My Cloud Dashboard in that Safe Shutdown thread.

There have been calls since the v2.x single bay My Cloud was released to bring the shutdown option back. It is IN the CSS coding but for some reason WD decided to hide it. There is even a Cloud Ideas post from over a year ago asking WD to bring it back…

As I need to change up my response as their BOT defender won’t allow three of the same exact messages,

another who has found this distressing business of no shutdown facility, and here is W.D.'s latest response, I know it’s a bit late but has anyone got this sort of response or are willing to escalate this? I doubt this will ever be rectified but one may hope :wink:

Cheers
James

**
Thank you for your reply and for your remarks.

Your remarks have been escalated to our higher level of support and our engineering team and we will have it under consideration for our future products.

I am truly sorry to hear that you are left dissatisfied with your product and that it does not fit your needs. I will be
more than happy to request a discount coupon for your next purchase from the WD Store, as we value you as our customer and your opinion does count. Please, do let me know if you wish to receive the 20% discount code for the WD Store.

If you have any further questions, please reply to this email and we will be happy to assist you further.

Sincerely,
Alex
Western Digital Service and Support

So version 4 is earlier than version 2 ?

:upside_down_face:

Yes.

Welcome to the crazy world of WD.

WD Quick View will NOT install on macOS Sierra however there is a workaround:

Right click on the installer and click on Show Package Contents.
Go to Resources folder.
You will find the installer WD Quick View Installer.mpkg
Ignore the installer security msg and allow install via System Preferences, Security
Shutdown option will now be available from dropdown menu

@NavC I don’t have any Apple products in use.

this post with the code edits were so helpful today after updating to Os5, thank you very much man!!!
and hopefully the devs can read this and use it for a useful firmware upgrade for us :wink:
like googling things at work right? we all were there :stuck_out_tongue:

A very simple method to safe shutdown WD My Cloud PR4100 Firmware v 5.0.9.115, is

Step-1 - Enable SSH from GUI

Step-2 - Now login through SSH , and run shutdown.sh script from terminal
SSH Login_WDpr4100

sshd is the default username for ssh access.