How can I recover /usr/bin/ldconfig?
Forum » Forum / Backup & Recovery » How can I recover /usr/bin/ldconfig?
started by: murrayfmurrayf
on: 1215047368|%e %b %Y, %H:%M %Z|agohover
number of posts: 14
rss icon RSS: new posts
summary:
this file is not provided by any package in gumstix cross unstable repo (recommended for mbw). Is there any way to get it?
How can I recover /usr/bin/ldconfig?
murrayfmurrayf 1215047368|%e %b %Y, %H:%M %Z|agohover

I made the mistake of deleting /usr/bin/ldconfig and now some new installed packages doesn't load (missing libraries or similar). I had browsed other nslu2 .ipk's repos and this file is only available installing libc6 package, but libc6 is not provided by gumstix/cross/unstable repo (recommended for mbw) and using ipkg whatprovides flag shows me no result…

I don't think total system recovery is necessary in this case. Can someone help me?

… Or would be a solution to send me an email with the original mybookworld /usr/bin/ldconfig file attached?
murrayf07 AT yahoo DOT es
Thanks a lot…
Alberto.
:)

unfold How can I recover /usr/bin/ldconfig? by murrayfmurrayf, 1215047368|%e %b %Y, %H:%M %Z|agohover
Re: How can I recover /usr/bin/ldconfig?
murrayfmurrayf 1215293645|%e %b %Y, %H:%M %Z|agohover

Hi again,

… ldconfig is in /sbin, not /usr/bin, maybe in /sbin is there another file called ldconfig.real, attach it too pls.

Thx.

Alberto.

murrayf07 AT yahoo DOT es

:)

unfold Re: How can I recover /usr/bin/ldconfig? by murrayfmurrayf, 1215293645|%e %b %Y, %H:%M %Z|agohover
Re: How can I recover /usr/bin/ldconfig?
murrayfmurrayf 1215384770|%e %b %Y, %H:%M %Z|agohover

as a friend of this forum told me, I have upgraded to 2.0.0.18 firmware, (this way root partition is recovered totally and /shares/internal keeps untouched), I can see mybookworld web interface in firefox and detects the upgrade but if I want to move on options a logging message requests me nas admin and password, I don't know how can I log, What user and password must I use?

Thanks,

Alberto.

:)

unfold Re: How can I recover /usr/bin/ldconfig? by murrayfmurrayf, 1215384770|%e %b %Y, %H:%M %Z|agohover
Re: How can I recover /usr/bin/ldconfig?
fraterfrater 1215399067|%e %b %Y, %H:%M %Z|agohover

You have once entered a password when you installed your WB
I think it's still the same.
Try to use admin / 123456
If it is 123456, please post this on the forum. If not, please post it as well….

You should now start the recovery of your admin password:

recovery process:

turn off the WDWB
press the recovery button and keep it pressed.
turn on the WDWB
keep the recovery button pressed for about 40 seconds….

login to the webinterface with admin / 123456

last edited on 1215399276|%e %b %Y, %H:%M %Z|agohover by frater + show more
unfold Re: How can I recover /usr/bin/ldconfig? by fraterfrater, 1215399067|%e %b %Y, %H:%M %Z|agohover
firmware 2.00.18 upgrade
murrayfmurrayf 1215441846|%e %b %Y, %H:%M %Z|agohover

now firmware is correctly upgraded to 2.00.18 via /usr/www/nbin/getandapplyfw.sh and link providing file *2.00.18.wdg using wget. Web interface and samba and are enabled again, admin user web interface logging is also succesfully reseted using above instructions and keeping power button always pressed, but ssh access is not available…

I've proved 2 links providing 2 methods of enabling ssh described in http://mybookworld.wikidot.com/first-steps-with-mbwe, but error message "no firmware available" appears. My firmware is yet upgraded and I only need to enable ssh access to mbw, I have tried to bind mbw's ip in my ubuntu host /etc/ssh/sshd_config, but no luck. How should I do it?

unfold firmware 2.00.18 upgrade by murrayfmurrayf, 1215441846|%e %b %Y, %H:%M %Z|agohover
Re: firmware 2.00.18 upgrade
fraterfrater 1215464720|%e %b %Y, %H:%M %Z|agohover

