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

hey there, saw that DSM is going well for some people. Just curious, will DSM installation delete the data (public folder) on the device?

If i decide to go back to clean debian after DSM, what will I have to do?

keep up the good work btw fox!

Change firmware to DSM not destroy data (Now).
For change back - need repart HDD again (w/o loose data if skip formatting 4th partition).
User “Recovery package” or “Change HDD” instructions from my Google.drive.

hey Fox,

thanks for replying. I installed DSM, and everything works fine, but it seems like my old data partition is not mounted in DSM? i cannot see it anywhere, but the space is used. Is there any way to mount it in DSM?

Also, this might be a stupid question but I’m still new to linux. When logging into SSH with DSM, it puts me automatically into ash(shell). Is there any way to revert to bash?

No, DSM based on Busybox (Only Ash available).
Data volume different:
Old: /DataVolume/shares/Public
DSM: /volume1/shares/Public
Check /volume1 is mounted? (/etc/fstab wont work, i place mount command in /etc/rc)

Hi Fox_exe

i want to switch to original wd-mycloud fw. Only for tests about samba-speed. Now, the system is running on md1. I will install original fw with autoinstall (to md0 automatically) using the orig rootfs and orig kernel. If i want to switch back to omv, i need to dd only sda7 (config) or dd sda5 (kernel) too? If i want to switch between the systems and redump everytime the kernel, will i loose my configurations? both of kernels have different sizes, have i to consider something about dd-command? I would use “dd if=kernel.img of=/dev/sda5 > /dev/null 2> /dev/null”.

Thanks for your great work!

Yes, need reupload kernel too.
And make it simple:

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

1 Like

I have a little problem with OMV 2.0.2, these error messages back to each update :

insserv: warning: script is corrupt or invalid: /etc/init.d/…/rc0.d/K01wdled-boot
insserv: warning: script is corrupt or invalid: /etc/init.d/…/rc1.d/K01wdled-init
insserv: warning: script is corrupt or invalid: /etc/init.d/…/rc2.d/S03wdled-init
insserv: warning: script is corrupt or invalid: /etc/init.d/…/rc3.d/S03wdled-init
insserv: warning: script is corrupt or invalid: /etc/init.d/…/rc4.d/S03wdled-init
insserv: warning: script is corrupt or invalid: /etc/init.d/…/rc5.d/S03wdled-init
insserv: warning: script is corrupt or invalid: /etc/init.d/…/rc6.d/K01wdled-init
insserv: warning: script is corrupt or invalid: /etc/init.d/…/rcS.d/S14wdled-boot

Do you help me Fox_exe ?
Thank you in advance.

Don’t pay attention. Everything is normal.

1 Like

Can I revert back to default factory firmware/OS that was installed on my cloud after installing the above given custom firmwares?
If so,how? (It would be better If I could revert back without opening the case and removing the hardware for e.g through SSH)

Fox, thanks for the spindown link- a lot of good info. Is OMV 2.0.2 still good only for testing?

You can upgrade any OMV to latest v3.x (“Erasmus”)
But for upgrade to Jessie need new firmware (Upgrade from Wheezy possible, but need some “tuning” and tweaks)

I’m on clean debian jessie, and everything works great. But OMV does not install following directions from your google drive folder, as I think 2.x only works on wheezy.

How do i install 3.x Erasmus on Jessie? Is there a different repo to add?

Just notice: Openmediavault 3.x - Important Information! - Announcements - openmediavault

Hey there,

im trying to spindown my hdd after 30 minutes. It doesnt work. I have done the points below:

 1.
*noatime added for ext3 und ext4:
/dev/root / ext3 default,noatime
/dev/sda1
UUID=2e0e754e-7dc2-4c21-9101-b539b8a501a8  /       ext4   errors=remount-ro,noatime 0   1

2.
*install ramlog:
wget http://www.tremende.com/ramlog/download/ramlog_2.0.0_all.deb
dpkg -i ramlog_2.0.0_all.deb
reboot

2a.
*ramlog is running?
/etc/init.d/ramlog status

*why not?
more /var/log/ramlog

*bootlogd deamon rename:
cd /etc/rcS.d/
mv S04bootlogd _S04bootlog.d

*change boot-order: added ramlog-start in required-start/stop:
nano /etc/init.d/rsyslog
nano /etc/init.d/php5-fpm
nano /etc/init.d/bootlogs
nano /etc/init.d/samba
insserv -v -d

