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

#595

Hi,

does anyone know how I can use MyCloud to use a scanner over a LAN? I’ve a multifunctional Samsung SCX-3400.

thanks!

#596

ottomauri wrote:

does anyone know how I can use MyCloud to use a scanner over a LAN? I’ve a multifunctional Samsung SCX-3400.

thanks!

http://www.gaggl.com/2012/04/installing-samsung-multifunction-printer-ubuntu-11-10/

Same for debian. Use search (google, bing etc.) sometime…

#597

Has anyone had any success installing  openmediavault-minidlna ?

I get the error:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openmediavault-minidlna : Depends: minidlna (>= 1.0.24) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
#598

So I have installed OMV on my 3TB MyCloud using Fox_exe packages and as outlined in the OMV community forums (see linked thread). I had previously downgraded the firmware sq-030401-230-20140415.deb and I did not do anything else with Debian (i.e. did not do a clean install).

I have also experienced problems with miniDNLA:

root@MyCloud:~# apt-get install minidlna
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
minidlna : Depends: libavformat54 (>= 6:9.1-1) but it is not installable
Depends: libavutil52 (>= 6:9.1-1) but it is not installable
E: Unable to correct problems, you have held broken packages.
root@MyCloud:~#

Fox_exe provided the following advice:

About Minidlna - Omvextras.org have new version of minidlna, but not all dependencies for hem.
Fix 1: Temporary add Jessie repo
Fix 2: Disable omvextras repo, install old minidlna (from wheezy), then add omvextras repo again and install plugin.
FIx 3: Report about this issue to omv-extras.org and wait fix.

#599

Yes, I get the same errors when I try to install minidlna (the error in my last mail is when I try to install openmediavault-minidlna).  I’m guessing we’re missing some repository where the dlna stuff is stored on?

EDIT: Sorry, just saw the notes from fox at the bottom of your post.  Did you have any luck with this?  I’m not up to speed on what and where all the repos are, so if anyone has the correct lines to add to the sources, I would appreciate it!

#600

Hi!

I’ve installed the 64k version of Debian on my WDMC, but after some testing I’d like to use the standard clean debian image (4k). But unfotunately, the install.sh script is unable to install the new image because the package mdadm is missing. Also it’s not available in the default 64k repository.

I tried adding 4k repositories to install it, but can’t be configured (probably because it’s not compatible… i know my way through debian with the help of google, but i’m defininately not an expert…). I successfully managed to build 64k packages (htop to test) with the latest v4 WDMC GPL source code on a Debian virtual machine from the following tutorial :

http://community.wd.com/t5/WD-My-Cloud/GUIDE-Building-packages-for-the-new-firmware-someone-tried-it/m-p/770653#M18650

But i found out that building mdadm is a pain because of too many missing dependencies, and i would need to build and install each one of them prior to build mdadm…

Has anyone successfully managed to install the other images provided by Fox_exe from Debian 64k with its installation method?

I already bricked my WDMC once because I messed with install.sh by changing md0/md1 partition, had to unbrick with the SystemRescue method, to finally realise that the missing mdadm package generated the error when installing a new image. I would prefer not to unbrick again to install debian 4k because I still have SSH access to WDMC.

Thanks for your help, I really like the fact that we can finally use the full power of WDMC without the original firmware!!

#601

w/o mdadm you can’t change md partitions, so cant switch images (firmwares).

But you can upload image (rootfs, kernel, config) to any folder (DataVolume) and use this method for reflash firmware:  Recovery image (tftp method)

#602

elylv wrote:

 Sorry, just saw the notes from fox at the bottom of your post.  Did you have any luck with this?  I’m not up to speed on what and where all the repos are, so if anyone has the correct lines to add to the sources, I would appreciate it!

No, sorry – as yet I’ve done nothing else about this; miniDLNA is only a peripheral interest/objective for me. I have now installed Plex from the OMV settings and will test that as a media server. My main interest is getting MyCloud to work efficently as NAS - I was fed up with the WD software and flacky connections. Thus far, OMV seems more robust and reliable

#603

Thanks for the info, but TFTP method never worked for me, I used the disasembly method again :stuck_out_tongue: Now I’m ready to try new stuff! :smiley: I’m more than curious to try DSM5. Keep up your good work!

Thanks!

#604

OMV and Plex seem to be working well now but …

Is there any way to get the MyCloud to sleep/standby mode and the awake again. If I put the drive into standby mode, either from OMV gui or terminal it closes down, the LED goes blue (from green) but then I can’t get it to wake again.

I have tried various WOL protocols but the drive never spins up again.

Without going into sleep/standby mode MyCloud HDD seems to be always spinning, which is not ideal in terms of power and extending life of the drive.

#605

Have I bricked the MyCloud?

