Problems with WD My Book Live

Asked by Mike Enoch

I'm attempting to back up to a wireless network drive, WD My Book Live.

I've mounted the drive using a sh file run at start up on Ubuntu 13.10
gvfs-mount smb://NetDrive/Public

Back in Time only writes the basic file structure and does not back up any of my files.

I'm still learning about Ubuntu so am not sure where I'm going wrong or whether you require any additional information to answer my question.

Please can you advise.

Regards

Mike Enoch
<email address hidden>

Question information

Language:
English Edit question
Status:
Solved
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Solved by:
Germar
Solved:
Last query:
Last reply:
Revision history for this message
Germar (germar) said :
#1

Hi Mike,
I would recommend you to use BIT in SSH mode with your MyBook.
I already wrote a how-to about using BackInTime with MyBook World Edition. MyBook Live is similar to that so it might work as well. Please take a look at the linked FAQ.

You will have to use the current version (1.0.28) from PPA (sudo add-apt-repository ppa:bit-team/stable && sudo apt-get update && sudo apt-get upgrade).

Don't hesitate to ask if you have problems with the FAQ.

Regards,
Germar

Revision history for this message
Germar (germar) said :
#2

Germar suggests this article as an answer to your question:
sorry, I forgot to link the FAQ page.
FAQ #2115: “How to use WesterDigital MyBook World Edition with BIT over ssh”.

Revision history for this message
Mike Enoch (mike-enoch) said :
#3

I attempted the update you sent but it was not successful as shown. I stopped at the point "-bash: /etc/init.d/S50sshd: No such file or directory". Can you assist me further?

m2@Bart:~$ ssh root@192.168.0.242
root@192.168.0.242's password:
Linux NetDrive 2.6.32.11-svn70860 #1 Thu May 17 13:32:51 PDT 2012 ppc
Disclaimer: SSH provides access to the network device and all its
content, only users with advanced computer networking and Linux experience
should enable it. Failure to understand the Linux command line interface
can result in rendering your network device inoperable, as well as allowing
unauthorized users access to your network. If you enable SSH, do not share
the root password with anyone you do not want to have direct access to all
the content on your network device.

NetDrive:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
NetDrive:~# wget http://mybookworld.wikidot.com/local--files/optware/setup-whitelight.sh
--2013-12-01 11:30:29-- http://mybookworld.wikidot.com/local--files/optware/setup-whitelight.sh
Resolving mybookworld.wikidot.com... 23.21.77.123
Connecting to mybookworld.wikidot.com|23.21.77.123|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://mybookworld.wdfiles.com/local--files/optware/setup-whitelight.sh [following]
--2013-12-01 11:30:29-- http://mybookworld.wdfiles.com/local--files/optware/setup-whitelight.sh
Resolving mybookworld.wdfiles.com... 54.235.136.166
Connecting to mybookworld.wdfiles.com|54.235.136.166|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 478 [text/plain]
Saving to: `setup-whitelight.sh'

100%[======================================>] 478 --.-K/s in 0s

2013-12-01 11:30:29 (12.6 MB/s) - `setup-whitelight.sh' saved [478/478]

NetDrive:~# sh setup-whitelight.sh
--2013-12-01 11:31:08-- http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/ipkg-opt_0.99.163-10_arm.ipk
Resolving ipkg.nslu2-linux.org... 140.211.169.161
Connecting to ipkg.nslu2-linux.org|140.211.169.161|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 73350 (72K) [text/plain]
Saving to: `ipkg-opt_0.99.163-10_arm.ipk'

100%[======================================>] 73,350 103K/s in 0.7s

2013-12-01 11:31:10 (103 KB/s) - `ipkg-opt_0.99.163-10_arm.ipk' saved [73350/73350]

./data.tar.gz
./
./opt/
./opt/bin/
./opt/bin/ipkg
./opt/bin/ipkg-opt
./opt/bin/update-alternatives
./opt/etc/
./opt/etc/ipkg.conf
./opt/lib/
./opt/lib/libipkg.so
./opt/lib/libipkg.so.0
./opt/lib/libipkg.so.0.0.0
./opt/share/
./opt/share/ipkg/
./opt/share/ipkg/intercept/
./opt/share/ipkg/intercept/depmod
./opt/share/ipkg/intercept/ldconfig
./opt/share/ipkg/intercept/update-modules
--2013-12-01 11:31:10-- http://mybookworld.wikidot.com/local--files/optware/sort_dirname.tar.gz
Resolving mybookworld.wikidot.com... 54.243.33.109
Connecting to mybookworld.wikidot.com|54.243.33.109|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://mybookworld.wdfiles.com/local--files/optware/sort_dirname.tar.gz [following]
--2013-12-01 11:31:11-- http://mybookworld.wdfiles.com/local--files/optware/sort_dirname.tar.gz
Resolving mybookworld.wdfiles.com... 54.235.136.166
Connecting to mybookworld.wdfiles.com|54.235.136.166|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 149345 (146K) [application/x-gzip]
Saving to: `sort_dirname.tar.gz'

100%[======================================>] 149,345 239K/s in 0.6s

2013-12-01 11:31:12 (239 KB/s) - `sort_dirname.tar.gz' saved [149345/149345]

