Quantcast
Channel: Hacking WD MyBook World Ed - new forum threads
Viewing all 529 articles
Browse latest View live

Add temperature read-out to web interface of MBWE White light

$
0
0

As you all know, overheating is a serious enemy of MyBook hard disk.
The following patches to the web interface files adding a temperature read-out to the Disk Manager page under the Storage tab in Advanced Mode (see screenshot).
This patch has been tested under software version 01.02.14 on both a single and double drive system.
I assume the patch can be made to earlier version of the software as well.

The mod makes use of the SMARTCTL routine already present in the MBWE.
Just try it out by logging into the unit via SSH using Putty (user root).
Then type: /usr/sbin/smartctl -a -d ata /dev/sda |awk '/Temperature/ { print $10 }'

For the modification the following files were changed:

wixHooks.class /proto/SxM_webui/admin/inc
storage_disk_manage.php /proto/SxM_webui/admin
en.xml /proto/SxM_webui/admin/lang

Note that when you use the web interface in a different language, you should edit the correct language file.
(For English en.xml is used)

Before making changes to the three files, make a copy of the original file.

 In wixHooks.class at approx line 2919 (just below "status") get the temperature of the drive(s) using SMARTCTL: // Status $status = trim(@file_get_contents('/etc/.smart_disk' . ($id + 1))); //NEW // Temperature coded by Ruud Broers aka Laservision, March 2013 ob_start(); // Turn on output buffering if($id == 0) { // Drive 0 or Drive 1 @system("/usr/sbin/smartctl -a -d ata /dev/sda |awk '/Temperature/ { print $10 }' "); } else { @system("/usr/sbin/smartctl -a -d ata /dev/sdb |awk '/Temperature/ { print $10 }' "); } $temperature = ob_get_contents(); // Capture the output into a variable ob_clean(); // Clean (erase) the output buffer In wixHooks.class at approx line 2950 copy the temperature: $diskinfo[$index]['status'] = $status; //* NEW * $diskinfo[$index]['temperature'] = $temperature; In storage_disk_manage.php at approx line 93 make the description column more narrow and add the extra column: <td class="listhdrr" style="width: 180px;" nowrap> <?=htmlspecialchars($lang['storage']['diskmanagement']['description']);?> </td> <!-- New field for temperature --> <td class="listhdrr" style="width: 80px;" nowrap> <?=htmlspecialchars($lang['storage']['diskmanagement']['temperature']);?> </td> In storage_disk_manage.php at approx line 149 insert the measure value: <td class="listrgrid" nowrap><?=($isMissing) ? '--' : $info['vendor'] . ' ' . $info['model']?></td> <!-- New field for temperature --> <td class="listrgrid" nowrap><?=($isMissing) ? '--' : $info['temperature'].'&#186;C'?></td> <td class="listrgrid"><?=($isMissing) ? 'Missing' : (($info['status'] == 0)?htmlspecialchars(__STR_GOOD__):(($info['status'] == 1)?htmlspecialchars(__STR_BAD__):(($info['status'] == 2)?htmlspecialchars(__STR_FOREIGN__):htmlspecialchars(__STR_NEW__))))?></td> In en.xml at approx line 469 add the column header: <storage> <title>Storage</title> <diskmanagement> <title>Disk Manager</title> <managedisk>Manage Disks</managedisk> <disk>Disk</disk> <size>Size</size> <description>Description</description> <!-- extra value for column header --> <temperature>Temperature</temperature> <status>Status</status> </diskmanagement> 

!! Important: Make sure that you set the attributes for the three files correctly, otherwise it will not work!

In addition to Putty I use WinSCP (under Windows) to have a comfortable user interface to the filing system within the MBWE.
It's much easier than the command line and allows drag and drop. So you can copy a file to Windows, edit it and drag it back to the MBWE.

Contact me for a copy of the modified files

If you want the display in Fahrenheit, use

$celsius = ob_get_contents(); // Capture the output into a variable
$temperature=$celsius*9/5+32;

instead of

$temperature = ob_get_contents();

Regards,
Laservision


Deleted /root/usr/local

$
0
0

Yes, I know this is damn stupid, but I had just been upgrading My Book Live (3TB) to the Twonky Server v7 and all was going right until I tried to upgrade to the latest Twonky Server, which wasn't working for me. I then tried to go back to the first v7 installation and in the attempt of trying to switch from DLNA to Twonky, things went further wrong. I then went in and tried to uninstall stuff and in my panic/hurry I was in the /root directory when I started cleaning up and then did - rm -rf /usr/local and then realised what I had done, but too late. Is there anyway I can rectify this. The harddrive will no longer start and I therefore can not connect to it. What are my options?

