Discussion in 'Cisco/Linksys Network Storage Devices' started by bwolff, Jan 4, 2011.

  1. bwolff

    bwolff Networkin' Nut Member

    i screwed up :frown::frown::frown::frown:

    while playing with my nas, trying to update some libs I've changed the libc.so.6 link to a newer version of the lib. As I'm a newbie in linux, i didn't know that it could mean doom day to my nas...

    if someone could help me or at least answer to the following questions i would be glad:halo::halo:

    so... 1st of all, i've my nas still on, running UFS200, i've changed the link of libc.so.6 from the original to a newer one (bad bad bad thing to do :< ) but i still have the original at place.

    1st question: is there any solution?
    2nd question: if i restart it, it will run or it will be dead to the worl?
    3rd question: if i restart without ufs200, will that file be restored?
    4rd question: if i flash the firmware again from the upgrade section it will be ok?
    ... (you can add more questions followed by any answer you may have, or only the answers)

    thanks :smile::frown::frown::frown::frown::frown::frown::frown::frown::frown:
  2. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    As far as I understand, UFS200 runs from USB media via the /init script of Jac4. If you restart the NAS without the USB plugged in, you will be running Jac4; once it's up and running you can plug in the USB media that you use for UFS200 and log in through SSH to mount it (if necessary) and undo whatever you did. Then you can reboot with the USB media inserted (use /etc/rc.d/rc.reboot) and you should be up and running again!

  3. bwolff

    bwolff Networkin' Nut Member

    indeed it worked... it simply replaced the wrong files for new upon restart without ufs200

    thnks for the answer
  4. bwolff

    bwolff Networkin' Nut Member

    by the way... i've been searching in the forum and is said that you have a way to change the lib path so you can run your own version... the problem is that i can't find where you do that... can you give a clue of where you do that? :halo::halo:
  5. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    I just posted a thread earlier this week about running an updated Twonky server, and there is also a thread about running Jungle Disk Server Edition. Both programs require updated libraries.

    The solution is to start the problematic programs using the command: /path/to/updated/ld-linux.so.2 --library-path=/dir/of/updated/libraries /path/to/program --parameters --for --program

    There are other ways to do it too, for example you can copy the root filesystem (that you can mount from /dev/rom1) to another location, update it there and chroot or pivot_root into it. The /init script from Jac4 will automatically find the chroot in some cases (read the script to find out more). The UFS200 uses this.

    You can even start a different kernel using kexec, but while Jac4 supports this it doesn't do it automatically.

  6. bwolff

    bwolff Networkin' Nut Member

    i'd seen that but i misunderstood it... my bad...

    finally I managed to make it work using that dynamic loader... thanks for the help :)

    If someone would like to have uTorrent running on the nas and need some help i'm available:)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice