GregLedet.net Adventures in networking, security, and other things

10Nov/0916

Western Digital MyBook World Edition Hacks

I know that I've been moving further and further away from the main purpose of this blog, and that's Cisco networking and security. I'm putting this here so I can remember how to do this stuff later and have a place to look! The MyBook World Edition is a great device that you can do tons of stuff with. It runs Linux, so just about anything you can do with Linux, you can do with this device.

First off, you need to enable SSH on your NAS. There's a few different ways of doing it. Martin Hinner was the original hack. I've used this method before and it works just fine. There's also a slightly cleaner way of doing it found here. I have both scripts on my server should something happen to either one of those.

Martin Hinner Original Hack

http:///auth/firmware_upgrade.pl?fwserver=gregledet.net/mybook/firmware.php

Slightly Cleaner Hack from Mybook-Linux

http:///auth/firmware_upgrade.pl?fwserver=gregledet.net/mybook/enablessh.php

For both of those, simply plug the link into your browser, add the IP of your MyBook, and it will tell you that there's new firmware available. Click the button that tells you Download and Install. It's not going to take the 30 minutes that it'll say on your screen, it should take around 5 or 10. With the Hinner hack, you may get an error message saying that the firmware update failed. This happens with firmware 2.00.15 and higher. Don't fret, the script did run. You'll be fine. Continue on with the instructions.

  • *NOTE* If you have an SSH client, great. If now, download PuTTY. I use it and it works perfectly fine. Login with the username "root" and the password "root".
  • *NOTE* If you don't know how to use vi, or if you are uncomfortable using it, you can get a program like WinSCP that will allow you to secure FTP into the device. Then you can download the files to your computer and use the editor of your choice to edit the file (notepad works fine) and upload the new file back to the device.

If you use the Martin Hinner hack, after you install the "firmware", you need to make SSH permanent by editing the /etc/inittab and adding the following under the "# Startup the system" part of the file.

::sysinit:/usr/sbin/sshd

The other way should turn it on permanently by itself. After you add that line for the Hinner hack, or once the "firmware" is installed and you can SSH into the device, you need to reboot.

[root@MyBookWorld ~]# reboot

Now you have SSH permanently installed on your MyBook World Edition!

One error that I ran into was not being able to get mplayer CE to connect via samba to the network share on the MyBook. To fix this I had to enable Microsoft Directory Service on the device. First, you need to add the following lines to the /etc/services file.

microsoft-ds    445/tcp                         #Microsoft Directory Service
microsoft-ds    445/udp

Add this after "snpp 444/udp # Simple Network Paging Protocol" and before "saft 487/tcp # Simple Asynchronous File Transfer". Do your best to make it fit in the file. By that, I mean use the tab key.

After this, you need to edit the /etc/inet.d file and add:

microsoft-ds stream tcp nowait root /usr/local/samba/sbin/smbd smbd -s/etc/smb.conf -l/var/log -d0

I would just add it on the second line or at the bottom. I don't think it matters.

One more file to edit. This time you need to add the following to the /etc/smb.conf file under "[global]" after "max log size = 1"

smb ports = 445

A quick reboot and you're done! This will have you connected to your Wii to stream movies with no problem.

There are tons of sites out there that have great information on hacking your MyBook World Edition. With the following 2 sites, you should be able to do whatever you want with it.

Martin Hinner's site on Hacking the MyBook World Edition
MyBook World Hacking at wikidot.com