*ramlog is working with tmpfs?:
df -h

3.
*rrdcached disabled
nano /etc/init.d/rrdcached
nano /etc/default/rrdcached

4.
*cronjobs edit; comment "#" all jobs
nano /etc/crontab
(+ all in /etc/cron.d)
(+ all in /etc/cron.hourly)

5.
*entry added in /etc/hdparm.conf with sda:
/dev/sda { *copy/paste from first row*}
*check status after min 10 minutes:
hdparm -C /dev/sda

6.
*edit samba with mount/umount
nano /etc/init.d/samba

7.
* disable NTP Zeitsync: paste "exit 0 ; disable NTP" in first row command-start
nano /etc/init.d/ntp
* add time-sync in crontab
nano /etc/crontab
* insert: 15  19   *   *   * root /usr/sbin/ntpdate pool.ntp.org  &>/dev/null

8.
* change Laptop-Mode 0 -> 5
echo 5 > /proc/sys/vm/laptop_mode


**I checked all changed files:**

root@MyCloud:/# ./changed.sh 20
Search whole filesystem for changed files in the last 20 minutes
/dev/pts/0
/var/cache/samba
/var/cache/samba/browse.dat
/var/lib/monit/state
/var/log/lastlog
/var/log/auth.log
/var/log/ConsoleKit/history
/var/log/daemon.log
/var/log/syslog
/var/log/wtmp
root@MyCloud:/# ./changed.sh 2
Search whole filesystem for changed files in the last 2 minutes
/dev/pts/0
/var/cache/samba
/var/cache/samba/browse.dat
/var/lib/monit/state
/var/log/lastlog
/var/log/auth.log
/var/log/ConsoleKit/history
/var/log/daemon.log
/var/log/syslog
/var/log/wtmp
root@MyCloud:/#

root@MyCloud:/# /etc/init.d/ramlog status
ramlog is running...
root@MyCloud:/# df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
rootfs          1,9G    987M  838M   55% /
/dev/root       1,9G    987M  838M   55% /
tmpfs            23M    684K   22M    3% /run
tmpfs           5,0M       0  5,0M    0% /run/lock
tmpfs            10M       0   10M    0% /dev
tmpfs           144M       0  144M    0% /run/shm
tmpfs           114M       0  114M    0% /tmp
/dev/sda4       1,8T     37G  1,8T    3% /media/8a8a6a7d-658e-4259-809a-6638b3d8aa61
/dev/sda4       1,8T     37G  1,8T    3% /export/mycloud
/dev/root       1,9G    987M  838M   55% /var/log.hdd
ramlog-tmpfs    114M     76M   38M   67% /var/log
tmpfs           114M    4,0K  114M    1% /var/cache/samba
root@MyCloud:/#

all things are running well and the changed files are in tmpfs or are changed cause my ssh-login, isn’t it so? What is going wrong?

@Fox_exe
does spindown works in your image “omv_Test_2.0.2”?

thanks

There is a bug in samba that updates the browse.dat file every minute or so. True it is on a tmp file system. But it causes kjournal entries to be written to the disk.

RAC

Its HDD feature and work everywhere. If system not read something from HDD, hdd go to “sleep mode”.

I’ve killed samba-process. However Hdd doesnt spin down.

I’m afraid, i have to use strace for each suspect service… i dont understand, why its so complicated with my box…

Just continue search what files are read from HDD in last ~30 min (And move all of them to ramdisk, or disable services, who used this files)
Also - check crontab.

1 Like

If you are running a standard debian you can use blktrace. This will allow you to see what I/O is being done. I don’t know if it exists on your OS. But a file called /proc/diskstats is used by the standard My Cloud OS to see is any disk I/O has been done.

RAC

1 Like

Can someone help me troubleshoot what’s going on, it’s driving me insane. I’ve had this happen with DSM and clean debian jessie so far. Everything is good for about a day or so, then the NAS just “stops” working. I mean I can’t log in via SSH, most services shut down but there’s still a green light and the only thing i can do is do a hard reset. Every time I do a hard reset, it doesn’t boot the first time, goes straight to a red light, but works after I do a couple of hard resets.

Are there any logs I can read to figure out what’s going on? Tried this with a fresh install 3 times now, same result. Not sure if it’s something to do with my setup.