Author Topic: Software installed on SD disappears after reboot.  (Read 5839 times)

diesel1

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.diesel1.demon.co.uk
Software installed on SD disappears after reboot.
« on: August 12, 2004, 01:59:02 pm »
Hello

I am running pdaxrom on C860, I have installed lots of software to SD,  This works fine for days or weeks at a time.  But sometimes after a reboot programs complain about missing dependencies, all files are still there but not seen.  I can see them in the file manager.

Does anyone know a solution to this, without reinstalling everything?

I did a search but didn't get anything like this.

Simon.
C860-Zubuntu
DLinkAir660WCF-1Gb/256Mb/64MbIntegralSD-256Mb/64MbIntegralCF

SL5500-OZ3.5.2/OPIE1.1.7

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Software installed on SD disappears after reboot.
« Reply #1 on: August 12, 2004, 02:54:49 pm »
I had the same problem (if I got it right what you said)
I got over this problem with a small script that I run every time I restart the system.
Code: [Select]
#!/bin/sh
echo -n "Recreating symlinks and setting permissions..."

for i in `ls /mnt/card/usr/lib/`; do ln -sf /mnt/card/usr/lib/$i /usr/lib/$i; done
for i in `ls /mnt/card/usr/local/lib/`; do ln -sf /mnt/card/usr/local/lib/$i /usr/local/lib/$i; done
for i in `ls /mnt/card/usr/X11R6/lib/`; do ln -sf /mnt/card/usr/X11R6/lib/$i /usr/X11R6/lib/$i; done
for i in `ls /mnt/card/usr/bin/`; do ln -sf /mnt/card/usr/bin/$i /usr/bin/$i; done
chmod a+w /tmp

echo " done."
Change the /mnt/card/ to /mnt/cf/ if you use CompactFlash card.
This is really only a patchwork, we should ask the developers what causes this error.

Zumi
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

diesel1

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.diesel1.demon.co.uk
Software installed on SD disappears after reboot.
« Reply #2 on: August 12, 2004, 05:11:03 pm »
I ran this but nothing changed, programs still complain about missing libraries.
Also the SD always says busy when unmounting on reboot.

MMMmmm...I think its time to reinstall............

Simon.
« Last Edit: August 12, 2004, 05:35:54 pm by diesel1 »
C860-Zubuntu
DLinkAir660WCF-1Gb/256Mb/64MbIntegralSD-256Mb/64MbIntegralCF

SL5500-OZ3.5.2/OPIE1.1.7

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Software installed on SD disappears after reboot.
« Reply #3 on: August 12, 2004, 05:36:06 pm »
Code: [Select]
-f, --force                 remove existing destination filesSo, it's not needed, works for me.

Zumi
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

diesel1

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.diesel1.demon.co.uk
Software installed on SD disappears after reboot.
« Reply #4 on: August 12, 2004, 05:46:55 pm »
Sorry, I edited the previous post....will not do it again.....promise!

I ran the script and it said it was doing its thing but when I tried gnumeric it complained about missing stuff (libglade). This is definitely on the SD card.
I am not sure which links to these libraries gnumeric looks for.

Simon.
C860-Zubuntu
DLinkAir660WCF-1Gb/256Mb/64MbIntegralSD-256Mb/64MbIntegralCF

SL5500-OZ3.5.2/OPIE1.1.7

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Software installed on SD disappears after reboot.
« Reply #5 on: August 12, 2004, 05:59:58 pm »
You have to search for that lib file, find out where it is, and if it's not in the dir you see in the script you have to add it too. Reinstall rarely solves things in Linux.
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

diesel1

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.diesel1.demon.co.uk
Software installed on SD disappears after reboot.
« Reply #6 on: August 12, 2004, 06:41:31 pm »
Ok, I found the libglade stuff in its own folder, I will add this to the script.

I will run this script from rc.local.

Simon.
C860-Zubuntu
DLinkAir660WCF-1Gb/256Mb/64MbIntegralSD-256Mb/64MbIntegralCF

SL5500-OZ3.5.2/OPIE1.1.7

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Software installed on SD disappears after reboot.
« Reply #7 on: August 12, 2004, 07:11:00 pm »
So, it's working now?
I hope I was able to help.

Zumi
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

diesel1

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.diesel1.demon.co.uk
Software installed on SD disappears after reboot.
« Reply #8 on: August 12, 2004, 07:26:24 pm »
Not quite there.

I looked around for the library files/links and found everything in place.
I then checked the PATH setting, it does not have the correct directories in it.

This must have been set correctly for a while, until something changed it.

I do not remember installing anything new since it was working last.

Which is the correct location to set the PATH variable on the pdaXrom?

Simon.
C860-Zubuntu
DLinkAir660WCF-1Gb/256Mb/64MbIntegralSD-256Mb/64MbIntegralCF

SL5500-OZ3.5.2/OPIE1.1.7

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Software installed on SD disappears after reboot.
« Reply #9 on: August 12, 2004, 07:31:24 pm »
I don't know. I have a non-working-development-version ROM on my Zaurus now, so I can't help with that.

Zumi
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

diesel1

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.diesel1.demon.co.uk
Software installed on SD disappears after reboot.
« Reply #10 on: August 12, 2004, 07:41:53 pm »
I think it is ok to set it in /etc/profile.
Or maybe I should link into a directory already set in /etc/profile.

Thanks for the pointers.  

Simon.
C860-Zubuntu
DLinkAir660WCF-1Gb/256Mb/64MbIntegralSD-256Mb/64MbIntegralCF

SL5500-OZ3.5.2/OPIE1.1.7

diesel1

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.diesel1.demon.co.uk
Software installed on SD disappears after reboot.
« Reply #11 on: August 12, 2004, 08:33:17 pm »
I did some more poking around and found dead links in /usr/lib, they are pointing to the same directory but they should be linking to /mnt/card/usr/local/lib (thankyou midnightcommander colour highlighting!).

Now I have to trawl through the failed links....argh!

There must be some reason for all these dead links, any ideas?

Thankyou,

Simon.
C860-Zubuntu
DLinkAir660WCF-1Gb/256Mb/64MbIntegralSD-256Mb/64MbIntegralCF

SL5500-OZ3.5.2/OPIE1.1.7

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Software installed on SD disappears after reboot.
« Reply #12 on: August 12, 2004, 08:41:04 pm »
This is why I added --force too. To overwrite these links. I don't know why it doesn't work for you.
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

diesel1

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.diesel1.demon.co.uk
Software installed on SD disappears after reboot.
« Reply #13 on: August 12, 2004, 08:57:20 pm »
I checked out the second failed gnumeric dependency, libgnomeui-2.so.0, it is there!
Gnumeric says it doesn't exist!

It looks like something is seriously wrong somewhere.

Can I make ipkg do a reinstall on selected files?
I am only familiar with the gui ipk manager....time for some reading......YAWN!!!

Simon.
C860-Zubuntu
DLinkAir660WCF-1Gb/256Mb/64MbIntegralSD-256Mb/64MbIntegralCF

SL5500-OZ3.5.2/OPIE1.1.7

offthefront

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://
Software installed on SD disappears after reboot.
« Reply #14 on: August 13, 2004, 04:43:12 am »
I need to do a ldconfig after a reboot to pick up libs on the sd card. Never did hunt down why, thought I'd just messed something up in my config. Might solve your problem?
Sue.