Clean OS (Debian), OpenMediaVault and other "firmwares"

Oh, sorry, my fault - upload wrong file...
https://drive.google.com/folderview?id=0B_6OlQ_H0PxVUENWT2UwQTIyb2s&usp=sharing
Read Howto.txt
 
***
GDrive folder with firmwares and other: https://drive.google.com/folderview?id=0B_6OlQ_H0PxVRXF4aFpYS2dzMEE&usp=sharing

 ok sh*t happens doesnt matter

I had to open the case and connect the disk to my computer

I can see my files, i follow the "Installation (Linux/MacOS):"  but the system doesnt boot it is stuck to an bluewhite light.

I followd the instructions “Howto replace or restore original firmware:” but the system doesnt boot and it is stuck to an red light.

Any ideas, thank you  

Try my instruction:  https://drive.google.com/file/d/0B_6OlQ_H0PxVejVic2ZubXBfbHM/edit?usp=sharing

Hello Fox_exe,

thank you for your work!

I have tried the “autoinstall”. It seems to be all ok. But when i try to install OMV i get some errors.

So i think the Installation is not successful. Can you please have a look?

Sorry for my English.

login as: root
root@192.168.0.21's password:
Linux WDMyCloud 3.2.26 #4 SMP Fri Aug 1 01:55:50 YEKT 2014 wd-2.0-rel armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Fri Sep 26 22:27:18 2014 from pc
WDMyCloud:~# apt-get update && apt-get upgrade
Hit http://packages.openmediavault.org kralizec InRelease
Hit http://packages.openmediavault.org kralizec/main armhf Packages
Ign http://ftp.us.debian.org wheezy InRelease
Ign http://packages.openmediavault.org kralizec/main Translation-en
Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://ftp.us.debian.org wheezy Release
Hit http://ftp.us.debian.org wheezy/main armhf Packages
Hit http://ftp.us.debian.org wheezy/main Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  apt apt-utils avahi-autoipd coreutils dmsetup dpkg e2fslibs e2fsprogs file
  gnupg gpgv ifupdown initscripts iproute iptables isc-dhcp-client
  isc-dhcp-common kmod krb5-locales libapr1 libapt-inst1.5 libapt-pkg4.12
  libavahi-client3 libavahi-common-data libavahi-common3
  libboost-iostreams1.49.0 libcomerr2 libdbi-perl libdbus-1-3
  libdevmapper1.02.1 libgcrypt11 libgnutls26 libgssapi-krb5-2 libjpeg8
  libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 libldap-2.4-2 libmagic1
  libnewt0.52 libprocps0 libreadline5 libsasl2-2 libsensors4 libss2 libudev0
  libwbclient0 libx11-6 libx11-data libxcb1 lsb-base manpages mdadm nfs-common
  nfs-kernel-server openssh-client openssh-server openvpn perl perl-base
  perl-modules procps python python-minimal python2.7 python2.7-minimal
  rsyslog samba-common samba-common-bin smbclient sudo sysv-rc sysvinit
  sysvinit-utils tasksel tasksel-data tzdata udev vim-common vim-tiny wget
  whiptail
83 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/50.6 MB of archives.
After this operation, 72.7 kB disk space will be freed.
Do you want to continue [Y/n]? Y
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: warning: files list file for package 'libxau6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblockfile1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkrb5-3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwrap0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtagc0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libcap2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libglib2.0-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgphoto2-port0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpng12-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtalloc2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libevent-2.0-5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libedit2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libldap-2.4-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-client3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgphoto2-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtag1c2a:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblua5.1-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpkcs11-helper1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpcre3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-common3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsensors4:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libx11-6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libnfsidmap2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libbsd0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-common-data:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libjpeg8:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsasl2-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libcurl3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtirpc1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkrb5support0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'librtmp0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpcap0.8:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdevmapper1.02.1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libexpat1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libltdl7:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkeyutils1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libreadline5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libantlr3c-3.2-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libasound2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxcb1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtdb1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxpm4:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtag1-vanilla:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblzo2-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libogg0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfontconfig1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libmagic1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libk5crypto3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgssglue1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libunistring0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwbclient0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfuse2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgssapi-krb5-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libparted0debian1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgd2-xpm:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libconfuse0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libexif12:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libffi5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libflac8:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdbus-1-3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxml2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfreetype6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxdmcp6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpam-cap:armhf' missing; assuming package has no files currently installed
(Reading database ... 24718 files and directories currently installed.)
Preparing to replace dpkg 1.16.9 (using .../dpkg_1.16.15_armhf.deb) ...
Unpacking replacement dpkg ...
dpkg: error processing /var/cache/apt/archives/dpkg_1.16.15_armhf.deb (--unpack):
 trying to overwrite '/etc/logrotate.d/dpkg', which is also in package wd-nas 02.50.00-140084
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/dpkg_1.16.15_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 My experience in Linux is not very high…

saggi

Did you drop the kernel.img and rootfs.img in the same folder as the install.sh saggi?

I think - no :smiley:

(wd-nas package and all of errors about libs - from official firmware)