Those sites should answer any questions you have about anything having to do with Hacking the MyBook World Edition!

  • http://www.gregoryledet.com Greg Ledet

    testing

  • http://highlevelbits.free.fr/ teinturman

    Hi, if you are interested in having additional features on your Mybook, but you do not feel confident to follow a guru Linux tutorial, you may want to check the following site which proposes automatic installations, via feature packs…
    http://highlevelbits.free.fr

  • victormperez

    So … I have one of these devices. The warranty is expired and Drive A died. My understanding, when I bought it, was that I could simply plug in a replacement drive, and the RAID would rebuild. That is not happening however. WD wants to charge for Tech Support, or for a replacement drive. I'm no expert in linux … but I have a box with Suse Linux. Is there a way for me to mount the remaining drive, and the new drive onto that box, and issue command-line instructions to rebuild the raid? That way, I would just rebuild outside the NAS, then replace both drives … but I have no clue where to get such commands, or if they even exist. Your comments would be appreciated.

  • http://www.gregoryledet.com Greg Ledet

    In order for it to rebuild the array, you need to have had it in RAID to begin with. As far as I know, the drive doesn't come in RAID from the factory. If you had a 1TB NAS, it would have had 2 x 500GB drives in it. You would have needed to set it to RAID in which case you would have only had a 500GB NAS.

  • victormperez

    Thank you for your response.
    I'd bought the drive used, so I don't know if it was in RAID or not. However, if I dismount both drives, and put the working one in a linux box, I can't see anything. If I put in the non-working drive, I see the directory structure, but can't copy anything because the drive begins to click, and gives me all sorts of errors. Does it sound like the drive might have been in RAID or should I just face the fact that I wont recover the contents of the good drive?

  • http://www.gregoryledet.com Greg Ledet

    Well, it's pretty simple to figure out if it was in RAID. How big was the device before it died? 500GB? 1TB? Now big are the individual drives? If you had 1TB of usable space before and the drives are both 500GB, then it wasn't in RAID. If you have 2 x 500GB drives and you only had 500GB of usable space, then it was in RAID.

  • victormperez

    Thank you for your response.
    I'd bought the drive used, so I don't know if it was in RAID or not. However, if I dismount both drives, and put the working one in a linux box, I can't see anything. If I put in the non-working drive, I see the directory structure, but can't copy anything because the drive begins to click, and gives me all sorts of errors. Does it sound like the drive might have been in RAID or should I just face the fact that I wont recover the contents of the good drive?

  • http://www.gregoryledet.com Greg Ledet

    Well, it's pretty simple to figure out if it was in RAID. How big was the device before it died? 500GB? 1TB? Now big are the individual drives? If you had 1TB of usable space before and the drives are both 500GB, then it wasn't in RAID. If you have 2 x 500GB drives and you only had 500GB of usable space, then it was in RAID.

  • M Sandler

    Hello

    Got a question…
    I’ve got the My World Book Edition with the blue rings and 500GB Diskspace. Now i want to change the Disk with an 1TB by hitachi…. but it wont work… can u helb me?
    my operating systemes r Win 7 and OS X but i’m not very good in “hacking” OPs….
    i actually changed the drives… but it wont start… what to do????
    please help!!!!

    Thnx

  • http://twitter.com/Darr247 Darr Darr

    The only thing I’d like to do, and which I’ve seen none of the sites mention, so far, is… bump up the frame size on the gigabit port to 9000 bytes. It appears to be locked down to 1492 bytes on my MBW’s (both blue rings), which is probably why they don’t even reach maximum 100Mb speeds (I see 30-40Mb/s here, typically), let-alone gigabit speeds.

    And maybe the ability to disabled ‘receive’ Flow Control on their eth port.

  • http://www.y8u.org/ Y8

    You’ve made some really great points in this article that I feel make readers think. This is unique content loaded with great information. Thank you.

  • http://www.y8friv.asia/ Friv 4

    This could be the best content ever put to pen and paper on this subject.

  • http://www.yepibugy.com/ Yepi

    It is obvious that by taking opposing views and looking at the similarities in them, you have written great content.

  • http://yepi-games.kizifriv1.com/ Yepi Friv

    You are obviously very good at gathering data and writing it in clear terms for your readers. I like your unique take on this topic and I agree with you on a lot of it.

  • http://y8-kizi.kizifriv1.com/ kizi

    Wow was the first thought that comes to mind when I read this article. You did a lot of hard work to make this interesting.

  • http://www.yepibugy.com/ Yepi

    This article is blue ribbon material as far as I’m concerned.

7 visitors online now
2 guests, 5 bots, 0 members
Max visitors today: 19 at 12:35 am UTC
This month: 47 at 06-03-2013 08:08 pm UTC
This year: 94 at 05-03-2013 04:12 pm UTC
All time: 106 at 08-27-2010 05:48 am UTC

Switch to our mobile site