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

Hi,
I have some qustions about manual: If you want make all urself  (Only for professionals!):
I think You need add to manual commands for mount /proc,/sys,/dev

mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/

without this, doesn’t work:

/etc/init.d/ramlog start hdparm -S 30 /dev/sda

also about step 14.

Donwload and unpack kernel libs:
tar xvfz Kernel_and_modules_v2.tar.gz lib/* -C /lib

no info about kernel flash?

# Repleace kernel on HDD:
dd if=_bin/uImage of=/dev/sda5

do I can use modules from original kernel without flash? and last step:

cp * /mnt/

for me, dosn’t work, need:

cp -r * /mnt/

Thanks, for Your time,

Hi All,

I have a problem. After installing clean Debian. When I try to change sources.list from russian to english and I want to change time zone and system language I get error messages like:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directoryperl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.

 Even if I try to do apt-get update, apt-get upgrade I get similar error messages. I mean I can do “successfully” these operations but there are some error messages like above during the whole operation. I can even install OMV but similar error messages occur again. It installs anyway “properly”. I am just worried about these errors.

What am I doing wrong?

Please see my output:

output

Thank you very much for your kind help guys.

WSGVET - I re-flashed to 1.0.23 - then followed your instructions.

One slight change - need to apt-get install --reinstall samba after the apt-get update in your instructions.

I am getting PC-> myCloud 27 MB/s which is a huge improvement.

And I am getting myCloud → PC 14-20 Mb/s which is not so much improved.

Bit weird that - we’ll see how it goes with the IPADs.

Themo

https://www.dropbox.com/s/77jnyvnthwsulf8/smb.conf

Here is my smb.conf file.

How about compare your file?

Gismo

export LANGUAGE=en_US.UTF-8

export LC_ALL=en_US.UTF-8

Fox_exe wrote:

WSGVET

deb http://ftp.en.debian.org/debian wheezy-backports main

Works. But need tuning priority (/etc/apt/preferances.d/*). By default he have 100, but OMV get 995 for all others.

 

krtliv

1.0.24 - just for test samba.

Turn offf omv repo, install owncloud, turn on omv repo again, install plugin.

Or replace jessie to wheezy in sources.list (Dont forget run apt-get update every time when change repo)

Hello thank you very much, i changed the sources.list with jessie sources, and i got the owncloud plugin installed.

The only problem i face now is that it takes quite some time to login to the webui is this normal?

And for some reason i cannot share the mnt folders with owncloud…i can login to owncloud with webdav but shared folders not appear…

I also installed Samba4 with the instructions of WSGVET.

You said that  1.0.24 - is just for test samba.

Is it better to install a clean 1.0.23? and if yes how can i do a clean install?

Great work here! Has anyone a hint how to install Plexmediaserver?  :smiley:

mosel

That’s impossible.

WSGVET - Was trying your smb.conf - was having authentication issues - likely because I had been running from OMV - so I tried to reflash to Clean and it looks like my unit may be bricked.

This is the error thrown by the autoinstall script I downloaded from here last night:

https://drive.google.com/folderview?id=0B_6OlQ_H0PxVUENWT2UwQTIyb2s&usp=drive_web&tid=0B_6OlQ_H0PxVRXF4aFpYS2dzMEE

Problem was it autorebooted and never came back after it threw this error (Full log below).

(mdadm: set device faulty failed for /dev/sda1: Device or resource busy)

I’ll go home and check the box - every other time it came back no problem so I suspect the error above messed things up.   Likely I will need to rebuild from a LiveCD - so ya - good times.  

On the positive side - I guess I can measure the performance I was getting under the WD firmware with my network environment here for comparison.  And I have a backup of the data as well.

root@myCloud:/media/myCloudInternal/shares/Public/OMV/FlashSetup_Clean# ls
config_md0.img config_md1.img install.sh kernel.img rootfs.img run_me_after_reboot.sh
root@myCloud:/media/myCloudInternal/shares/Public/OMV/FlashSetup_Clean# ./install.sh
Ok, lets go…
Current device: /dev/md1
Upgrade device: /dev/md0
################################################
Stop all processes…
forked-daapd: no process found
Stopping periodic command scheduler: cron.
Stopping Samba AD DC daemon: samba.
Stopping SMB/CIFS daemon: smbd.
Stopping NetBIOS name server: nmbd.
./install.sh: line 45: wdAutoMountAdm.pm: command not found
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon…
Stopping NFS common utilities: idmapd statd.
Recreate mdraid partitions:
/dev/md0 exist! Deleting…
Restoring raid…
Creating new partition…
mdadm: set device faulty failed for /dev/sda1: Device or resource busy
mdadm: Cannot find /dev/md0: No such file or directory
Installing new data…
Done! Cleanup…
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

umount: /tmp/hdd: not mounted
Reboot to take effect...

Debricked it at lunchtime using my linux mint machine.  (It helped that I already had the original firmware images on my data drive)

Basically - open the enclosure - (snapped some tabs but seriously those are a PITA to not break em)

Followed these instructions:  https://drive.google.com/folderview?id=0B_6OlQ_H0PxVRXF4aFpYS2dzMEE&usp=drive_web

with the following exceptions:

Got an error doing this step -  mdadm --stop /dev/md127 - I assume that was because I wasn’t using a LiveCD

For these:

I changed sda to sdb (Again likely because I was using a linux desktop not livecd)

dd if=kernel.img of=/dev/sda5

dd if=kernel.img of=/dev/sda6

dd if=config.img of=/dev/sda7

dd if=config.img of=/dev/sda8

Remove drive - plugged in powered up - WD UI after deleting cache.

Stuck at the login screen - won’t accept default admin/admin.  May have to do a system restore from the button on the back.

Update → Ok - back in - had to do 40 sec system restore - data is all fine.  Set it all up again and I’m updating back to 623 for some testing.  :) 

Testing Results for reference:

With WD firmware v04.00.01-623 I’m getting the following.

myCloud → PC = 26-30 MB/s

pc → myCloud = 65 MB/s

Using my linux box right next to the myCloud on the same gigabit switch I got:

myCloud → linux = 30 MB/s

linux → myCloud = 43 MB/s

I verified that all machines were Speed: 1000Mb/s so I expect the limit on these is actually the drives. 

For reference WD Firmware uses Version 4.0.0rc5 (I saved the samba_multicall, configs, smbd, nmbd)

-rwxr-xr-x 1 root root 5211800 Dec 12  2013 samba_multicall

For those wo have change to Clean Debian Install,

Could you confirm wether this guide work or not ?

The reason i will change to this firmware  if it can run plex server

http://mybookworld.friendly-website-service.com/how-to-install-plex-on-mybook-white-light

Basically, it is for mybook white light that run debian

cheers,

No its not running:

./start.sh: 15: ./start.sh: ./Plex Media Server: not found

start.sh:

#!/bin/sh
cd /home/plex/pms
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_HOME=`pwd`
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
#export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="`pwd`/Library/Application\ Support"
export LD_LIBRARY_PATH=`pwd`
export TMPDIR=/tmp
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
ulimit -n 4096
ulimit -l 3000
ulimit -s 8192
/home/plex/pms/Plex\ Media\ Server

And here in this Thread its the same result:

https://forums.plex.tv/index.php/topic/54447-raspberry-pi-plex-media-server/

mosel.paul wrote:

No its not running:

 

./start.sh: 15: ./start.sh: ./Plex Media Server: not found

 

start.sh:

 

#!/bin/sh
cd /home/plex/pms
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_HOME=pwd
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
#export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=“pwd/Library/Application\ Support”
export LD_LIBRARY_PATH=pwd
export TMPDIR=/tmp
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
ulimit -n 4096
ulimit -l 3000
ulimit -s 8192
/home/plex/pms/Plex\ Media\ Server

 

 

 

And here in this Thread its the same result:

 

https://forums.plex.tv/index.php/topic/54447-raspberry-pi-plex-media-server/

Maybe Fox_exe can help us to install plex on this lovely WD My Cloud :smiley:

Try minidlna :slight_smile:

Could you upgrade kernel?

Because I added wheezy-backports source and apt-get update, apt-get upgrade.

There is problem when install udev.

http://ftp.debian.org/debian/ wheezy-backports/main udev armhf 204-14~bpo70+1 [1,073 kB]

Selecting previously unselected package libudev1:armhf.
(Reading database ... 16941 files and directories currently installed.)
Unpacking libudev1:armhf (from .../libudev1_204-14~bpo70+1_armhf.deb) ...
Preparing to replace udev 175-7.2 (using .../udev_204-14~bpo70+1_armhf.deb) ...
Since release 198, udev requires support for the following features in
the running kernel:

- inotify(2) (CONFIG_INOTIFY_USER)
- signalfd(2) (CONFIG_SIGNALFD)
- accept4(2)
- open_by_handle_at(2) (CONFIG_FHANDLE)
- timerfd_create(2) (CONFIG_TIMERFD)
- epoll_create(2) (CONFIG_EPOLL)
Since release 176, udev requires support for the following features in
the running kernel:

- devtmpfs (CONFIG_DEVTMPFS)

Please upgrade your kernel before or while upgrading udev.

AT YOUR OWN RISK, you can force the installation of this version of udev
WHICH DOES NOT WORK WITH YOUR RUNNING KERNEL AND WILL BREAK YOUR SYSTEM
AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file.
There is always a safer way to upgrade, do not try this unless you
understand what you are doing!


dpkg: error processing /var/cache/apt/archives/udev_204-14~bpo70+1_armhf.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1

Well and why to you it?

Hi.

I’m new to forum and WDMycloud with OMV.

OMV is running, but Samba 4 will not work for me. All tries (as described in the threads above) result in a bricked WD, a not changed samba or an unreachable samba.

Please, could anyone with running samba 4 (@>40MB/s) describe step by step how to install? (After run_me_after_reboot_script)

@fox_exe: Thx a lot. Wish I could do something like that…

Thanks a lot,

OMVmyCloud

hi, again.

managed to install Samba 4.

works, but not as fast as expected. Using WSGVETs smb.conf and mount options for sda4. 

Result:

only about 25-30MB/s r/w in Gigabit-environment (compared to 118Mb/s Win7 to Win7) (large files)

any suggestion?

Thx

Hello,

omvmycloud wrote:

hi, again.

 

managed to install Samba 4.

works, but not as fast as expected. Using WSGVETs smb.conf and mount options for sda4. 

 

Result:

only about 25-30MB/s r/w in Gigabit-environment (compared to 118Mb/s Win7 to Win7) (large files)

 

any suggestion?

 

Thx

I have arround 20-30MB/s with samba 3, this is ok for me. I had no luck with samba 4…

After playing with the backport i had crashed my OMV. So i need going from start with an unmounted hdd. Now OMV runs like a charm.

Additional i have installed Webmin and i use a “DPF” Display for Statusmessages.

saggi

The kernel dosn’t support iptables, so the firewall dont works. does anyone have a solution?

How can i update the kernel?

iptables -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.