I haven’t run the script myself, but I’ve just taken a look at it and I have the following comments:

install.sh needs rootfs.img and kernel.img to be in the same directory as the script. (these can be the files from the Kernel and rootfsv3.7z file I think)

Also, the script needs config_md0.img and config_md1.img, but it assumes they are inside ${temp_dir}, and ${temp_dir} has not been set

So as is the script won’t work I think

Thank you for answers.

I have put the script and config_md0.img, config_md1.img to public share.

Then i have put the files from “Kernel and rootfs v3” to the same place.

I followed the steps described in howto.txt.

5. Run:
cd /DataVolume/shares/Public
chmod +x install.sh
./install.sh

 The LED on MyCloud changes the color, in putty i see the steps.

Then the LED is red blinking and Putty says “Upgrade partitions…”, arround 5 min, then the MyCloud does rebooting.

After reboot only the script and the config*.img files in the public share. Kernel.img and rootfs.img are not visible.

saggi

Edit:

Hello Limecat, will the script all do when i remove all “${temp_dir}/”?

Edit2:

No. Will not work.

I have an error with mdadm:

WDMyCloud:/DataVolume/shares/Public# ./install.sh
Ok, lets go...
Current device: /dev/md1
Upgrade device: /dev/md0
################################################
Stop all processes...
forked-daapd: no process found
[ok] Stopping periodic command scheduler: cron.
[ok] Stopping standby monitor: monitorio.
[ok] Stopping temperature monitor: monitorTemperature.
PID file /var/run/mediaserver.pid not found, stopping server anyway...

[ok] Stopping itunes server: forked-daapd.
[ok] Stopping wdphotodbmerger: wdphotodbmerger.
[ok] Stopping wdmcserver: wdmcserver.
[ok] Stopping Samba daemons: nmbd smbd.
Stopping Netatalk Daemons: afpd.
[ok] Stopping upnp nas device: upnpnasd.
[ok] Stopping wddispatcher: wddispatcher.
[ok] Stopping wdnotifier: wdnotifier.
[ok] Stopping wdnotifier: wdnotifier.
[ok] Stopping NFS kernel daemon: mountd nfsd.
[ok] Unexporting directories for NFS kernel daemon....
[ok] Stopping NFS common utilities:.
Recreate mdraid partitions
mdadm: set device faulty failed for /dev/sda1: No such device
Upgrade partitions...
Done! Cleanup...
Reboot to take effect...
WDMyCloud:/DataVolume/shares/Public#

Thx for feedback. I make some changes in script, test it please.

Thank you very much. I will wait for the new version :smiley:

saggi

Already uploaded.

Drop all files in one folder (install.sh, config_md0-1, kernel and rootfs), then run install.sh

Hi Fox. I don’t see any changes in your script though. Last modified date is 25/09. Unless I am looking in the wrong place? It’s the Autoinstall folder, right?

Yes…

https://drive.google.com/file/d/0B_6OlQ_H0PxVZnltc0c0U29nVjg/edit?usp=sharing

1 Like

Hi Fox_exe,

i have downloaded the new version, but something goes wrong:

Recreate mdraid partitions
./install.sh: line 64: syntax error near unexpected token `('
./install.sh: line 64: `// Restore raid (Fix from wd?)'
WDMyCloud:/DataVolume/shares/Public#

 Now i have add a comment in line 64 and line 73.

Recreate mdraid partitions
mdadm: set /dev/sda2 faulty in /dev/md1
mdadm: hot remove failed for /dev/sda2: Device or resource busy

 The Script runs to the end without any further changes, except the remove of the files, and MyCloud is rebooting…

Sorry for the bad news.

saggi

* Updated. Tested. Works for me.

(Fix error in config_md*.img)

https://drive.google.com/folderview?id=0B_6OlQ_H0PxVUENWT2UwQTIyb2s&usp=sharing

1 Like

Script is working! You are my hero…

Thank you, now testing the other. When done i will give you feedback. Many thanks!

saggi

https://drive.google.com/file/d/0B_6OlQ_H0PxVX01ibjJhc1ZrV1E/edit?usp=sharing

OMV 1.0.23 + omvextras.org plugin.

User/pass for webgui: admin / mycloud

For ssh: root / mycloud

You can use autoinstall script for installation.

* Updated first post. Moderators, please, check and correct spelling.

Instalation went OK, I get the green LED.

By cant get WEBGUI.

It says:

404 Not Found
nginx Via ssh can login but there is no drive: root@MyCloud:~# cd /DataVolume/shares/Public
-bash: cd: /DataVolume/shares/Public: Нет такого файла или каталога

What to do next???

Clear browser cache. (link must be just http://mycloud without /webgui!)

And here no /DataVolume because its wrong. OMV have default mount points in /media (Need mount /dev/sda4 in webgui first.)

And - change langugage:

dpkg-reconfigure locale

http://wiki.openmediavault.org/index.php?title=Main_Page

Thank you it was browser fault.

But when I tryed to:

dpkg-reconfigure locale

now only white light cant connect at all… :frowning:

**bleep**?

Any logs? (Console output?)

I need more information…