usr/
usr/bin/
usr/bin/dirname
usr/bin/sort
NetDrive:~# echo 'export PATH=$PATH:/opt/bin:/opt/sbin' >> /root/.bashrc
NetDrive:~# echo 'export PATH=/opt/bin:/opt/sbin:$PATH' >> /etc/profile
NetDrive:~# echo 'PermitUserEnvironment yes' >> /etc/sshd_config
NetDrive:~# /etc/init.d/S50sshd restart
-bash: /etc/init.d/S50sshd: No such file or directory
NetDrive:~# /etc/init.d/S50sshd restart
-bash: /etc/init.d/S50sshd: No such file or directory
NetDrive:~# ls
fpkmgr_install.sh setup-whitelight.sh
ipkg-opt_0.99.163-10_arm.ipk sort_dirname.tar.gz
NetDrive:~# exit
logout
Connection to 192.168.0.242 closed.
m2@Bart:~$

Revision history for this message
Germar (germar) said :
#4

Sorry, I should have mentioned that you need to replace the URL with the one for MyBook Live from wiki. So you need to delete the changes first and start over again.
Please login to your MyBook with root and run:
rm -rf /opt
rm setup-whitelight.sh ipkg-opt_0.99.163-10_arm.ipk sort_dirname.tar.gz

Now run the command for your MB Live:
wget http://mybookworld.wikidot.com/local--files/optware/setup-mybooklive.sh
sh setup-mybooklive.sh

After that is done please run 'ls /etc/init.d/' watch out for 'sshd' init script and restart that (e.g. '/etc/init.d/S65sshd restart').
Finally proceed with the FAQ at '/opt/bin/ipkg install bash coreutils rsync nano'

Revision history for this message
Mike Enoch (mike-enoch) said :
#5

Thanks very much for the quick reply. Sorry to trouble you again but I have the same problem as before:

m2@Bart:~$ ssh root@192.168.0.242
root@192.168.0.242's password:
Linux NetDrive 2.6.32.11-svn70860 #1 Thu May 17 13:32:51 PDT 2012 ppc
Disclaimer: SSH provides access to the network device and all its
content, only users with advanced computer networking and Linux experience
should enable it. Failure to understand the Linux command line interface
can result in rendering your network device inoperable, as well as allowing
unauthorized users access to your network. If you enable SSH, do not share
the root password with anyone you do not want to have direct access to all
the content on your network device.

NetDrive:~# rm -rf /opt
NetDrive:~# rm setup-whitelight.sh ipkg-opt_0.99.163-10_arm.ipk sort_dirname.tar.gz
rm: remove regular file `setup-whitelight.sh'? y
rm: remove regular file `ipkg-opt_0.99.163-10_arm.ipk'? y
rm: remove regular file `sort_dirname.tar.gz'? y
NetDrive:~# wget http://mybookworld.wikidot.com/local--files/optware/setup-mybooklive.sh
--2013-12-01 13:17:58-- http://mybookworld.wikidot.com/local--files/optware/setup-mybooklive.sh
Resolving mybookworld.wikidot.com... 184.73.189.214
Connecting to mybookworld.wikidot.com|184.73.189.214|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://mybookworld.wdfiles.com/local--files/optware/setup-mybooklive.sh [following]
--2013-12-01 13:17:58-- http://mybookworld.wdfiles.com/local--files/optware/setup-mybooklive.sh
Resolving mybookworld.wdfiles.com... 54.235.108.105
Connecting to mybookworld.wdfiles.com|54.235.108.105|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 429 [text/plain]
Saving to: `setup-mybooklive.sh'

100%[======================================>] 429 --.-K/s in 0s

