OMV on My Cloud Mirror GEN 1

  • Hi there,


    I want to install Openmediavault on my My Cloud Mirror GEN 1.

    If I read that correctly, here's what I need to do

    - Install debian-jessie-firmware.bin from fox_exe (https://fox-exe.ru/WDMyCloud/WDMyCloud-Mirror/Debian/)

    - Install the BIN file at http://wdmycloudmirror.local/ > Settings > Firmware Update > Firmware Image

    - Install firmware

    - Press and hold the reset button until the LEDs stop flashing


    Login with ssh (putty – User: root / PW: mycloud)


    # In terminal

    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"


    >>> or the next lines?

    >>> parted --script /dev/sdb mklabel gpt

    >>> parted --script /dev/sdb mkpart primary 0% 512 MB

    >>> parted --script /dev/sdb mkpart primary 512 MB 4096MB

    >>> parted --script /dev/sdb mkpart primary 4096MB 100%

    >>> parted -a /dev/sdb set 1 raid on

    >>> parted -a /dev/sdb set 2 raid on

    >>> parted -a /dev/sdb set 3 raid on



    mdadm --manage /dev/md0 --add /dev/sdb1

    mdadm --manage /dev/md1 --add /dev/sdb2

    mdadm --manage /dev/md2 --add /dev/sdb3


    # Install OVM

    apt get update

    apt-get install --force-yes openmediavault-keyring

    apt get update

    apt-get install openmediavault


    Here I have the following questions:

    1 - The instructions from fox_exe are a bit older, is everything above still correct and up-to-date?

    2 - Is that all?

    3 - Do I still need to set an IP address?

    4 - Can I update debian jessie to debian buster or debian bullseye?

    5 - Does "apt-get install --force-yes openmediavault-keyring" install OMV 6?

    6 - Does everything have to be installed via ssh or can this also be done via desktop (gnome/kde) / terminal?


    Thanks for your answer, best regards


    Tommy :)

  • geaves

    Hat das Thema freigeschaltet.
  • OMV is bound to a debian version, so you will end up with OMV4. Use the instructions for that one.

    Or try to update to buster / bullseye once debian is installed.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Hello Zoki,


    all right, thanks for the info. When the other points are settled - I will risk it. I've already picked out the linux commands - the upgrade looks feasible from a purely technical point of view.


    Best regards


    Tommy

  • Hello,

    i installed the firmware BIN file. Now I can not access via ssh (putty), connection refused appears. the upper LED flashes blue, the two LEDs of the hard disks are red. What can I do now?

    ;(

  • can you give the logs of the ssh command using the -v (verbose) flag

    ssh -vv root@ip_of_the_server

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Hello Zoki,


    thank you for your quick repley


    if i type "ssh -vv root@192.168.178.71" in cmd this will come:


    OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

    debug2: resolve_canonicalize: hostname 192.168.178.71 is address

    debug2: ssh_connect_direct

    debug1: Connecting to 192.168.178.71 [192.168.178.71] port 22.

    debug1: connect to address 192.168.178.71 port 22: Connection refused

    ssh: connect to host 192.168.178.71 port 22: Connection refused

  • So it does not allow you to connect to port 22.

    What means do you have to connect to the system?

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • hello zoki,

    so the firewall is off, antivirus is off, port 22 is open in the fritzbox.

    unfortunately nothing has changed.

    I will get an Ethernet switch from a friend in the next few days to be able to access the NAS directly (without fritzbox) maybe that will help.

  • The LAN ports on the fritzbox are a switch. No need to get a different one.

    How do you know this is the box: 192.168.178.71

    if you can not connect, check for a tutoria to unbrick My Cloud Mirror GEN 1

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Hello Zoki,


    you are right, nothing has changed. 8)

    I wanted to connect without a Fritzbox to make sure the Fritzbox wasn't blocking a port.


    The IP address should be correct, it is the only device that is connected to the Fritzbox via LAN. The manufacturer is "MARVELL SEMICONDUCTOR, INC.", that would match with the Marvell Armada 370 CPU.

    https://wdnas.el8.website/wdna…loud/WDMyCloud_Specs.html


    I already searched for a tutorial but only found the one from fox_exe, don't you know of any other tutorial?


    I could remove the hard drive and access it directly, could I change or copy something here?

    Maybe copy Linux directly to it or edit a file.


    Best regards


    Tommy

  • This is what I found:


    - https://community.wd.com/t/unb…ial-for-everyone/237772/2

    - https://community.wd.com/t/gui…tb-3tb-4tb-my-cloud/93336

    - http://aftermanict.blogspot.co…-wd-my-cloud-4tb-and.html


    But you are saying, the system is visable on the network and got an IP from the fritzbox? mabe use nmap and do a portscan on the device.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • hello zoki,


    nmap says this:


    PORT STATE SERVICE VERSION

    23/tcp open telnet

    67/udp open|filtered dhcps

    772/udp open|filtered cycleserv2

    1000/udp open|filtered ock

    1027/udp open|filtered unknown

    19504/udp open|filtered unknown

    19936/udp open|filtered unknown

    20449/udp open|filtered unknown

    20884/udp open|filtered unknown

    22053/udp open|filtered unknown

    34577/udp open|filtered unknown

    44101/udp open|filtered unknown

    44508/udp open|filtered unknown

    48761/udp open|filtered unknown

    49170/udp open|filtered unknown

    52503/udp open|filtered unknown


    MAC Address: 00:50:xx:xx:xx:xx (Marvell Semiconductor)

    Device type: general purpose

    Running: Linux 2.6.X|3.X

    OS CPE: cpe:/o:linux:linux_kernel:2.6 cpe:/o:linux:linux_kernel:3

    OS details: Linux 2.6.32 - 3.10


    many thanks for the links, I'll take a closer look at them over the weekend.

    if anyone here has a hint on how port 22 can be opened, you are welcome ;)

  • with port 23 / telnet

    was I able to enter this:


    / # login

    (none) login: root

    Password: mycloud

    ~ #


    > mkpart primary 0% 512MB

    mkpart: not found


    > mkpart primary 512MB 4096MB

    mkpart: not found


    > mkpart primary 4096MB 100%

    mkpart: not found



    ~ # parted /dev/sda mklabel gpt

    Warning: The existing disk label on /dev/sda will be destroyed and all data on

    this disk will be lost. Do you want to continue?

    Yes/No? y

    y

    Error: Partition(s) 1, 2 on /dev/sda have been written, but we have been unable

    to inform the kernel of the change, probably because it/they are in use. As a

    result, the old partition(s) will remain in use. You should reboot now before

    making further changes.

    Ignore/Cancel? i

    i

    Information: You may need to update /etc/fstab.


    ~ # parted /dev/sda mkpart primary 0% 512MB

    Warning: You requested a partition from 0.00B to 512MB (sectors 0..1000000).

    The closest location we can manage is 17.4kB to 1048kB (sectors 34..2047).

    Is this still acceptable to you?

    Yes/No? y

    y

    Warning: The resulting partition is not properly aligned for best performance.

    Ignore/Cancel? i

    i

    Error: Partition(s) 1, 2 on /dev/sda have been written, but we have been unable

    to inform the kernel of the change, probably because it/they are in use. As a

    result, the old partition(s) will remain in use. You should reboot now before

    making further changes.

    Ignore/Cancel? i

    i

    Information: You may need to update /etc/fstab.


    ~ # parted /dev/sda mkpart primary 512MB 4096MB

    Error: Error informing the kernel about modifications to partition /dev/sda3 --

    Device or resource busy. This means Linux won't know about any changes you made

    to /dev/sda3 until you reboot -- so you shouldn't mount it or use it in any way

    before rebooting.

    Ignore/Cancel? i

    i

    Error: Partition(s) 1, 2 on /dev/sda have been written, but we have been unable

    to inform the kernel of the change, probably because it/they are in use. As a

    result, the old partition(s) will remain in use. You should reboot now before

    making further changes.

    Ignore/Cancel? i

    i

    Information: You may need to update /etc/fstab.


    ~ # parted /dev/sda mkpart primary 4096MB 100%

    Error: Error informing the kernel about modifications to partition /dev/sda3 --

    Device or resource busy. This means Linux won't know about any changes you made

    to /dev/sda3 until you reboot -- so you shouldn't mount it or use it in any way

    before rebooting.

    Ignore/Cancel? i

    i

    Error: Error informing the kernel about modifications to partition /dev/sda4 --

    Device or resource busy. This means Linux won't know about any changes you made

    to /dev/sda4 until you reboot -- so you shouldn't mount it or use it in any way

    before rebooting.

    Ignore/Cancel? i

    i

    Error: Partition(s) 1, 2 on /dev/sda have been written, but we have been unable

    to inform the kernel of the change, probably because it/they are in use. As a

    result, the old partition(s) will remain in use. You should reboot now before

    making further changes.

    Ignore/Cancel? i

    i

    Information: You may need to update /etc/fstab.


    ~ # set 1 raid on

    ~ # set 2 raid on

    ~ # set 3 raid on


    ~ # mdadm --manage /dev/md0 --add /dev/sdb1

    mdadm: error opening /dev/md0: No such file or directory

    ~ # apt get update

    -ash: apt: not found


    am i a bit further? :S

  • At least you can connect to the device. Now you have to check, what is running there


    cat /etc/os-release

    uname -a 


    may give some insight. But this should not be a debian. telnet is not enabled since ages.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • hello zoki,


    the mycloudmirror says this: 8)


    / # login

    (none) login: root

    Password: mycloud

    ~ # cat /etc/os-release

    cat: can't open '/etc/os-release': No such file or directory

    ~ # uname -a

    Linux (none) 3.2.40 #4 Wed Apr 13 05:26:48 YEKT 2016 armv7l GNU/Linux

    ~ #


    many thanks for the support :)

  • Hi there,


    I looked at the top three guides.

    What have I done:

    - Removed the hard drive (3 GB HDD)

    - connected to taptop via usb cable

    - debian installed on hard drive (via debian live cd)

    - built-in hard drive to wd mycloudmirror


    I thought the wd mycloudmirror now boots from the hard drive, but it doesn't :(

    Accessing the hard drive via "cd /sda" doesn't work either


    at the moment it looks like this:

    ~ # cat /proc/partitions

    major minor #blocks name


    31 0 5120 mtdblock0

    31 1 5120 mtdblock1

    31 2 5120 mtdblock2

    31 3 205824 mtdblock3

    31 4 15360 mtdblock4

    31 5 20480 mtdblock5

    31 6 5120 mtdblock6

    8 0 2930266584 sda

    8 1 1024 sda1

    8 2 2929264640 sda2

    8 3 999424 sda3


    ~ # cd /sda1

    -ash: cd: can't cd to /sda1


    ~ # cd /sda2

    -ash: cd: can't cd to /sda2


    ~ # cd /sda3

    -ash: cd: can't cd to /sda3


    ~ # cd /sda

    -ash: cd: can't cd to /sda


    does anyone have an idea?

  • disks a in /dev/sdX and you have to mount them first


    mount /dev/sda2 /mnt

    ls /mnt

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Hi Zoki,


    many thanks for your help. :thumbup:


    the terminal says this when you type:

    ~ # mount /dev/sda /mnt

    mount: mounting /dev/sda on /mnt failed: Invalid argument

    ~ # mount /dev/sda1 /mnt

    mount: mounting /dev/sda1 on /mnt failed: Invalid argument


    ~ # ls /mnt

    root


    (I tried it here with "--".)


    ~ # mount /dev/sda1 --mnt

    mount: can't find /dev/sda1 in /etc/fstab


    What is the best way to proceed now?

    - Get access to the hard drive, of course we're trying that right now... :)

    - Copy OMV to the hard drive (remove if necessary)

    - Install the hard drive back into the Mycloud and then install OMV from the HDD


    or


    it looks like an old Linux 2.6.32 - 3.10 is installed on the mycloud

    does it perhaps make more sense to first install a current debian version on the mycloud, the Preisfrage (question of price) is of course how?


    I'm sorry that I can't always answer right away - I'm currently very busy as a volunteer

    Thank you for your support :)

  • OK, this is strage, but maybe an old version of mount, we give it the file system:


    Code
    fdisk -l /dev/sda      # Will show file systems per partition
    mkdir /mnt/sda2        # make a directory to mount to
    mount -t ext4 /dev/sda2 /mnt/sda2    # mount
    ls /mnt/sda2           #
    ...
    umount /mnt/sda2       # unmount again


    To answer the Preisfrage:

    - https://www.tutonaut.de/anleit…auf-mycloud-installieren/

    - https://www.onderka.com/comput…debian-auf-der-wd-mycloud


    Check if it installs a repo which has a more recent version, but I am not sure if someone made the effort to port it.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!