OMV crashed while I was playing with WOL problem and now I only get a white LED on powerup, fan is running HDD platter sounds as though it’s spinning but no green LED just solid white :cry:

UPDATE -

LED did go solid green after 20-30 minutes but still no visibility on LAN, SSH terminal or via GUI

#606

Hi. Thanks Fox_exe for all the effort you have put to this.

But I have one problem with your clean debian.

When I run “apt-get install libevent-dev” I get the following error

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libp11-kit0 : Depends: libc6 (< 2.14) but 2.19-18 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Can this be fixed?

#607

Your libc6 from Jessie, but you try install package from Wheezy. (Version’s conflicts)

Rollback libc6 or use Jessie as default repo and install latest software (Need upgrade kernel - see in g.drive and hold udev package (dont upgrade or you get brick))

#608

How can I rollback to wheezy?

#609

mushroom_daddy wrote:

Have I bricked the MyCloud?

OMV crashed while I was playing with WOL problem and now I only get a white LED on powerup, fan is running HDD platter sounds as though it’s spinning but no green LED just solid white :cry:

 

UPDATE -

LED did go solid green after 20-30 minutes but still no visibility on LAN, SSH terminal or via GUI

Sorry Guys, I have given up with this project! :confounded:

I managed to ‘brick’ MyCloud unit and have decided to pull the drive and use it as a more conventional HDD on my WiFi network. I enjoyed playing with OMV; it is so much better than the shabby, unreliable WD software. Fox_exe deserves to be highly commended for his work getting Debian FW revisions and OMV installations working for the WD-MyCloud. However, IMHO none of this should be necessary on a commercial product – it really should work straight out of the box!

I cracked open the case of MyCloud and the 3TB drive is now sitting in my old PowerMac while I try to make the data accessible via OSX.

Does anybody know how to make linux ext partitions RW on OSX?

I can mount them using OSX Fuse - but they are read only, and I don’t seem to be able to copy the data to a reformatted HFS+ partition.

I sincerely wish the MyCloud community ‘good luck’ and especially to those using revised FW & OMV builds - I hope that your strength & perseverance is stronger than mine :wink:

#610

Yeah, my “Firmwares” - only for test / fun / teach_something / etc…

And possible make it better (Force samba’s speed, add more functionality like auto-restore via Reset button etc.). But i dont need it anymore (I buy nettop and make all-in-one server based on ProxMox)

About ext4 in MacOS:  http://osxdaily.com/2014/03/20/mount-ext-linux-file-system-mac/ (Read from “Write support”)

Or this:  https://github.com/gerard/ext4fuse

1 Like
#611

Hi @ all

I restored my 4tb wdmycloud with Fox_exe’s guide on the first page. First it showed in the web UI 0 space left, so I made a quick system restore. But now it shows only 1.8 tb. Can someone help me with that?

Thanks Fox_exe for your great work!

(parted) print
Model: ATA WDC WD40EFRX-68W (scsi)
Disk /dev/sda: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system     Name     Flags
 3      15.7MB  528MB   513MB   linux-swap(v1)  primary
 1      528MB   2576MB  2048MB  ext3            primary  raid
 2      2576MB  4624MB  2048MB  ext3            primary  raid
 5      4624MB  4724MB  99.6MB                  primary
 6      4724MB  4824MB  101MB                   primary
 7      4824MB  4826MB  1049kB                  primary
 8      4826MB  4828MB  2097kB                  primary
 4      4828MB  1802GB  1797GB  ext4            primary

WDMyCloud:~# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda2[1] sda1[0]
      1999808 blocks [2/2] [UU]

unused devices:

#612

Recreate Data partition.

Missing “mkpart primary 4828M -1M” ? (from my instruction)

Also try “Full reset”.


DSM 5.2 Almost done! Its boots up. Samba/FTP/DLNA work too. Almost all webgui functions works.

But now i have troubles to with bootscript (idk how to build this). And need recreate partitions on HDD (Hardcoded HDD layout in system files).

So - cant autoboot. Only “By hand” from UART now…

All files and some info available on G.Drive if someone want try it.

#613

Found the problem!

I used my old usb to sata adapter. But it can not handle large HDDs properly, so it recognized it as a 1.5-2tb hdd.

So I used the internal sata connector in my PC and everythink is ok now.

WOW! DSM on the wdmycloud, can’t wait to test it … great work!

#614

Is there any way to enable Ip filtering in this Debian image?  I’ve installed fail2ban as I’m getting multiple login attempts to the SSH, but it looks like it’s unable to block the IPs because IP filtering is not available:

~# iptables -n -L
iptables v1.4.14: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

The repeated login attempts seem to be causing high CPU load for the sshd process, otherwise I wouldn’t be too worried.  Would like to autoban all of these hacking attempts.