Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

The firmware is designed for installation on a single-disk network drive Western Digital 'MyBook Live'. It is built on the basis of the project LEDE (ex-OpenWRT): http://www.lede-project.org.

This version assumes that the installation is performed on a clean hard disk.

(!) ALL EXISTING DISK DATA WILL BE LOST (!)

To install, you need a computer with a Linux system installed, or bootable from an external media Linux system such as Live-CD, Live-USB, etc. The firmware is downloaded from github.com, the installation script uses the following utilities: sgdisk, mke2fs, lsblk. For debian-like systems, you can install the necessary programs with the command:

sudo apt-get install git gdisk e2fsprogs util-linux

The installation script must be run with superuser privileges (from under 'root'). To record the firmware, you need to connect the disk to the SATA connector of the computer, and at the terminal:

cd ~
git clone https://github.com/toyan/mybooklive-lede-firmware.git
cd ./mybooklive-lede-firmware
su
./mbl-lede-install-ru

Next, the script prompts you to specify the disk to write the firmware. Usually when a new disk is connected to a computer, the next letter of the alphabet (here instead of X) in the name 'sdX' is assigned to it. For example, if you have one disk in your computer, then most likely it will be named 'sda'. Then, if you connect the second disk, it will be named 'sdb'. If you booted into the system from a USB flash drive, then it will also have some kind of its name, and then your target disk can have Name 'sdc'. The script displays information about the mounted disks, and by default selects the drive with the most recent letter from the existing ones in system. You need, based on the outputted diagram of the connected drives, to select the correct target for the firmware record and specify In response to a request, for example 'sdc'.

Be careful when choosing the target drive! An error when specifying a drive can damage the base system! No additional checks are made!

After recording the firmware, connect the disk to the MBL, connect the power, and wait until the green LED flashes And the blue will flash. In this version of the firmware, this means that the initialization of the device has been successfully completed and all the services are running. In the browser type MBL address - the window for authorizing access to the web interface should appear.

By default, the DHCP client is enabled after the download, i.e. The IP address of the device is received when it is booted from the DHCP server of your network, As a rule, it is a router. Also in the configuration as the static address 192.168.1.11 is registered.

If you need to specify a different static address, you can do this right after recording the firmware, Before turning off the drive:

mkdir tmp
mount / dev / sdX2 tmp # here X is the letter of your target drive

And in the file ./tmp/etc/config/network in the config interface 'lan' block, using any linux-editor, replace:

option proto 'dhcp' on option proto 'static'
option ipaddr '192.168.1.11' to the static IP address you need

Save the changes, and type:

umount tmp
sync

Access to the web interface and the SSH protocol: login 'root', the password is not set (empty). Access to samba resources: login 'admin', password 'welc0me'.

set / change passwords: by going to SSH (PuTTY), type the command 'passwd root' (and / or 'passwd admin').

To additionally add a user to access the disk over the network, you must add it first as a user System with the "adduser " command, then add it to the samba users: smbpasswd -a .

The bittorrent-client 'Transmission' web interface is available at http: // <ip-address-MBL>: 9091 / transmission / web /

To start the download, it's enough to upload a torrent file to the / DataVolume / Public / watch-dir / transmission folder via samba. The download will start automatically, the file will be uploaded to / DataVolume / Download.

Firewall (firewall) in the firmware is disabled.

If you have an incorrect pseudo-graph when ssh-connection via PuTTY (in Windows), set

In the settings of the PuTTY session in 'Connection' -> 'Data' -> 'Terminal-type string' value 'putty-256color'.

--- Known Issues:

- System / Mount Points: when executing "Save and Apply"

The web interface hangs. At the same time, SSH access is preserved. All the changes you made In this section, also persist. After installing the firmware, you do not need to change anything in this section. By default, everything is set up for normal operation. If you need to make changes, after "Save and apply" simply reboot the device with the command "Reboot" in the terminal or on the power. Your changes will be saved.

--- Features of the firmware:

V1.01 (2017-04-05)

- assembled on the basis of LEDE-17.01.0-stable-r3205 platform
- linux-kernel v4.4.50, assembled with PageSize = 4K, support for AHCI, AIO, Direct-I / O, CIFS (+ SMB3), NFS (+ v4.2);
  • The PageSize = 4K parameter ensures optimal memory usage, makes it impossible at the same time Access to data on the / DataVolume section left after using the original firmware MyBook Live from WD and its debian-clones;

    • the size of the file system partition of the data partition *) bs = 4K, RAID is not used, the size of the rootfs = 4Gb partition.
  • This option ensures the maximum compatibility of the file system with most desktop computers, Also provides optimal disk usage, especially when there are a large number of small files, But the performance of the file system is lower than that of the original from WD, where in favor of The rarely used and poorly compatible block size is applied bs = 64K;

    • Russian-language web interface;
    • 5 skins for the web interface;
    • Ability to install / remove packages through the web interface;
    • functional power-save (sleep / awakening disk);
    • Adjustable modes of operation of the led-LEDs of the device;
    • Displays the graphs of the system's load in real time.

    Preinstalled and configured:

    • bittorrent-client Transmission v2.92;
    • DLNA media server Minidlna v1.1.5;
    • network file server Samba v3.6.25;
    • file manager Midnight Commander v4.8.18 (256 color).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.