Author Topic: Install On Sd Card - Libraries  (Read 2796 times)

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
Install On Sd Card - Libraries
« on: February 18, 2006, 03:53:39 am »
anyone an idea, what happened here:

i installed kopi to "/mnt/ext" where the second partition (ext3) of my sd card is mounted, this partition is automatically mounted during startup (i modified /etc/sdcard/sd_mem_ctrl by simply adding "mount /dev/mmcda2" and correspondent entry in fstab, which works fine)

kopi runs fine until i reboot by "init 6", after that zaurus doesn't find shared libraries when calling "kopi" (e.g. "libmicrokdepim.so.1")

what i did:

ln -s libmicrokdepim.so libmicrokdepim.so.1 (in /usr/lib/qt/lib) (for the other libraries as well..)
and
ldconfig

which works fine until i do the next reboot, it's not only that i have to manually run ldconfig but also my self-made symlinks are GONE!

so my questions:

1- why are those symlinks automatically deleted and how can i prevent this?
2- is there a way so that i don't have to manually run ldconfig? (before running ldconfig zaurus doesn't find shared libraries for other apps installed on sd as well) (i'm thinking of making an "ldconfig"-entry in some script, but what would be the "natural" script for that? something in the init-V-process or xinitrc? is there a "smoother" way than this?)

regards
seb
« Last Edit: February 18, 2006, 04:24:47 am by Seb »

merli

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
Install On Sd Card - Libraries
« Reply #1 on: February 18, 2006, 09:39:26 am »
Quote
anyone an idea, what happened here:

i installed kopi to "/mnt/ext" where the second partition (ext3) of my sd card is mounted, this partition is automatically mounted during startup (i modified /etc/sdcard/sd_mem_ctrl by simply adding "mount /dev/mmcda2" and correspondent entry in fstab, which works fine)

kopi runs fine until i reboot by "init 6", after that zaurus doesn't find shared libraries when calling "kopi" (e.g. "libmicrokdepim.so.1")

what i did:

ln -s libmicrokdepim.so libmicrokdepim.so.1 (in /usr/lib/qt/lib) (for the other libraries as well..)
and
ldconfig

which works fine until i do the next reboot, it's not only that i have to manually run ldconfig but also my self-made symlinks are GONE!

so my questions:

1- why are those symlinks automatically deleted and how can i prevent this?
2- is there a way so that i don't have to manually run ldconfig? (before running ldconfig zaurus doesn't find shared libraries for other apps installed on sd as well) (i'm thinking of making an "ldconfig"-entry in some script, but what would be the "natural" script for that? something in the init-V-process or xinitrc? is there a "smoother" way than this?)

regards
seb
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115217\"][{POST_SNAPBACK}][/a][/div]

I have exactly same problem with almost all libraries installed in /mnt/user. Some links are allways missing after reboot. I willl reflash and repartition nand flash and will install all libraries to root.
merli
------
SL-C1000 - pdaxii13 5.3.3 but considering go back to beta1
Wifi D-link DCF-650W CF card - not using
bluetooth Billionton BT CF card and Samsung SGH-i310 GPRS
Pretec Cheetah 133x 4GB SD, Pretec Cheetah 80x 1GB CF

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
Install On Sd Card - Libraries
« Reply #2 on: February 18, 2006, 10:30:48 am »
i tried a workaround which is as follows:

created a "lib"-folder on sd-card, and amended /etc/ld.so.conf accordingly
in the startup script for sd card mount (sd_mem_ctrl) i added "ldconfig" after mounting

this is not THAT nice but it works

it follows at least the following logic:
if your sd card is not in the slot you don't need the libraries for the programs installed there
if you insert the card ldconfig has to take care of these libraries

but i'd still like to know why these d... libraries disappear

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Install On Sd Card - Libraries
« Reply #3 on: February 19, 2006, 02:09:43 pm »
Quote
but i'd still like to know why these d... libraries disappear
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115234\"][{POST_SNAPBACK}][/a][/div]

I'm not 100% on this, but I think that all symlinks are supposed to disappear at shutdown and are recreated on startup. Because your second partition is not standard, you would have to run ipkg-link (and ldconfig it seems) at startup somewhere after your extra entry to mount the partition (which doesn't happen automatically either).

The wonders of removable media I guess...
SL6000-L, RC12