LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Broken installation... Kernel panic... weird problem. (https://www.linuxquestions.org/questions/linux-software-2/broken-installation-kernel-panic-weird-problem-4175514076/)

pjvex86 08-09-2014 11:08 AM

Broken installation... Kernel panic... weird problem.
 
Originally, I didn't think this was going to be too difficult... While I am not Linux guru, I have been able to escape some dicey positions on my own in the past.

I first posted this at the /r/LinuxQuestions sub at Reddit... but that isn't really working. I will be posting most of the data in that thread here, but the link to that post on Reddit is below just in case: my first post at reddit.

OK.. I have a dual boot laptop—an Intel i5 sandy bridge (I think)— I had been successfully running a Kali Linux hybrid (basically it is Wheezy with a few pieces of Ubuntu added).

The last time I was in the OS, there were no problems and I exited normally. I was doing a lot of things, mostly having to do with networking, installing different gdm themes, and also I updated my kernel/kernel header files using
Code:

apt-get install linux-headers-$(uname -r)
.

Then about 5 days later, I tried to reboot into it again.... Grub was fine but after about 10 seconds, I get this on my screen:

Code:

inconsistency detected by ld.so: dl_closed.c: 743: _dl_close: Assertion 'map->l_into called' failed!
Code:

Kernel panic - not syncing: Attempted to kill init! exitcode= 0x0007100
Code:

CPU: 0 PID: 1 Comm: init not tainted
along with some other text... But it simply froze. Below is the best I could do in capturing it with my phone:

picture at startup

Weird thing was that Grub had 3 other options for different kernels, including recovery options for those kernels, and I tried them all but they all failed (like the above).

Finally, I booted a Live USB and fsck'd my root directory (after making sure it wasn't mounted). It showed clean.

I then was going to try and update the install to see if that would help, so I mounted everything and tried to chroot. I got pretty much the same as above:

Code:

inconsistency detected by ld.so: dl_closed.c: 743: _dl_close: Assertion 'map->l_into called' failed!
While it was mounted, I looked at the log files as well. For brevity's sake, please look at the reddit link above as I copied 30 lines from 4 or 5 different logs over there (and they are easy to find and read).

I have researched this and all of the info I can find says that this has something to do with the glibc library.... or possibly OpenGL... But I wasn't playing any games, listening to any audio, or video the last time it was working.

This distro has been working solidly since last October... so whatever I did (or whatever happened) must be an edge case.

PS: I know I will get admonished for this, but since about February... since I was running as root so frequently and needed some more space, I transferred everything to the root directory (/root/) and have been always running as root since then... but I have been careful and not reckless (and I am not going to do a
Code:

rm * -rf
by accident.

Any help on this gets my sincerest gratitude and appreciation in advance...

Let me know if you need any more data....

Thanks again!!!!

business_kid 08-10-2014 02:19 PM

Not very much to go on.

The kernel headers are for compiling. On their own, they hardly did much. Usual pattern here is
boot kernel - mount / readonly - start init - remount / rw - boot the system stuff.

Once it's finished the roll call of bits in your box, it mounts the disks. I think that's where you're hitting trouble. Can you boot on an install cd and do a scan?

pjvex86 08-10-2014 02:53 PM

First, thanks for taking the time to read this... I have been fretting about this... I can save (most) files and just wipe and re-install, but I did a lot of tiny system tweaks that will be a pain to redo....so I really want to exhaust my attempts to fix this.

Quote:

Originally Posted by business_kid (Post 5218470)
Not very much to go on.
The kernel headers are for compiling. On their own, they hardly did much. Usual pattern here is
boot kernel - mount / readonly - start init - remount / rw - boot the system stuff.

Once it's finished the roll call of bits in your box, it mounts the disks. I think that's where you're hitting trouble. Can you boot on an install cd and do a scan?

I can boot from a live USB/install flash drive, but as said above, I cannot chroot.
But beyond that, I would be thrilled to run a scan... what type of disk scan exactly do you suggest?

itsgregman 08-11-2014 03:37 AM

Have you tried using super grub disk or something similar to make sure it's not a bootloader issue?

business_kid 08-11-2014 03:47 AM

Quote:

Originally Posted by pjvex86 (Post 5218482)
I can boot from a live USB/install flash drive, but as said above, I cannot chroot.
But beyond that, I would be thrilled to run a scan... what type of disk scan exactly do you suggest?

Code:

ls /dev/sd*
will show you the available partitions. Decide which is the usb; that will probably be mounted, so
Code:

cat /etc/mtab
will tell you what is mounted as /, and identify your usb drive. Make sure the partitions you want to check are not mounted. Then
Code:

e2fsck -cfv /dev/sdxx
e.g. e2fsck /dev/sdb3 checks the 3rd partition of the second drive.

mig21forum 01-17-2015 05:22 AM

I had a similar problem, it all started when I tried to install some Mesa S3 drivers, it displayed an error and didn't install. Ok, didn't pay attention as everything seemed to keep working. After opening a console, it displayed that inconsistency error and exited. I said "Ok, I'll just reboot, maybe after rebooting everything get back in place."

After doing BIOS POST my pc couldn't boot, it didn't even get to start the initramfs. I died just after loading the kernel.

I grabbed a bootable working linux USB drive (but I think it can work from a LiveCD as well), tried to chroot onto the damaged installation and guess what? The same issue. Mmmm that's not a kernel problem (as I first thought), I'm working from a fully functional kernel (USB Drive)... And what in the world could it be?

Going here and there, and not finding someone that had exactly the same problem I had, and after reading also this very post, I tried something that worked for me.

I've just deleted the /etc/ld.so.cache file! Pay attention not to confuse the /etc/ld.so.cache with /etc/ld.so.cache.d and not to deleted the /etc in your actual LiveCD or USB Linux Rescue Drive. Instead, mount the damaged installation e.g

/dev/sda2 /media/mydamagedinstall

then

rm /media/mydamagedsinstall/etc/ld.so.cache

After doing that I could be able to do chroot, this very fact (that I didn't have the error when chrooting) told me that maybe if I just leave it that way and restart it could just load the rest of the system. I rebooted and voila! My system is back again!

veerain 01-17-2015 05:32 AM

Does your system uses initramfs/initrd. Then it's been damaged.

Head_on_a_Stick 01-17-2015 07:03 AM

Quote:

Originally Posted by pjvex86 (Post 5218053)
I had been successfully running a Kali Linux hybrid (basically it is Wheezy with a few pieces of Ubuntu added).

That's just asking for trouble...
https://wiki.debian.org/DontBreakDeb..._FrankenDebian

You are not an "edge case" -- you are a warning to others.

pulidovpe 04-29-2017 03:31 PM

Thank you!
 
Quote:

Originally Posted by mig21forum (Post 5302316)
I had a similar problem, it all started when I tried to install some Mesa S3 drivers, it displayed an error and didn't install. Ok, didn't pay attention as everything seemed to keep working. After opening a console, it displayed that inconsistency error and exited. I said "Ok, I'll just reboot, maybe after rebooting everything get back in place."

After doing BIOS POST my pc couldn't boot, it didn't even get to start the initramfs. I died just after loading the kernel.

I grabbed a bootable working linux USB drive (but I think it can work from a LiveCD as well), tried to chroot onto the damaged installation and guess what? The same issue. Mmmm that's not a kernel problem (as I first thought), I'm working from a fully functional kernel (USB Drive)... And what in the world could it be?

Going here and there, and not finding someone that had exactly the same problem I had, and after reading also this very post, I tried something that worked for me.

I've just deleted the /etc/ld.so.cache file! Pay attention not to confuse the /etc/ld.so.cache with /etc/ld.so.cache.d and not to deleted the /etc in your actual LiveCD or USB Linux Rescue Drive. Instead, mount the damaged installation e.g

/dev/sda2 /media/mydamagedinstall

then

rm /media/mydamagedsinstall/etc/ld.so.cache

After doing that I could be able to do chroot, this very fact (that I didn't have the error when chrooting) told me that maybe if I just leave it that way and restart it could just load the rest of the system. I rebooted and voila! My system is back again!


Only this, was necessary to fix my system. Thanks a lot!


All times are GMT -5. The time now is 11:15 AM.