More information! Part way to a solution!
It's opie-embeddedkonsole.
I was just, half an hour after posting the report, carefully installing a couple of packages so that my Zaurus would still be useful for the two or three tasks I absolutely have to have it for. I don't like opie-console, so I always use opie-embeddedkonsole instead.
So I installed it, and IMMEDIATELY, I lost all packges installed to /media/ram. I checked /opt/QtPalmtop/bin as the easiest confirmation, and sure enough all links to files on /media/ram had been replaced by symlinks to themselves.
I uninstalled opie-embeddedkonsole, rebooted, and presto, ipkg-link restored all packages on /media/ram again. This is the first time I have been able to restore `ln` functionality, after having to reflash 4, maybe 5, times.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=77818\"][{POST_SNAPBACK}][/a][/div]
No, sorry, that's still wrong.
It was pure coincidence that it was opie-embeddedkonsole that caused the problem. I have since discovered more information, including this other symptom:
During ipkg operations, $DESTINATION/usr/lib/ipkg/status is copied to status.tmp, changes written to status.tmp, then status.tmp copied to status and deleted. When `ln` stops working properly, status.tmp remains, and status is not modified.
Doing it manually, `mv` returns a 'no such file or directory' error message, but `cp` and `rm` will still work. This suggests a file system or libc error to me.
So, at the moment, after doing a considerable amount of package removal and (re)installation, to configure things to my liking, I can uninstall multiple packages at once safely, but can only install packages individually. After each installation, I then need to check $DESTINATION/usr/lib/ipkg/status before proceeding with anything else. If there is an error, I need to cp/rm status.tmp to status, then *immediately* reboot, clean up by deleting and reinstalling the package I was working on, and check that before doing anything else. This will prevent permanent `ln`/`mv` errors.