2013-12-01 13:17:59 (14.9 MB/s) - `setup-mybooklive.sh' saved [429/429]

NetDrive:~# sh setup-mybooklive.sh
--2013-12-01 13:18:18-- http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/stable//ipkg-opt_0.99.163-10_powerpc.ipk
Resolving ipkg.nslu2-linux.org... 140.211.169.161
Connecting to ipkg.nslu2-linux.org|140.211.169.161|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 82197 (80K) [text/plain]
Saving to: `ipkg-opt_0.99.163-10_powerpc.ipk'

100%[======================================>] 82,197 116K/s in 0.7s

2013-12-01 13:18:19 (116 KB/s) - `ipkg-opt_0.99.163-10_powerpc.ipk' saved [82197/82197]

./data.tar.gz
./
./opt/
./opt/bin/
./opt/bin/ipkg
./opt/bin/ipkg-opt
./opt/bin/update-alternatives
./opt/etc/
./opt/etc/ipkg.conf
./opt/lib/
./opt/lib/libipkg.so
./opt/lib/libipkg.so.0
./opt/lib/libipkg.so.0.0.0
./opt/share/
./opt/share/ipkg/
./opt/share/ipkg/intercept/
./opt/share/ipkg/intercept/depmod
./opt/share/ipkg/intercept/ldconfig
./opt/share/ipkg/intercept/update-modules
NetDrive:~# ls /etc/init.d/
README mountDataVolume.sh sendsigs
access mountall-bootclean.sh single
apache2 mountall.sh skeleton
apache2.ori mountdevsubfs.sh smartmontools
avahi-daemon mountkernfs.sh ssh
bootlogd mountnfs-bootclean.sh stop-bootlogd
bootmisc.sh mountnfs.sh stop-bootlogd-single
checkfs.sh mountoverflowtmp sudo
checkroot.sh mtab.sh sysstat
cron netatalk udev
dbus networking udev-mtab
emi-patch-check.sh nfs-common umountfs
forked-daapd nfs-kernel-server umountnfs.sh
halt ntpdate umountroot
hdparm openvpn upnp_nas
hostname.sh orion urandom
hwclock.sh portmap vftd
hwclockfirst.sh procps vsftpd
ifplugd purgelogs.sh wdAdminEntry
ifupdown ramlog wdAdminFinalize
ifupdown-clean rc wdAppEntry
itunes rcS wdAppFinalize
killprocs reboot wdEmergencyEntry
lltd reset_button_mon wdEmergencyFinalize
mDNSResponder restoreSettings.sh wdInitEntry
mdadm rmnologin wdInitFinalize
mdadm-raid rsync wdPreBoot.sh
module-init-tools rsyslog wdVftEntry
monitorTemperature samba wdVftFinalize
monitorio saveclock.sh x11-common
NetDrive:~# /etc/init.d/S50sshd restart
-bash: /etc/init.d/S50sshd: No such file or directory
NetDrive:~#

Thanks once again.

Revision history for this message
Best Germar (germar) said :
#6

No worries. I'm happy to help with this.
Please run '/etc/init.d/ssh restart' and proceed with the FAQ.

Revision history for this message
Mike Enoch (mike-enoch) said :
#8

Thanks Germar, that solved my question.

Revision history for this message
BR (rocks-brendan) said :
#9

Hey there! I'm trying do do the same thing as the OP, but have run into different problems. Disclaimer: I'm a complete Linux novice.

All of the adapted instructions have worked for me as described, up to step 3, logging in as the <REMOTE_USER> (remote_user, in my case). Here, my password is refused. I've tried repeating the instructions with a new remote user with no password, but just hitting enter wasn't accepted.

The only differences have been that I ran ipkg update to find the packages, and my passwd file looked slightly different (I changed the path(s), but not the preceding parameters)

Here's the line I changed:
remote_user:x:1000:1000:remote,2,,:/shares/remote_user:opt/bin/bash

Any ideas on what's gone wrong? I can post console spew if it's helpful, and I haven't put anything on the drive yet, so starting from scratch is possible...

Revision history for this message
Germar (germar) said :
#10

You missed / in /opt/bin/bash. Your passwd line should look like this:
remote_user:x:1000:1000:remote,2,,:/shares/remote_user:/opt/bin/bash

Revision history for this message
BR (rocks-brendan) said :
#11

Thanks so much for your quick response! I've corrected my foolish mistake, and saved the file, but I'm afraid it hasn't solved the login problem.

Revision history for this message
Germar (germar) said :
#12

please post output of 'ssh -v remote_user@<MYBOOK_IP>'

Revision history for this message
BR (rocks-brendan) said :
#13

br@br-ThinkPad-T410:~$ ssh -v remote_user@192.168.0.6
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.0.6 [192.168.0.6] port 22.
debug1: Connection established.
debug1: identity file /home/br/.ssh/id_rsa type -1
debug1: identity file /home/br/.ssh/id_rsa-cert type -1
debug1: identity file /home/br/.ssh/id_dsa type -1
debug1: identity file /home/br/.ssh/id_dsa-cert type -1
debug1: identity file /home/br/.ssh/id_ecdsa type -1
debug1: identity file /home/br/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-5
debug1: match: OpenSSH_5.1p1 Debian-5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 37:75:0e:15:12:78:30:55:11:fb:9b:aa:21:b4:df:05
debug1: Host '192.168.0.6' is known and matches the RSA host key.
debug1: Found key in /home/br/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/br/.ssh/id_rsa
debug1: Trying private key: /home/br/.ssh/id_dsa
debug1: Trying private key: /home/br/.ssh/id_ecdsa
debug1: Next authentication method: password
remote_user@192.168.0.6's password:

Revision history for this message
Germar (germar) said :
#14

This looks good so far. What happened after you type in your password?

You can reset your password with:
ssh root@192.168.0.6 #welc0me for password
passwd remote_user #type password twice
exit

Revision history for this message
BR (rocks-brendan) said :
#15

When I enter the password I just get permission denied:

remote_user@192.168.0.6's password:
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.

Just tried resetting the password, but that doesn't seem to work either:

MyBookLive:~# passwd remote_user
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
MyBookLive:~# exit
logout
Connection to 192.168.0.6 closed.
br@br-ThinkPad-T410:~$ ssh remote_user@192.168.0.6
remote_user@192.168.0.6's password:
Permission denied, please try again.
remote_user@192.168.0.6's password:
Permission denied, please try again.
remote_user@192.168.0.6's password:
Permission denied (publickey,password).
br@br-ThinkPad-T410:~$

Revision history for this message
BR (rocks-brendan) said :
#16

Some additional clues from poking around...

Here's an example of a successful root login and an unsuccessful remote_user login, taken from /opt/bin/nano /var/log/sshd.log:

Dec 23 15:40:50 MyBookLive sshd[5634]: Accepted password for root from 192.168.0.2 port 47851 ssh2
Dec 23 15:40:50 MyBookLive sshd[5639]: lastlog_filetype: Couldn't stat /var/log/lastlog: No such file or directory
Dec 23 15:40:50 MyBookLive sshd[5639]: lastlog_openseek: /var/log/lastlog is not a file or directory!
Dec 23 15:40:50 MyBookLive sshd[5639]: lastlog_filetype: Couldn't stat /var/log/lastlog: No such file or directory
Dec 23 15:40:50 MyBookLive sshd[5639]: lastlog_openseek: /var/log/lastlog is not a file or directory!
Dec 23 15:40:53 MyBookLive sshd[5634]: Received disconnect from 192.168.0.2: 11: disconnected by user
Dec 23 15:40:56 MyBookLive sshd[5681]: User remote_user from 192.168.0.2 not allowed because not listed in AllowUsers
Dec 23 15:40:56 MyBookLive sshd[5681]: Failed none for invalid user remote_user from 192.168.0.2 port 47854 ssh2
Dec 23 15:41:01 MyBookLive sshd[5681]: Failed password for invalid user remote_user from 192.168.0.2 port 47854 ssh2

Following up on the Allow users message, I added a few lines to /etc/sshd_config:

PermitUserEnvironment yes
PermitUserEnvironment yes
PermitUserEnvironment yes
PermitUserEnvironment yes
PermitUserEnvironment yes
PermitUserEnvironment yes

# Added by BR 2013-12-23
PasswordAuthentication yes
PermitRootLogin yes
PubkeyAuthentication yes
# AuthorizedKeysFile .ssh/authorized_keys
AllowUsers root remote_user

But, it hasn't helped :(

Revision history for this message
Germar (germar) said :
#17

Did you reboot your MyBook or run '/etc/init.d/ssh restart' after adding remote_user to AllowUsers?

Revision history for this message
BR (rocks-brendan) said :
#18

Just tried both, no dice.

I did notice that on my ThinkPad, 'ssh-add -l' didn't return a key, so I've set one up, but unfortunately that hasn't made a difference either.

Revision history for this message
Germar (germar) said :
#19

Sorry, I can't help on this as I only have a MB World Edition. It should work like this but there might be other problems. Please ask in WD MyBook forum for help about ssh remote_user login and come back here when you're done.