“Customizing” WD MyBook World – external network hdd

Western Digital MyBook World is an external network disk (possible terabytes and RAID).
Good thing about it is: It runs linux, so it can be “customized” heavily. By default it runs Samba, Custom Web Admin tool, and some mionet garbage (to share files over net)
Let the device be connected and has its IP.

Hint: assign it some short hostname (eg. ‘hd’) to the ip in /etc/hosts

Buildit Webapp access
http://hd/ (basic auth)
– do basic configuration
– I prefer to use static IP

SSH access
Use Martin Hinner “patch”

Hints: After the hack change the root pwd to non-empty. Add public key /root/.ssh/authorized_keys. Turn off mionet processes /etc/init.d/mionet.sh. Nobody needs them.

– Windows: don’t install anything, you can map it as network drive
– Ubuntu: auto detection – Network Servers

mounting (on Ubuntu):
– install smbclient
– (check available paths: net share -I <mybook_ip> (pwd from web gui))
sudo mount //hd/public /home/user/mnt/storage -o username=XXX,password=YYY,dmask=777,fmask=777

More UNIX ways:
– create your own USER
– create a directory in /shares/internal
e.g. /shares/internal/user, chown root:www-data chmod 770

HTTP Server
The box already runs lighthttpd. The following lets you access the content via Web.

1. ln -s /shares/internal/PUBLIC /usr/www/lib/
2. in /etc/lighttpd/lighttpd.conf add
dir-listing.activate = "enable"
3. /etc/init.d/lighttpd.sh restart

(can do the same for PUBLIC)

Of course you can transfer files using scp.

You can mount the disk as filesystem using sshfs.
sudo sshfs user@hd:/shared/internal/user hd/ -o allow_other
Hint: Cannot chmod target file in MC? Turn off “preserve attributes” in the copy dialog.

Follow mybookworld nfs-server howto.
I did not try myself.

a) rsync works using ssh transport (slow transfer)
b) Install rsync server (recommended, can go upto 5MB/s)
1. /etc/services < — rsync 873/tcp
2. /etc/inetd.conf < rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon
3. kill -HUP /usr/sbin/inetd
4. configure /etc/rsyncd.conf and add your modules, eg:

      motd file /etc/rsync-motd
      log file = /var/log/rsyncd.log
        comment = "My private"
        path = /shared/internal/user
        read only = no
        uid = user
        gid = www-data
        list = yes

rsync hd:: – list all listable modules
rsync -av .mozilla-thunderbird hd::user – example of mails backup

Link hubs:

Leave a Reply

Your email address will not be published. Required fields are marked *