Giter Club home page Giter Club logo

wd-mybook-live-recovery's Introduction

Western Digital - MyBook Live

An attempt to make it easy to debrick, and possibly manage, a WD MyBook Live NAS.

Pretty much everything comes from various online sources which may not be there forever, hence this repository.

Notes

The script is intended to be executed as root.


So far, I have only tested โ€“ with success โ€“ the os-recovery command. Right now its --help is quite poor, have a look at the source.


In order to restore the OS, you have to retrieve the apnc-xxxxxx-zzz-yyyymmdd.deb firmware's file. The script wants the *.img archived inside. Note to self: I have several such files on an external hard disk.

I suggest to restore a previous version and then upgrade to the last one with the NAS interface (should we miss something not mandatory in the process).


There are some utilities and useful informations (as comments) inside the script; e.g. for retrieve files from the DataVolume when partially-bricked and mounted to another host machine (hint: it uses debugfs).


I used a spare Ubuntu virtual-machine to perform the debrick process; I don't remember, but I suppose that I may have needed to perform the following commands:

sudo apt-get update
sudo apt install gddrescue
sudo apt-get install mdadm
sudo apt install gcc
sudo apt install smartmontool
sudo apt install pv

If the NAS is partially working, before running the script it may be necessary to stop the RAID array:

sudo mdadm --manage --stop /dev/md0 -f

In case of new disk with bad sectors, the following may be useful:

# maybe try with also the `-y` flag
sudo ddrescue /dev/zero /dev/sdb -f -D -v
sudo dd if=/dev/zero bs=1M | pv -p -e -r -s 2T | sudo dd of=/dev/sdb bs=1M
# Prints the SMART information about the disk:
smartctl -a /dev/sdb

wd-mybook-live-recovery's People

Watchers

James Cloos avatar Marco De Zio avatar

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.