[H]ard|Forum

Go Back   [H]ard|Forum > [H]ard|Ware > Data Storage Systems

Reply
 
Thread Tools Search this Thread
  #1  
Old 03-26-2007, 09:44 PM
tgwena n00bie, 2.9 Years
 
tgwena is offline
Hacking the WD My Book Word Edition II (NAS)

Hi,

Here is some info on the WD My Book World Edition I got recently.

This device runs an ARMv5 chip at 200MHz. It has 32MB of ram, a gigabit port (a VIA chip) and dual SATA/300. WD locked down the maching quite thoroughly, but it can be opened and I did it. You need to move the drives to another linux machine, mount them as ext3 and uncomment inetd.com and remove passwords in shadow. This part needs care because of the raid setup.

Once you telnet (or ssh) to the device you can start up other services, NFS, sftp, tftp etc... They are all installed, just not started. It even has gcc installed which is handy.

I can give more info if interested.
  #2  
Old 04-02-2007, 08:45 AM
bldrman n00bie, 2.9 Years
 
bldrman is offline
Read your post and would like more info, dont know a lot about Linux but do have access to a box. are you mounting both drives at once, and the additional services you are talking about could you expalin a little further. once you take out the passwords in shadow how does that affect SAMBA? Like I said, I guess I have a few questions.

Thanks for any further info.
  #3  
Old 04-02-2007, 06:56 PM
unhappy_mage [H]ard|DCer of the Month - October 2005, 5.6 Years
 
unhappy_mage is offline
Quote:
Originally Posted by bldrman View Post
once you take out the passwords in shadow how does that affect SAMBA?
I don't have the device in question, but in general Samba stores its passwords independently of the shadow file. I would be inclined to believe it does so here, too.
__________________
"I know not what course others may take; but as for me, give me liberty or give me death!"
-- Patrick Henry, 1775
  #4  
Old 04-03-2007, 09:33 PM
tgwena n00bie, 2.9 Years
 
tgwena is offline
With the way the WD people set things up, the samba username is copied to /etc/passwd and shadow, but the user's directory is not created. My guess is that they plan(ned) to add nfs later and were just preparing.
  #5  
Old 05-30-2007, 06:23 AM
TheGhost n00bie, 2.8 Years
 
TheGhost is offline
Hi,
you said, you need to take care about the Raid 1 setup. In which way? Do I need to do the changes on both drives?
Thanks
  #6  
Old 06-06-2007, 05:55 PM
vanheemst n00bie, 2.7 Years
 
vanheemst is offline
tgwena

QUOTE "I can give more info if interested"

I'm busy to do the same on my WD My Book World Edition I (500GB).

If possible please share your hints, tips and tricks with me.

NOTE: I'm currently busy to open the box and modify the telnet,ftp and ssh services by doing your first tip.
  #7  
Old 06-13-2007, 01:59 PM
riric n00bie, 2.7 Years
 
riric is offline
Quote:
Originally Posted by tgwena View Post
Hi,

Here is some info on the WD My Book World Edition I got recently.

This device runs an ARMv5 chip at 200MHz. It has 32MB of ram, a gigabit port (a VIA chip) and dual SATA/300. WD locked down the maching quite thoroughly, but it can be opened and I did it. You need to move the drives to another linux machine, mount them as ext3 and uncomment inetd.com and remove passwords in shadow. This part needs care because of the raid setup.

Once you telnet (or ssh) to the device you can start up other services, NFS, sftp, tftp etc... They are all installed, just not started. It even has gcc installed which is handy.

I can give more info if interested.
Hello,
I've got this NAS, and I'd like to start those daemons.
May I know your hints ?

Do you know if a DLNA function can be added on it ?

Thanks
Regards from Belgium.
Riric.
  #8  
Old 06-14-2007, 12:38 AM
chronic9 [H]ardness Supreme, 5.5 Years
 
chronic9 is offline
i too would like more details!!!
about to buy this over the weekend...
__________________
ASUS P5W DH DELUXE / Core 2 Quad Q9450 / OCZ Reaper HPC Edition 4GB
2 TB WD Green Power in my server / 80 GB x-25m G2 RAID 0
EVGA GTX 260 SC Core 216 55nm
Dell 2408wfp Rev. A02 and 1703FP in dual view
CM Wave Master Black / ENERMAX Liberty 500w PSU
Logitech Z-5500s and Bose QC2's
Dell D430
Xbox 360 Elite
  #9  
Old 06-15-2007, 03:23 AM
saian n00bie, 2.7 Years
 
saian is offline
Hi,

I've got a WD My Book World Edition I (500GB) and I've started ssh, telnet, ...
Tgwena said nearly everything but here is some more detailed info :

First some hardware info :
Microcontroller : Oxford OXE800DSE (ARM 926 processor)
RAM : Samsung K4H561638H-ZC/LB3 (256MB DDR333 RAM !?)
VIA ship : ...


What you need :
- a PC with a SATA connector and a power SATA cable.
- a linux distrib installed on it

