Author Topic: Symliniks Disappearing?  (Read 4353 times)

HeavyWeaponDude

  • Newbie
  • *
  • Posts: 37
    • View Profile
Symliniks Disappearing?
« on: March 14, 2006, 12:21:18 pm »
I am lately experiencing an odd problem.

For some undetermined reasons, symlinks tend to disappear randomly from my /usr/lib/ directory. Always the same ones, I am using hentges ROM, and when it happens always the same apps don't work anymore: opiemail, qpdf, konqueror, xmms, several games and some other apps. I've tried to launch the non-working apps from the console, they point to missing libraries (some of them being on /media/card/usr/lib and some on /usr/lib, but with different names). If I re-link the libs manually, things got back to working.

This problem has occoured me four times in the last week, even if I don't do nothing. One time I just suspended the Z, and when I powered it back again, the symlinks were puff. It's strange also because everything was working fine lately, then this problem shows up, and even after several re-flashing it does come back (usually before I am able to finish my installation and setup all my hardware and favorite apps).

Using ipkg-link mount /media/card does not help: the broken link are repaired, but the working one are messed up (and xmms got especially messed).
Manual linking does work pretty well, except that is time consuming and I am unable to get opiemail back to work. It just says: : QuickLauncher invoked as: opiemail

Since this same problem is coming every time but completly at random I am starting to think about a flash memory physical problem. May that be the issue? How to check it out? I know about the existence of service menus, but don't know how to call them on the SL-5500. I also know they may be dangerous. Any suggestion about this?
Or am I moving completly to the wrong direction?

Thanks for any help!
Zaurus SL-5500
OpenZaurus 3.5.3 + Opie 1.2 (Hentges ROM T3)

Storm

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • http://
Symliniks Disappearing?
« Reply #1 on: March 14, 2006, 12:34:12 pm »
Quote
I am lately experiencing an odd problem.

For some undetermined reasons, symlinks tend to disappear randomly from my /usr/lib/ directory. Always the same ones, I am using hentges ROM, and when it happens always the same apps don't work anymore: opiemail, qpdf, konqueror, xmms, several games and some other apps. I've tried to launch the non-working apps from the console, they point to missing libraries (some of them being on /media/card/usr/lib and some on /usr/lib, but with different names). If I re-link the libs manually, things got back to working.

This problem has occoured me four times in the last week, even if I don't do nothing. One time I just suspended the Z, and when I powered it back again, the symlinks were puff. It's strange also because everything was working fine lately, then this problem shows up, and even after several re-flashing it does come back (usually before I am able to finish my installation and setup all my hardware and favorite apps).

Since this same problem is coming every time but completly at random I am starting to think about a flash memory physical problem. May that be the issue? How to check it out? I know about the existence of service menus, but don't know how to call them on the SL-5500. I also know they may be dangerous. Any suggestion about this?
Or am I moving completly to the wrong direction?

Thanks for any help!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=118538\"][{POST_SNAPBACK}][/a][/div]

I don't know that it is a hardware problem, but I have seen something similar, in that my settings for usbd0 are getting reset at random intervals. Since I have not set up a dhcp server on my laptop to assign it an address, I manually set it in the Network app. Several times now, I have seen it reset itself from the manual settings (which included automatically bring up and the network settings) to automatically bring up unchecked and dhcp checked. I have only noticed this phenomenon since upgrading to the latest Hentges (based on OZ 3.5.4rc and Opie 1.2.1).

I was going to post about this yesterday, but ran out of time.

--Storm
« Last Edit: March 14, 2006, 12:35:45 pm by Storm »
Zaurus SL-5500/Hentges OZ 3.5.4.1
Ambicom WL1100-CF wireless card
Desktop: Debian/GNU Linux (unstable)

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Symliniks Disappearing?
« Reply #2 on: March 14, 2006, 01:39:18 pm »
Something to consider: We run ldconfig on every startup. When ldconfig encounters symlinks pointing to non-existing locations (i.e. media which aren't mounted yet), they'll get removed.

To fix this, ldconfig should be run after mount -a.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

arniel

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Symliniks Disappearing?
« Reply #3 on: March 15, 2006, 04:50:03 am »
I've had a similar problem recently, first noticed it when xmms stopped loading.
Also, I could only get mplayer running in a terminal window if the current directory was /media/card/usr/lib.  Had to reinstall cardf to get it running, as I'm not knowledgable enough to ling the libraries to the right locations.  It looked like the whole /media/card/usr/lib directory had not been linked correctly.  How can I check this in future?

Arnie

HeavyWeaponDude

  • Newbie
  • *
  • Posts: 37
    • View Profile
Symliniks Disappearing?
« Reply #4 on: March 15, 2006, 09:22:15 am »
Thank you Mickeyl, you definetly pointed the right direction
A simple:
      ldconfig /media/card/usr/lib
fixes all the problems.

Even better, adding the following line:
      /media/card/usr/lib
to the file /etc/ld.so.conf assures the libraries are linked at each boot properly.

The only thing I am wondering about is why sometimes during the boot process the SD was not recognized properly, and then created this issue.
Zaurus SL-5500
OpenZaurus 3.5.3 + Opie 1.2 (Hentges ROM T3)