Any idea why the the transmission becomes unavailable after some time?
chroot seems to run but transmission page cannot be accessed.
After rebooting mycloud and starting chroot everything works fine.
tried adding a crontab to start the script on reboot, but after reboot the crontab entry disappear! I think it has something to do with the way its stored to tmpfs or something, but the WD entries in crontab remains after reboot. Not sure what’s going on
these are the mount points on my gen 2 mycloud. I’m not even sure what type of an init system this thing is using to start up WD processes on boot!
proc on /proc type proc (rw)
/dev/ram0 on / type ext2 (rw)
sysfs on /sys type sysfs (defaults)
mdev on /dev type tmpfs (defaults)
proc on /proc type proc (0)
cgroup on /sys/fs/cgroup type cgroup (rw,memory,cpu)
/dev/sda3 on /boot type ext4 (rw)
/dev/sda7 on /usr/local/config type ext4 (rw)
/dev/loop0 on /usr/local/modules type squashfs (loop)
tmpfs on /mnt type tmpfs (size=1m,nr_inodes=0)
tmpfs on /var/log type tmpfs (size=40m,nr_inodes=0)
tmpfs on /tmp type tmpfs (size=100m,nr_inodes=20000)
/dev/sda4 on /mnt/HD_a4 type ext4 (rw)
/dev/sda2 on /mnt/HD/HD_a2 type ext4 (rw,noatime,nodiratime,barrier=0,usrquota,grpquota,init_itable=10)
nfsd on /proc/fs/nfsd type nfsd (rw)
looks like WD took advantage of the increased RAM and put a lot of stuff on ramdisk. No clue as of yet how to change how scripts are loaded from hdd on boot
Guys, any idea why my transmission works every time only for few minutes? Then the remote connection hangs until I restart the service. I tried changing the 51413 port to different one. It didn’t help. Sometimes it gets stuck sooner, sometimes later.
Thanks for the suggestion. I have already tried that without success
Sometimes transmission hangs just couple of minutes after starting
I enabled logging see this error appearing many times:
[2016-02-23 11:53:23.096 UTC] tr_crypto error:24064064:lib(36):func(100):reason(100) (crypto.c:111)
Couple of minutes after this error starts appearing, transmission always hangs
Also, when starting the transmission there is this error:
“Failed to acquire random data”
Just to add a solution for anyone that wants to autostart a script or executable (you can do this to start the chrooted env automatically on boot and do whatever you want):
Gen 2 MyCloud uses a ramdisk AND crfs (squashfs), which basically means every reboot you will lose any changes you make. Long way to get around this is to get on a linux vm, download the GPL source for this device (FW 2.XX), extract, go to firmware/module folder and inside you’ll see a folder called crfs. This is the folder that makes the image.cfs which is mounted as squashfs (loop device) to /usr/local/modules on boot every time.
What you need to do is get inside the crfs folder here, go to script folder, and edit the system_init file. Add a line at the bottom pointing to whatever script or executable you want to run at boot. Save, go back to the “module” folder and run the create_image script. It should make a new my-image.cfs file, rename that to image.cfs and finally overwrite the image.cfs in the /boot/boot partition of your mycloud.
Make a backup of that file first! You could brick your mycloud if you mess this up!
OR
Here’s the modules folder with the script to pack it with squashfs. Literally all it does is take the modules folder and make a compressed file system. Download this, extract, edit the system_init file, run the script and overwrite the default image.cfs in /boot/boot
[quote=“bob, post:17, topic:148686”]
Thanks for making it such a pain to do such a trivial task, would a real init system have been too much of a bother WD?[/quote]
I already start build initial disk for Gen2 and normal Debian (For now - stuck on non-standart network drives)
Maybe later i make DSM for this device too… But later.
Cant translate this:
Я изучил прошивку и могу сказать только одно - это тихий ужос… Можно было всё сделать куда более функциональнее и без костылей, кои тут повсюду. Это просто п**ц… Особенно доставляют довольно “Детские” ошибки и костыли уровня выпускника гумунитария…
Финальный эпик - ктото додумался переименовать сетевой адаптер из общепринятого eth0 в нестандартный egiga0 (От чего теперь нужно пилить дополнительные костыли, либо исправлять в драйвере…)
That’s good to hear, default firmware is really a mess to navigate around I have been trying to build debian for it, but I’m having compile issues. I would send you my MyCloud to test but unfortunately I’m in US
Please keep us updated on progress!
Also noticed that by default, in WD firmware drive sleeps every 10 minutes if no hdd usage as per the config.xml file.
Is this ideal for HDD life? Looking at firmware files, it seems like a script is called (hd_standby.sh) to turn off HDD after 10 mins. Trying to figure out a way to keep drive on during business hours, and standby as usual during night/off peak
root@WDMyCloud dev # /mnt/HD/HD_a2/chroot/chroot-debian.sh start
mount: mount point /mnt/HD/HD_a2/chroot/dev/pts does not exist
[warn] Starting bittorrent daemon: transmission-daemon (warning).
[ ok ] Starting DLNA/UPnP-AV media server : minidlna.
those are the folders in this path
root@WDMyCloud dev # ls
console loop0 loop5 port ram1 ram14 ram4 ram9 stdout
core loop1 loop6 ptmx ram10 ram15 ram5 random tty
fd loop2 loop7 pts ram11 ram16 ram6 shm tty0
full loop3 mem ram ram12 ram2 ram7 stderr urandom
kmem loop4 null ram0 ram13 ram3 ram8 stdin zero