Firmware bug

As Western Digital does not try to correct MybookLive’s firmware bug forever,
I made a dirty hack to forcibly change the work directory to create the dlna
server’s thumbnail. This problem is explained in http://ilkos.github.io/.
The procedure is as follows.
Of course at your own risk. Any questions or opinions will be ignored.

  1. ssh to MybookLive
  2. cd / tmp
  3. rm JPG *
  4. mkdir -p /Datavolume/tmp/Z
  5. ln -s /Datavolume/tmp/Z/tmp/Z
  6. download “/usr/local/bin/dsm_smm” to your local comupter
  7. edit downloaded dms_smm with your favorite binary file editor and find literal “JPG”
  8. substitute “JPG” to “Z/J” and save (1 place)
  9. upload modified dsm_smm to Mybooklive:/usr/local/bin/dsm_smm.new
  10. chmod 755 dsm_smm
  11. kill process dsm_smm
  12. cd /usr/local/bin
  13. mv dsm_smm dsm_smm.orig
  14. chmod 0 dsm_smm.orig
  15. mv dsm_smm.new dsm_smm
  16. run “dsm_smm” foreground (no-d flag)
  17. you did it. Have fun.

frm:anonymous

Thank you for sharing and for clarifying the risks. Indeed; such proceedings are not warranted or supported by Western Digital, but it can be helpful for advanced Users.

revised.01) ssh to MybookLive
02) cd / tmp
03) rm JPG*
04) mkdir -p /Datavolume/tmp/Z
05) ln -s /Datavolume/tmp/Z /tmp/Z
06) download “/usr/local/bin/dms_smm” to your local comupter
07) edit downloaded dms_smm with your favorite binary file editor and find literal “JPG”
08) substitute “JPG” to “Z/J” and save (1 place)
09) upload modified dms_smm to Mybooklive:/usr/local/bin/dms_smm.new
10) chmod 755 dms_smm.new
11) kill process dms_smm
12) cd /usr/local/bin
13) mv dms_smm dms_smm.orig
14) chmod 0 dms_smm.orig
15) mv dms_smm.new dms_smm
16) run “dms_smm” in foreground (no -d flag)
17) watch the screen carefully. then Ctrl-C
18) /etc/init.d/access restart
18) you did it. Have fun.

in Japanese:
ウェスタンディジタルがMyBookLiveのファームウェアのバグを永遠に直そうとしないので、ダーティーハックを試みました。
現象は、/tmpにJPGのサムネイルの作業ファイルを作ろうとするが、パーティションが小さすぎるのですぐ溢れてしまい、それが原因でDLNAサーバプログラムとsambaがコア吐いてサヨナラしてしまうという致命的なものです。
この問題は http://ilkos.github.io/ で説明されています。
要するにJPGのワークを別のディレクトリでやらせればいいわけなのですが、フラグや設定ファイルを弄っても改善の兆候が見られないので、バイナリエディットという暴挙に出ることにしました。
JPGという文字列を無理矢理Z/Jに置き換え、/tmp/Zをシンボリックリンクにしてどこぞのでかいパーティションに書かせることとします。今回は/Datavolumes/tmp/Zにしました。
手順は英語ポストの方を読んでください。見てもわからん人は素直に諦めてください。勿論自己責任で。質問や意見は受けません。