========== WARNING ========== = ALL DATA WILL BE LOST! = ========== WARNING ========== # Info about partitions: /dev/md0 - Swap (512MB) /dev/md1 - Rootfs (5GB) /dev/md2 - User data (All unused space, not mounted by default) ======== INSTALL ========= Just flash "debian-jessie-firmware" in webgui. Or use Recovery # Crazy way to run WD recovery: flash_eraseall /dev/mtd1 When you see blinking HDD led - press and hold reset button to format all HDD's inside device. * Blinkng: blue > hdd_red_1 > hdd_red_2 > hdd_red_1 > hdd_red_2 > off (1 sec interval. Hold reset button until its stop blinking.) If you see both red (purple) hdd leds - something went wrong. Connect to WDMC via Telnet and repair (Or prepare disks manually). ======= ADD 2nd disk to exist raid ======= # Format HDD (Change /dev/sdb to /dev/sda if need): parted --script /dev/sdb "mklabel gpt \ mkpart primary 0% 512MB \ mkpart primary 512MB 4096MB \ mkpart primary 4096MB 100% \ set 1 raid on \ set 2 raid on \ set 3 raid on" # And add it to exist raid: mdadm --manage /dev/md0 --add /dev/sdb1 mdadm --manage /dev/md1 --add /dev/sdb2 mdadm --manage /dev/md2 --add /dev/sdb3 # So, if you need disconnect one of HDD: mdadm --manage /dev/md0 --fail /dev/sdb1 mdadm --manage /dev/md1 --fail /dev/sdb2 mdadm --manage /dev/md2 --fail /dev/sdb3 # Then - you can extract this drive from WDMC. # If you need RAID-0 (Stripped): # Warning! Data partition will be erased! umount /dev/md2 mdadm --stop /dev/md2 mdadm --create --force /dev/md2 --raid-devices=2 --level=raid0 --run /dev/sda3 /dev/sdb3 ======= OMV SETUP ======= # Connect to device via SSH # Default SSH login/password: root/mycloud # Install latest OMV (v.3.x.x, "erasmus") echo "deb http://packages.openmediavault.org/public erasmus main" > /etc/apt/sources.list.d/omv.list echo "127.0.1.1 wdmc.lan wdmc" >> /etc/hosts apt-get update apt-get install --force-yes openmediavault-keyring apt-get update apt-get install openmediavault # choose "none", "yes", "standalone" # Default OMV login/pass is: admin / openmediavault # Warning: create network interface in webgui or you loose network connection after restart! # "Mount" data partition (/dev/md2) as "User data". # Configure all other things. # Profit! ======== REVERT ========= dd if=/dev/zero of=/dev/mtdblock1 reboot -f # After this WDMC runs in "Rescue" mode. Go to webgui and upload original firmware file (.bin) ======= TEMP: DISABLE POWER LED ======= add this to /etc/rc.local: echo -n -e \\xfa\\x03\\x01\\x00\\x00\\x00\\xfb > /dev/ttyS1 # Notes: # System ready/OK: \\xfa\\x03\\x01\\x00\\x00\\x00\\xfb # Led on: "\\xfa\\x03\\x06\\x01\\x00\\x01\\xfb" # Led off: "\\xfa\\x03\\x06\\x00\\x00\\x01\\xfb" # Led blink: "\\xfa\\x03\\x06\\x02\\x00\\x01\\xfb" # Enable WOL function: "\\xfa\\x03\\x0a\\x01\\x00\\x00\\xfb" # Disable WOL function: "\\xfa\\x03\\x0a\\x00\\x00\\x00\\xfb" # Hard shutdown: "\\xfa\\x03\\x03\\x01\\x01\\x14\\xfb" ========= TESTS ========= WDMC: 1xWD Blue, 1TB, SATA-III PC: Intel SSD 520, 180GB, Sata-III. Windows 7 x64 Pro. One HDD, no raid: Test command: dd if=/dev/zero of=temp bs=1M count=1024 Write: 107 MB/s Read: 105 MB/s Web/http: (server software / client software) PC -> WDMC (nginx i686 x64 / wget): 15-20MB/s WDMC -> PC (nginx armhf / Opera): 80-100MB/s Samba (v4.1.17-Debian, default settings): PC -> WDMC: ~40MB/s WDMC -> PC: ~70-75MB/s