Did you follow these instructions?
http://mybookworld.wikidot.com/forum/t-67462/enable-ssh-on-your-new-wd-mybook

unfold Re: firmware 2.00.18 upgrade by fraterfrater, 1215464720|%e %b %Y, %H:%M %Z|agohover
Re: firmware 2.00.18 upgrade
murrayfmurrayf 1215470910|%e %b %Y, %H:%M %Z|agohover

Hi frater,

According to the howto I can do everything until applying martin's firmware link, error "no firmware available" appears, anyway the latest firmware is yet applied by executing /usr/www/nbin/getandapplyfw.sh before to reseting the disk pressing the recovery button as you told me, the only thing I need is enabling ssh in mybookworld…

I cannot log into mbw using ssh using root, ROOT, WORLDBOOK (I've created it) or whatever, port 22, connection refused

I have downloaded martin's hinner script (http://martin.hinner.info/mybook/files/latestfw.sh) and this is what it does:

echo '#!/bin/sh' >/var/upgrade/upgrade1.sh
chmod 755 /var/upgrade/upgrade1.sh

KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh_host_key
RSA_KEY=/etc/ssh_host_rsa_key
DSA_KEY=/etc/ssh_host_dsa_key

do_rsa1_keygen() {
if [ ! -s $RSA1_KEY ]; then
echo -n $"Generating SSH1 RSA host key: "
if $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
chmod 600 $RSA1_KEY
chmod 644 $RSA1_KEY.pub
echo
else
echo
exit 1
fi
fi
}

do_rsa_keygen() {
if [ ! -s $RSA_KEY ]; then
echo -n $"Generating SSH2 RSA host key: "
if $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
chmod 600 $RSA_KEY
chmod 644 $RSA_KEY.pub
echo
else
echo
exit 1
fi
fi
}

do_rsa1_keygen
do_rsa_keygen

/usr/bin/passwd -d root

/usr/sbin/sshd &

rm -f /tmp/active_upgrade

exit 0

Any ideas to enable ssh access on myworldbook?

Thanks.

unfold Re: firmware 2.00.18 upgrade by murrayfmurrayf, 1215470910|%e %b %Y, %H:%M %Z|agohover
Re: firmware 2.00.18 upgrade
alephsmithalephsmith 1215475697|%e %b %Y, %H:%M %Z|agohover

connection refused

Means that the ssh daemon isn't started i.e. the hack has no been applied. The line in Martin's script is /usr/sbin/sshd.
Have you actually tried the other hack? On the FAQ page for that hack there is the following:

Q: No New Firmware Available.
A: "No new firmware available" is caused by the failure of MyBook to fetch the upgrade script. Try to reboot MyBook and run the firmware upgrade process again.

Also you may like to try enabling telnet instead if you have no luck with ssh.

unfold Re: firmware 2.00.18 upgrade by alephsmithalephsmith, 1215475697|%e %b %Y, %H:%M %Z|agohover
Re: firmware 2.00.18 upgrade (no ssh access)
murrayfmurrayf 1215712361|%e %b %Y, %H:%M %Z|agohover

… no ssh, no telnet, but samba at PUBLIC folder, this is my situation. The main problem of not accessing via ssh is I cannot install software via optware packages and this is a shame!

When I put on my firefox the urls of many links to various types of firmware providing ssh or telnet I always get the same result (no firmware available). I upgraded to 2.0.18 firmware via /usr/www/nbin/getandapplyfw 2.0.18.wdg, but this upgrade does not include ssh or telnet access to mybookworld… Then, I'm thinking about to use the recovery button again, But I'm afraid of not accessing after that to web interface to load martin's hinner firmware, maybe I should try this…

Other possibility is to use a fat32.exe app provided by wd in its website, but I suppose it would format all the disk (Including /shares/internal) and I don't want to.

What do you think is the best solution?

unfold Re: firmware 2.00.18 upgrade (no ssh access) by murrayfmurrayf, 1215712361|%e %b %Y, %H:%M %Z|agohover
Re: firmware 2.00.18 upgrade (no ssh access)
TeinturManTeinturMan 1215718583|%e %b %Y, %H:%M %Z|agohover

Have you tried the other method?
http://www.mybook-linux.co.nr/sshaccess.html
This is the recommended one, as it is safer, lighter and less people have problem with that one comparing to Martin's hack…

Have you tried with internet explorer instead of firefox?

Could you also confirm the exact url you are using to launch the Firmware Hack? sure there is no mistake in the url?

unfold Re: firmware 2.00.18 upgrade (no ssh access) by TeinturManTeinturMan, 1215718583|%e %b %Y, %H:%M %Z|agohover
Re: firmware 2.00.18 upgrade (no ssh access)
murrayfmurrayf 1215726956|%e %b %Y, %H:%M %Z|agohover

Hi Teintur,

Besides the link you recommends me I've tried http://<IP-OF-MY-MYBOOK>/auth/firmware_upgrade.pl?fwserver=martin.hinner.info/mybook/firmware.php

Methods 1 and 2 of first steps of this wiki…

To upgrade to 2.00.18 I executed a script located at /usr/www/nbin called getandapplyfw.sh url_to_file—>2.0.18.wdg

I think the fw was installed correctly but ssh and telnet services was not enabled in my bookworld. Probably because this firmware doesn't do that…

I tried to succesfully reset the disk by pressing recovery button at the back but the firmware that I installed remains.

Can I uninstall, downgrade or delete this firmware I installed to replace it with one of the the links above?

unfold Re: firmware 2.00.18 upgrade (no ssh access) by murrayfmurrayf, 1215726956|%e %b %Y, %H:%M %Z|agohover
Re: firmware 2.00.18 upgrade (no ssh access)
TeinturManTeinturMan 1215755085|%e %b %Y, %H:%M %Z|agohover

When you install a firmware, everything on the system is Wiped and replaced with a new system.
All the Hacks you may have done before your Firmware upgrade have been deleted…including the Martin hinner's hack.

==> You need to RE-enable ssh.
==> i recommend this link : http://www.mybook-linux.co.nr/sshaccess.html instead of Martin's hinner's.
==> is there an error message while you try the "ssh hack" firmware upgrade? or do you have a "connection refused" when you try to connect using ssh?

Note that
- with Martin Hinners, root user has a blank password and cannot be used to ssh into the Mybook.
- with the other method, user is root, passord root.
- using the 2.00.18 firmware, user must be entered in Uppercase while connecting to ssh.

Resetting the disk will not help in getting access via ssh : this will reenforce the admin password of the Standard Web interface to 123456.

unfold Re: firmware 2.00.18 upgrade (no ssh access) by TeinturManTeinturMan, 1215755085|%e %b %Y, %H:%M %Z|agohover
Re: firmware 2.00.18 upgrade (no ssh access)
murrayfmurrayf 1216159880|%e %b %Y, %H:%M %Z|agohover

Hi again,

I've been probing with the links provided in this wiki and there is no way to enable ssh or telnet in my mybookworld (always connection refused), I don't know why, because this links works perfectly. I tried to use other browsers and always the same result "no firmware available" or "the disk is active, stop sharing tasks and try again"…

I have also extracted the first original partition of a generic mbw containing the root filesystem and perhaps there is some way to make it work as the other partition (which I have no damaged, but no ssh access to)

Samba works perfectly and I can browse everything under PUBLIC, cifs protocol lets me mount the same folder too.

The installed firmware is 2.0.18, and I would like to install ushare for streaming, but I cannot compile it due to a c compiler error (cannot create executables) installing library dependencies…

HELP PLEASE!!!

unfold Re: firmware 2.00.18 upgrade (no ssh access) by murrayfmurrayf, 1216159880|%e %b %Y, %H:%M %Z|agohover
firmware 2.0.18 upgrade (no ssh access) [SOLVED]
murrayfmurrayf 1216381902|%e %b %Y, %H:%M %Z|agohover

yes, I succesfully enabled ssh access, reseting the disk pressing with a clip in a little hole at the back of the disk…

first, turn off mybookworld, start pressing and hold on aproximately for 40 seconds while you turn on the disk and it's booting (thanks frater), then you can access via web interface (the ip may change): user:admin password=123456 Now reconfigure network parameters (I did it because maybe have wrong dns values) and apply links for enabling ssh/telnet supplied in this wiki (sections first steps and hacks & tutorials)

Thank you all for your help…

:)

unfold firmware 2.0.18 upgrade (no ssh access) [SOLVED] by murrayfmurrayf, 1216381902|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License