LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-04-2023, 02:19 PM   #16
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 644

Rep: Reputation: 490Reputation: 490Reputation: 490Reputation: 490Reputation: 490

Code:
cat mnt/etc/slackpkg/mirrors | grep -v '^#'
what is the output?
 
Old 11-04-2023, 02:26 PM   #17
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477
Quote:
Originally Posted by kgha View Post
Hmm, when looking at the content of /lib and /lib64, it is as if they have been merged somehow... lots of stuff in /mnt/lib that on my USB stick resides in /lib64.
That would point to the direction that it was a 32-bit system, after all. A 32-bit system has only /lib. In both 32- and 64-bit Slackware, modules and firmware are in /lib. But shared libraries are in /lib64 (64 bits) or /lib (32 bits), for example libc.so.6 which points to libc-2.38.so.
 
Old 11-04-2023, 02:41 PM   #18
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
It's a multilib system, and I definitely have had a /lib64 directory before (and there's a /usr/lib64 directory).
But for some reason, maybe when I've been fiddlin with compiling audacity, they have been merged...

I did copy the /lib64 library from the USB to /mnt/sda1. Now I can chroot into /mnt. Kernel panic went away, but instead booting hangs om permission issues with var/log ...

And since the USB stick wasn't fully upgraded, there were some package mismatches. Will upgrade, repeat, and see what happens.
 
Old 11-04-2023, 03:05 PM   #19
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477
I don't think they have merged. In a multilib system you have libraries with same names in /lib and /lib64, e.g. /lib64/libc-2.33.so and /lib/libc-2.33.so. You can't merge them to one directory. I guess your USB stick is not multilib, so it has no libraries in /lib. In your SDD you see the correct compat32 libraries in /lib that you had before but you lost all the corresponding 64-bit libraries when you lost /lib64.

It could be a good idea to umount it and run 'e2fsck -f /dev/sda1'. It's possible that your file system is not quite healthy if it loses a directory...

If e2fsck doesn't find anything, I would chroot again and run 'slackpkg reinstall slackware64'.
 
Old 11-04-2023, 03:16 PM   #20
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477
Quote:
Originally Posted by kgha View Post
Code:
...
drwxr-xr-x   2 root root  12288 Nov  4 06:59 sbin
drwxr-xr-x  10 root root   4096 Nov  4 19:19 sda1
drwxr-xr-x   2 root root   4096 Oct 19 18:52 srv
...
By the way, what does this directory /sda1 in your SSD root contain? Maybe you have accidentally renamed /lib64 to /sda1 ?
 
Old 11-04-2023, 03:48 PM   #21
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I really don't know what I've broken... too late now to continue, will reinstall slackware tomorrow, seems to be the best option.

Thanks for all helpful suggestions.
 
Old 11-05-2023, 03:42 AM   #22
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Just a note to possibly prevent reoccurrence:

It is wise to be very careful when slackpkg is updated and we get "/etc/slackpkg/mirrors.new" files that we make certain the mirror we select is the appropriate 32bit or 64bit version. I commonly delete all lines for 32bit as well as all country subsections I'll never use on 64bit systems.
 
Old 11-05-2023, 12:07 PM   #23
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 780

Rep: Reputation: 248Reputation: 248Reputation: 248
That root directory looks odd. My guess is that an incorrect command was given that dumped stuff into directory sda1 (which doesn't exists as a directory) when it should have been device sda1. I'm curious if /lib64 is in there. If it is, you could probably fix this else a reinstall is in order.
 
Old 11-07-2023, 02:05 AM   #24
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
After a few futile and time-consuming efforts to repair the / partition I finally reinstalled. Getting a working system up and running was a question of minutes, but reinstalling 3rd party stuff (with dependencies) and tweaking everything after my liking took ages (even if I'd managed to keep my /home partition).

I suspect that I somehow managed to give a disastrous command when trying to compile audacity-3.4.0, which affected the /lib64 directory.

Seeking consolation in that one learns from one's mistakes.

Thanks for all helpful input.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing Linux kernel version 5.14.12 - kernel panic not syncing no working init found try passing init psrksprasad Linux - Desktop 9 10-18-2021 05:23 AM
Kernel panic-not syncing:No init found. Try passing init=option to kernel cucolin@ Ubuntu 5 12-26-2008 06:44 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel. john_schimandle Linux - Embedded & Single-board computer 3 10-10-2008 09:09 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel. john_schimandle Linux - Newbie 4 10-09-2008 02:40 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel ranjithmrk Linux - Newbie 4 08-22-2008 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration