Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: bmb on May 08, 2012, 07:54:34 AM

Title: Boot problem after update.
Post by: bmb on May 08, 2012, 07:54:34 AM
Hello,

Where can i change the tce dir location?
I did a update from 3.8 to 4.5 and i am getting this message:

cat: can't open '/opt/.tce_dir': No such file or directory

Thanks.
Title: Re: Boot problem after update.
Post by: gerald_clark on May 08, 2012, 09:59:52 AM
Read all the release notes from 3.8 to 4.5.
There is no longer an /opt/.tce_dir.
You have failed to update or delete something.
Title: Re: Boot problem after update.
Post by: bmb on May 09, 2012, 08:17:11 AM
That is correct, the .tce_dir file is gone after a update from 4.1 to 4.2.
If i copy the file manually ( made a backup from an other 4.1 install) and do a reboot the file is gone again.

If i edit the menu.lst in the grub folder and add "tce=/mnt/sda1/tce" the system won't boot. Just getting my name and a cursor..

So 4.1 works like a charm, 4.2 gives me a pain in the ass ;)
Title: Re: Boot problem after update.
Post by: gutmensch on May 09, 2012, 09:24:42 AM
the correct syntax for the boot code (for already a long time) would be
Code: [Select]
tce=sda1
if the directory is named "tce". if it is "othername", then the boot code would be
Code: [Select]
tce=sda1/othername
Title: Re: Boot problem after update.
Post by: bmb on May 09, 2012, 11:16:40 AM
Stil getting the message "cat: can't open '/opt/.tce_dir': No such file or directory"

My menu.lst is:

Code: [Select]
kernel /boot/vmlinuz quiet host=Change_Me! tce=sda1
initrd /boot/core.gz
I upgrade the system by replacing the vmlinuz and core.gz

This worked fine until now. 4.1 is the last good working update for me.
Title: Re: Boot problem after update.
Post by: curaga on May 09, 2012, 11:32:45 AM
You need to update your extensions too, and any custom scripts you may have.
Title: Re: Boot problem after update.
Post by: bmb on May 09, 2012, 11:40:16 AM
Sorry, forgot to mention that i check for updates after every update.
Now (with the error) i did

Code: [Select]
tce-audit builddb
tce-audit fetchmissing

That should be enough?
Title: Re: Boot problem after update.
Post by: curaga on May 09, 2012, 11:41:54 AM
Then please report which extension is broken. (boot with "showapps pause")
Title: Re: Boot problem after update.
Post by: gerald_clark on May 09, 2012, 01:37:49 PM
I suspect you did not replace .profile with the one in /etc/skel.
It is important to follow the instructions in all the release notes for intervening versions.
Title: Re: Boot problem after update.
Post by: bmb on May 10, 2012, 04:45:24 AM
Hello,

With "showapps pause" in the menu.lst i see some errors.
Code: [Select]
g_module_open() failed for usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: libpng12.so.62: cannot open shared object file: No such file or directory
g_module_open() failed for usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jpeg.so: libjpeg12.so.62: cannot open shared object file: No such file or directory

I also see a line"Restoring backup files from /mnt/sda1/tce/mydata/tgz Done."
When i hit enter i am getting the error that i had before ( the one with /opt/.tce_dir).

I also the .profiles from /etc/skel to /home/tc but no luck.
I can't find the release notes  for version 4.2, only for the 4.2.1.
Title: Re: Boot problem after update.
Post by: AbNoRMiS on May 10, 2012, 04:52:57 AM
4.2 release notes
http://forum.tinycorelinux.net/index.php/topic,12191.0.html
Title: Re: Boot problem after update.
Post by: AbNoRMiS on May 10, 2012, 05:05:16 AM
Hello,

With "showapps pause" in the menu.lst i see some errors.
Code: [Select]
g_module_open() failed for usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: libpng12.so.62: cannot open shared object file: No such file or directory
g_module_open() failed for usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jpeg.so: libjpeg12.so.62: cannot open shared object file: No such file or directory
it seems that missing or broken Xlibs.tcz
and need fetch it
Code: [Select]
tce-audit builddb
tce-audit fetchmissing

p.s.
run this command to check Xlibs.tcz
Code: [Select]
md5sum -c /etc/sysconfig/tcedir/optional/Xlibs.tcz.md5.txt
Title: Re: Boot problem after update.
Post by: bmb on May 10, 2012, 06:32:37 AM
I reinstalled Xlibs on the 4.1 version, rebooted, upgraded to 4.2, copied .setbackground, .profile and .xsession from /etc/skel to /home/tc.

Rebooted the device again.
typed tce-audit builddb and tce-audit fetchmissing ( i have no gui)

The xlibs.tcz errors are gone now (thanks!) but the tce error remains.

I browsed trough the 4.2 release notes and noticed the line "Updated base for move of /opt/.tce_dir to a link at /etc/sysconfig/tcedir".

That is the error i am getting? ( The /opt/.tce_dir ).
The tcedir link in the sysconfig folder sends me to /mnt/sda1/tce so that works fine. (just used cd to go to the dir).

Somehow there is still a reference to the /opt/.tce_dir?
Title: Re: Boot problem after update.
Post by: AbNoRMiS on May 10, 2012, 10:41:33 AM
I reinstalled Xlibs on the 4.1 version, rebooted, upgraded to 4.2, copied .setbackground, .profile and .xsession from /etc/skel to /home/tc.

Rebooted the device again.

are you did backup before rebooting?
Title: Re: Boot problem after update.
Post by: gerald_clark on May 10, 2012, 10:42:07 AM
Go back and read reply #8. Easiest fix is to rm /home/tc/.profile.
Also remove /home/tc/.X.d/wbar if it exists.
Then do a backup.
Title: Re: Boot problem after update.
Post by: AbNoRMiS on May 10, 2012, 11:06:20 AM
if you still have no gui then backup command
Code: [Select]
filetool.sh -b
p.s.
and one more
if you has installed wbar
then must update it to recent version
older versions may report this error

p.s.2
and even better update all extensions
Code: [Select]
tce-update