thumbnails with Twonky

$
0
0

Am using Twonky 7.0.8 with the MyBook Live and have read about the use of ffmpeg to get the thumbnails of movies to show up. This program (?) seems to be included with the Twonky version I currently have…I have paid to upgrade the trial version of Twonky that I initially had. Am reluctant to start trying the suggestions I found at server.vijge.net (can't post links)

Suggestions?

dan

file system

$
0
0

Hello, I've an ssh access to the file system and I'd like to move files from the DD to the usb stick but I can't find it. I think it's automatically mounted but where ?
Thx (and sorry for my english)

Could some one please compile the newest version of minidlna 1.0.25

$
0
0

Could some one please compile the newest version of minidlna 1.0.25 the opt ware available ipkg is from 2009.
Thanks

Auto Mount USB and Copy files to Mybook

$
0
0

Is the above possible,

My idea was too have a usb drive with same folder structure of my /public folder and when i plug it in the mybook copies all the files across, email confirmation would be nice but not needed as ill just check the light on the drive to see if its finished.

i have very little linux coding skills so any help greatly appreciated.

Thanks

Shared folders lost after power outage

$
0
0

Greetings from Brazil

After a power outage, my western digital my book edition ii (white lights - 4TB using Raid 0) lost the shared folders under the Public Share. I am able to ssh to the server and see the following:

/DataVolume/Public # ls
twonkymedia
/DataVolume/Public #

I would like to know from you guys what I can do in order to restore the Shared folders in there. I have basic Linux experience but I can perform all the commands in case I can find them :)

Thank you!
Gilson

DLNA Options

$
0
0

Hello,

I'm trying to get my My Book Live 3TB drive to work with my Sony Blueray and my Vizio tv. The Vizio locks up all the time when reading the directories, and the Sony Blueray player only shows some of the files.

I'm not sure if it's the Twonky media server or the devices, but I was thinking I would try the miniDLNA.

Has anyone installed this and had ny luck with mp4 and other items that don't show up on other devices? Does anyone have instructions on how to install? If I wanted to then uninstall does anyone have instructions for that?

Last, will there be conflict if I'm running the Twonky server and the minidlna at the same time? Do I need to disable the twonky?

Thanks.


pyLoad start problem

$
0
0

So yesterday i installed pyload-v0.4.9 on my MyBook World II WhiteLight.
First everything worked fine, but then it turned out, that every time i close the ssh connection to
the MyBook World the pyLoad Service shuts down too.

Can someone tell me, where the problem is or how to wirte an "autostart-entry"?

Thanks in advace :)

Compiling a new MBL Kernel

Ajenti

$
0
0

Has anybody out there been able to get Ajenti going on the MyBookLive?
I have added the repo to sources.list

Installed the key

Installed Ajenti

 apt-get update apt-get install ajenti 

No weird install errors
No dependency errors

Ajenti starts successfully but I can't access the console at mybookliveip:8000

How much RAM in WD My Book Live 3TB NAS WDBACG0030HCH-NESN?

$
0
0

How much RAM in WD My Book Live 3TB NAS WDBACG0030HCH-NESN?

Could you help tell ? thanks

Help on formating a clean 2TB EURS

$
0
0

Hello,
I've been trying to put my book live running but with no luck.

I have a My BOOK LIVE P/N:WDBACG00……………….. , and i've downloaded the backup images from here: "…/backup-images-of-mybook" the one that is on shareonline and the alterante one, but it misses the procedure to recover… it says :"To recover follow the instructions of the MyBook WE… " but for what i've checked the recovery for MBWE has 4 partitions , the LIVE has only 3. ???

And there is no reference to how i can make partitions on the harddrive. The HardDrive it's the same model my damaged one WD20EURS and it's now totally blank.

Can some one explain me the procedure to format and recover my book live???
Or give some link with the exact procedure.

Thanks in advance.

bitcoin

$
0
0

Hello guys,

anyone tried to run BitCoin Wallet as a server on MBWE II ?

My idea is to run it as a server which doesn't require any resources except for few GB of space and then any computer in home network can connect to the service and mine in pool whenever it is running.

I'd try it myself but don't know how to cross compile it for armel.

Can anyone help?

Thanks ;)

Anyone install java?

$
0
0

Can java be installed on a MBWE 1tb??


