Giter Club home page Giter Club logo

mycloud's Introduction

For WD MyCloud Device

Get access when device is not booting:

If it is already open: try a serial cable and get access to the console. Maybe it is just a network configuration problem?

Image of serial port

You need a 3,3V cable (these cables cost just about 5 Euro)

You don't need to solder anything to the board (like I did on the foto), but then you need an edge connector with the right distances.

Without opening

The Bootloader (called barebox, and is stored in FLASH, so it is not related to anything on the disk) can be triggered to use TFTP when receiving a "magic packet".

Trigger TFTP

Obviously you need to know how to setup this. "dnsmasq" is your friend!

You also need to send a "Magic Packet" to trigger the TFTP load.

Use "rawping.c" to send this:

Compile:

gcc -o rawping rawping.c

Start:

sudo rawping eth0 <mac of device>

This will trigger a download via tftp of a file called 'startup.sh'.

The different Startup Files

  • startup-system.sh This will start the system as it would normally start.

  • startup-busybox-init.sh This will start the system, but will give you a shell before init is called. It requires two things:

    1. A serial console so you can type things to that shell
    2. A busybox already in your root file system! But with 1) you don't need the tftp for this, as you can type the commands of the script to the console of the bootloader barebox.
  • startup-uImage.sh This will trigger the download of uImage and start the system inside the initramfs of uImage

Complete new setup or heavy repair

use build-sys.sh for this:

Requirements:

  • it needs the tar file with GPL Sources from WD
  • extract this to a 'wd' directoy parallel to the build-sys script
  • you have to install a cross compiler sudo apt-get install g++-4.7-arm-linux-gnueabihf
  • the script itself will download and compile busybox and finally generate a uImage that can be loaded via tftp to the box.
  • Especially the busybox can be configured via make menuconfig if you need different tools
  • ...?

You get an environment

  • that can be accessed via telnet
  • that can mount your disk
  • that can do nfs mounts
  • allows you to edit files
  • ...

mycloud's People

Contributors

utessel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mycloud's Issues

Thanks!

Just wanted to say: thanks for creating this. I've needed it twice in a couple of years now.

can't access wd my cloud via ssh

Hi,

I successfully closed myself out from my wd mycloud via ssh. I disabled password auth and can't connect with public key. I need to reach the sshd_config somehow and edit it. With you approach, can I achieve this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.