1/ First step :
- Dismount the case and extract the HDD (I can give more info for that step)
- Connect the HDD to your PC.

2/ There is 4 partition on the HDD :
The first one for the linux OS, the second one for the swap, the third one for "/usr" (I'm not sure of that) and the forth one for the data.
You need to mount the first partition (for example : sudo mount -t ext3 /dev/sda1 /media/wd1).
cd to /media/wd1/etc/

3/ In that directory you will find the files "shadow" and "inetd.conf".
- Backup these files.
- Edit the "shadow" file (with "su" right) and remove the root password (2nd field).
The first line should now look like this "root::10933:0:99999:7:::"
- Edit the "inetd.conf" file (with "su" right) and remove all the '#'.

That's all you need to do !

4/ Remount the case and connect it to your network.

5/ Now you can access to your WD book via ssh.
Linux command line : (for example) "ssh -l user1 192.168.0.2"
(For ms windows, use Putty)
Note: "user1" is a user you have created with the WD web management interface.
Now, you can do everything you want...

Notes:
- You should set a new password for root and edit "sudoers" to add the sudo command for user1.
- The web server is lightTPD / I'm currently trying to add php5 support (I'm compiling php5 with fastcgi)
- The home directories for the users are not created. If you want to add them :
>cd /home
>su
>mkdir user1
>chown user1 user1
>chgrp user1 user1
>exit
- You can add more tools (try the bittorent client BitFlu which is in perl)...


Regards from France
PS: I hope my english is not too bad...
  #10  
Old 06-27-2007, 07:48 AM
technologickill n00bie, 2.6 Years
 
technologickill is offline
first hello to all & big thanks for the great tutorial saian.

@saian: plz post more details how to add php/apache on the mybook world when you got it ... thx for the info for now
  #11  
Old 06-27-2007, 06:01 PM
huper n00bie, 7.9 Years
 
huper is offline
Preserve the raid.

Thanks for opening the topic but yes I have a question.
Given that the WD World Edition II has two drives how do you move them to another machine and mount them?

Anyhelp would be great.
  #12  
Old 06-27-2007, 06:02 PM
c.d.e Limp Gawd, 3.5 Years
 
c.d.e is offline
Interesting. I have yet to find a cheap NAS that would do NFS, but it seems I just did

Anyone mind making an iso of the boot partion so I can look around it on my DamnSmallLinux pc?
  #13  
Old 06-28-2007, 02:33 AM
technologickill n00bie, 2.6 Years
 
technologickill is offline
@huper: more info related to that topic you find here

http://websupport.wdc.com/forum/topic.asp?TOPIC_ID=5535

best regards
  #14  
Old 06-29-2007, 03:41 AM
huper n00bie, 7.9 Years
 
huper is offline
@technologickill
Thanks man that helps alot!
  #15  
Old 07-03-2007, 11:53 AM
gers4302 n00bie, 2.6 Years
 
gers4302 is offline
Dual Drives

@huper

You have to make sure you put both drives in your linux box.

Also, you need the mdadm package installed. On Ubuntu Feisty, I had to 'sudo apt-get install mdadm'.

When you shut down and plug the two drives into the system and start up, mdadm will automatically see the drives. You then have to use /dev/md1 to access the / partition and /dev/md3 to access the /var partition.

But most importantly, you must use both drives and access them through their md interfaces, otherwise you will corrupt the drives.

Luckily WD posts the code for the OS, so I could recover, but it is easy to destroy your system.
  #16  
Old 07-31-2007, 07:51 AM
s.t.s n00bie, 2.5 Years
 
s.t.s is offline
Quote:
Originally Posted by tgwena View Post
Hi,
[snip]
You need to move the drives to another linux machine, mount them as ext3 and uncomment inetd.com and remove passwords in shadow. This part needs care because of the raid setup.
[snip]
I can give more info if interested.
Hi ... I am really interested to know if it is possible to uncomment inetd from ssh or if i absolutely have to move the drive to a linux machine. I have the 500Gb version. I have limited linux experience but using martin hinner's site I am in ssh but can't edit any files and cant seem to find a way to get files off the drive and back.

thanks guys

Sam

EDIT I:
I went back to basics and used vi (which I had never used before ) and have successfully edited the conf as described ... what does removing the shadow passwords do and what does it entail as I haven't done that yet since I am not sure exactly why and what will happen when I do.

Are there any steps I have to take to give myself full access as I don't seem to be able to navigate to the share folder from shell?

thanks again

Last edited by s.t.s; 08-01-2007 at 03:41 AM..
  #17  
Old 09-22-2007, 10:09 AM
dob3rman n00bie, 2.4 Years
 
dob3rman is offline
Anyone knows how to recover from source files?

My WB stop working, i must have done something wrong. Anyone can help me with the source files. I got them from WD website, but not sure what to do with it. I beleive it's a snapshop, but need more info on how to apply it to the World Book Edition II. I run Ubuntu.

I just need some info on how to "extract/apply" the snapshot to the HD?
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:20 PM.


Valid XHTML 1.0 Transitional

Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 2000 - 2009 KB Networks, Inc.