Automatical Backup to 2 Partition 3TB USB Drive

$
0
0

Hello everyone,
the configuration is the following:
MBWE WL with newest Firmware and upgraded to 2TB.

A 3TB My Book Essentials External Hard Drive. One Partition 2TB, one Partition 1TB.

The goal:
The MBWE backups itself automatically on the 2TB Partition of the external HD and uses the 1TB as normal USB Drive.
OR
The MBWE backups itself automatically on the 2TB Partition of the external HD and leave the 1TB Partition alone.

I did search this Forum for hours now and tried MybookClone…But couldn't really find a solution.

Any suggestions?

MBWE 2 - running only with disk B?

$
0
0

Hello everyone,

I used to manage my dad's MBWE blue rings with the help of this site some time ago. The disk A failed and my dad went ahead and got another NAS. I figured I could use the old box for some fun activities at my new home - there is no data recovery needed…

I switched the working disk B to the A position and I can SSH into the device, I used my old password, I can see some packages installed etc, which had me thinking that the system partition is working well in this set up. However I cannot access the webinterface ( I wanted to factory reset the device from there), nor access shares. The hardware reset button does nothing and I even tried to reinstall the firmware via SSH, but that failed because apparently the installer was missing the partitions from the failed disk A…

I have following questions and would be thrilled to get this baby going, because we cannot afford a new NAS right now (we are just about to become a family, so priorities are elsewhere:)

1) is it even possible to run the MBWE 2nd ed in a single disk mode?
2) is there a way to format the disk B as a disc A with SSH?
3) If not, I will try to get a Sata - USB adaptor and try it that way, however, I only have Mac computer. I have managed to see the ext3 filesystem before but is it enough to format the disk? Is there a solution like TeinturMan's for mac?

If only question 1 is answered with Yes, would the safest bet be - get a windows computer and run TeinturMans utility for recovery?

Thank you a lot for help!
Erik

File does not exist: /etc/init.d/rc.local

$
0
0

Hello!

I recently did an upgrade (apt-get upgrade) and had a problem with initscripts:

 Drive:~# dpkg --configure --pending Setting up initscripts (2.88dsf-13.1+squeeze1) ... update-rc.d: /etc/init.d/rc.local: file does not exist dpkg: error processing initscripts (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: initscripts 

What I'm desperate to know now is wether rc.local is needed, especially when rebooting the drive? If it is, could someone be kind enough to provide me with this file?

I asked the same question somewhere else. Is crossposting tolerated here? Sorry if it isn't, I couldn't find any mention of that.

libusb-dev

$
0
0

Hi all, first visit first dump question.

I have a white mwb, which I recently recovered thanks to highlevelbits.

Want to connect my usb weather station to it and create a perl script to access it.

Have tried to install Device::USB, and Inline, but Inline needs to have sources installed, in particular usb.h from libusb-dev

A these and other sources available?

HowTo disable the "new firmware available" notification (or check) on the MBL / MBLD ?

$
0
0

Hello everybody,

I'm new to this Forum and have a question regarding the firmware-update notifications on the My Book Live (Single Version and Duo).
I already googled about this and also searched this Forum, but unfortunately I couldn't find a solution for my problem … so I hope anybody can help me or give me hind on howto find a solution.

Background:
I configured my My Book Live(s) via the WEB-UI to send me E-Mail-notifications about system events on the NAS. So I get emails when new firmware-versions are available, backups are completed successfully and so on … In general this is pretty fine, since I'd like to get informed in case anything goes wrong (e.g. a drive is full or an HDD is starting to make trouble).

Problem:
The problem is that the drive(s) keep to notifying me on a weekly basis about an available new version of the firmware, if I don't run an update. So I get a bunch of emails every week. I'm happy with the actual firmware and don't want to update it … not least because I don't want to reinstall my modyfied Twonky (by the way: Thanks a lot for this great HowTo in this Forum about upgrading the Twonky to version 7 !!!).

Question:
Is there a way to disable the "check for a new firmware version"? I could imagine there's some sort of a cron-job running that checks on a regular basis for an update or am I wrong?

Note:
Since I'd like to keep on getting emails about other system events on the NAS it's no option for me to just disable the e-mail notifications in general. I'm also not loooking for a solution which is about blocking the access to the WD-Servers on my router (I'd like to cure the "disease" and not the symptom ;-) )

I'd highly appreciate any help on this!

Best regards,
Patrick

Viewing all 529 articles
Browse latest View live