LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-21-2024, 09:25 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
X is Borked - Upgrade?


As it says, my X setup seems nicely borked. I had executed some scripts in /etc/X11/xinit. I was looking at installing Mate instead of XFCE. That screwed things.

Now I run 'startx' from runlevel 3 and I get a blue screen with one grey icop in top left & top right corners and this error
Quote:
Unable to determine failsafe session name. Possible causes: xfconfd not running; XDG_CONF_DIRS is set incorrectly (must include /etc); or xfce4-session is intalled incorrctly.
I checked and
  • $XDG_CONF_DIRS is not set.
  • xfconfd is not running and exits immediately anyhow. Running 'startx & /well/hidden/path/to/xfconfd' also fails.

I deserve this because I had been holding on to stuff in /etc/X11 for years simply to keep the look & feel of XFCE that I was used to, so I know better than to try and fix this, so a clean install of current is coming, I want Mate, DEFINITELY not KDE, and not XFCE.

What's my kosher way of doing that? Do I vaguely remember some script? Has anyone tried it? I can afford to, because I have a working backup to get me back to where I was recently. Otherwise, with the standard iso, if I leave out kde & XFCE, and put Mate there instead, does it work?
 
Old 03-21-2024, 10:56 AM   #2
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
kosher-schmosher... my favourite install method is to grab Eric's liveslak ( in this case the mate variety) and then run setup2hd

From Eric's wiki:
Quote:
The “setup2hd” script has some capabilities that the original Slackware 'setup' lacks:

It will launch fdisk/gdisk if you forgot to create Linux partitions in advance;
It will allow you to create a regular user account and set its password;
It will prompt you to set the root password in a graphical dialog.
If you've tweaked the liveslak (e.g. added Multilib), those changes will also be part of the install.

That's how I've done it in the past, and I consider it failsafe.
 
3 members found this post helpful.
Old 03-21-2024, 11:32 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Original Poster
Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Brilliant. Thanks for the reply.

Updating my homedir backup at the moment. I'm impressed with these LiveSlak USBs. I was on the Cinnamon one this morning and even got Libreoffice printing in short order. I'll choose carefully what to restore. I see my homedir has sprouted an fvwm directory, for instance.

No doubt I'll manage to make an adventure of it but I have the backup.
 
Old 03-21-2024, 12:32 PM   #4
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,537

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
When I installed current on this box, I used Eric's liveslak, and it was completely no-drama. (If another testimonial is needed.) he's got it set up to use ventoy now, too.
 
Old 03-21-2024, 01:20 PM   #5
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 777

Rep: Reputation: 244Reputation: 244Reputation: 244
I wouldn't go with the nuclear option just because (it seems) like XFCE isn't behaving. There's alot of fixes if you search for that error message, most have to do with starting under dbus-launch xfce4-session. Probably some start-up script is wrong.
 
Old 03-22-2024, 05:30 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Original Poster
Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I'm pretty sure nothing major is wrong, but finding what variables are jammy side down promises to be a nightmare, given that I've been copying over/etc/X11/* for some years into each new install. That will include /etc/X11/xinit/. I have a complete backup, and I'm going to be very fussy that only needed data goes back into the homedir. As it was, I couldn't set runlevel 4, but just ran startx from runlevel 3.

If I don't like it, I can just go back to earlier days. I even have a more historical backup.
 
Old 03-22-2024, 10:40 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Original Poster
Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Well, I ran the setup2hd script, copied over the packages very nicely, and left me in the lurch in the final setup. Probably my mistake, but I know how to do that stuff anyhow and I did it. So I'm on a new 64bit ext4 filoesystem for /, the 6.6.10-huge kernel, no initrd, and runlevel 3.

It boots fine, but can't mount / because of errors. It asks me to enter the root passwd. But without / mounted, it can't check a passwd. I did try 'root' and no passwd. root was rejected, and no passwd was a reboot command. So I booted on the live usb to fix it. There was no errors! I checked all partitions, and only /home had minor errors.

Is there a root passwd hardcoded into busybox in the ramdisk? What is it? I'll go back and try making a ramdisk and using the generic kernel. But I shouldn't have to - that's the whole point of the huge kernel, isn't it?

EDIT: Made the ramdisk and booted it. It still gives me this root disk error on a new / filesystem. I even booted debian and tried the e2fsck there. No joy.

Last edited by business_kid; 03-22-2024 at 11:21 AM.
 
Old 03-22-2024, 11:20 AM   #8
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 590

Rep: Reputation: Disabled
Can you finally please please please be actually specific when you state things like "left me in the lurch in the final setup", "I know how to do that stuff anyhow and I did it" "because of errors" and all the other similarly vague remarks you made over time.
There is nothing in your posts that would actually entice me to hand you something relevant. I would love to help, but not like this.
 
1 members found this post helpful.
Old 03-22-2024, 12:15 PM   #9
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,787

Rep: Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468
Quote:
Originally Posted by business_kid View Post
It boots fine, but can't mount / because of errors. It asks me to enter the root passwd. But without / mounted, it can't check a passwd. I did try 'root' and no passwd. root was rejected, and no passwd was a reboot command.
Is this what you got:
Code:
***********************************************************
*** An error occurred during the root filesystem check. ***
*** You will now be given a chance to log into the      ***
*** system in single-user mode to fix the problem.      ***
***                                                     ***
*** If you are using the ext2 filesystem, running       ***
*** 'e2fsck -v -y <partition>' might help.              ***
***********************************************************

Once you exit the single-user shell, the system will reboot.

Type control-d to proceed with normal startup,
(or give root password for system maintenance):
If you got that, '/' was mounted, because the text above is printed by /etc/rc.d/rc.S. It will check the root password against /etc/shadow. Then you can run e2fsck as hinted.
Quote:
Originally Posted by business_kid View Post
try making a ramdisk and using the generic kernel. But I shouldn't have to - that's the whole point of the huge kernel, isn't it?
Even the generic kernel has ext4 built-in in -current now, so usually you don't need huge nor initrd with generic.
Quote:
Originally Posted by kgha View Post
From Eric's wiki:
Quote:
The “setup2hd” script has some capabilities that the original Slackware 'setup' lacks:

It will launch fdisk/gdisk if you forgot to create Linux partitions in advance;
It will allow you to create a regular user account and set its password;
It will prompt you to set the root password in a graphical dialog.
Use that root password.

Quote:
Originally Posted by business_kid View Post
left me in the lurch in the final setup. Probably my mistake, but I know how to do that stuff anyhow and I did it
So, did you set the root password?

Last edited by Petri Kaukasoina; 03-22-2024 at 12:19 PM.
 
Old 03-22-2024, 01:36 PM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Original Poster
Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Yes, what you showed was the error message I got. Let's be clear, the / partition is fine. I have checked everything, mounted all filesystems, checked all filesystems, and done my best to trap all errors going through. That involved half a dozen reboots. Here's what happens.
  1. / is mounted read only and /sbin/init is run.
  2. I catch a glimpse of an error, but can't get all of it, because it's followed by kind of 40 lines so fast that I can't follow it up the screen. I have managed to see "Failed to insert...............................................: Format error."
  3. The boot messages say /sbin/e2fsck won't run because it's a directory . It's an executable, but something thinks it's a directory. As I just had (at a guess) a module loading error, I suppose they're related.
  4. An error about / is raised, presumably because the fsck routine exited with an error code.

I didn't get to the end of setup2hd, but was dumped out. Using the live usb, I mounted the future directory tree and chrooted into it, I set up the root passwd before I posted, so obviously I had exited setup2hd before that point. Now I got in, and could progress. I ran 'init 3' and it finished and brought me to a login. Because I remounted / rw and ran 'init 3' it ran rc.M and I got some logs. dmesg was useless. Here's /var/log/syslog in it's entirety:
Code:
Mar 22 17:41:10 darkstar kernel: Speculative Return Stack Overflow: IBPB-extending microcode not applied!
Mar 22 17:41:10 darkstar kernel: Speculative Return Stack Overflow: WARNING: See https://kernel.org/doc/html/latest/admin-guide/hw-vuln/srso.html for mitigation options.
Mar 22 17:41:15 darkstar kernel: hid_bpf: error while preloading HID BPF dispatcher: -22
Mar 22 17:41:15 darkstar kernel: Invalid ELF header magic: != \x7fELF
Mar 22 17:41:18 darkstar kernel: usb 3-2.1: Warning! Unlikely big volume range (=5120), cval->res is probably wrong.
Mar 22 17:41:18 darkstar kernel: usb 3-2.1: [5] FU [Mic Capture Volume] ch = 1, val = 7680/12800/1
Mar 22 17:44:11 darkstar elogind-daemon[1370]: Failed to connect to system bus: No such file or directory
Mar 22 17:44:11 darkstar elogind-daemon[1370]: Failed to fully start up daemon: No such file or directory
/var/log/messages was pretty useless also. But the bit that pukes came before this logging.

So now I'll download the latest live iso and run some selective updates, particularly kernel and modules.
 
Old 03-22-2024, 01:59 PM   #11
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,787

Rep: Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468
Quote:
Originally Posted by business_kid View Post

"Failed to insert...............................................: Format error.#

/sbin/e2fsck won't run because it's a directory . It's an executable, but something thinks it's a directory. As I just had (at a guess) a module loading error, I suppose they're related.

Code:
Mar 22 17:41:15 darkstar kernel: Invalid ELF header magic: != \x7fELF
All the ELF binaries, libraries, kernel modules should start with \x7fELF. What does smartctl tell about the health of the disk? Or memtest about the memory?

Last edited by Petri Kaukasoina; 03-22-2024 at 02:04 PM.
 
Old 03-23-2024, 04:59 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Original Poster
Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
It's not the disk, to my mind. This stuff is less than 2 years old and not stressed. I checked the disk as a matter of form. What does happen is that the usb disk fills it's read or write cache and never thinks to stop and sync itself. At that point, programs are capable of doing funny things. That's my guess. I've been sitting with a terminal open running sync during setups. But I didn't get a chance to interrupt the sxz archives to nvme transfer.

Anyhow, current has moved on. The upgrade will be Sata --> nvme, which I will do in sections and I reckon that will work. It will also give me a different kernel
 
Old 03-23-2024, 11:55 AM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Original Poster
Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I'm marking this solved .

I'm online, & three quarters sorted. The "/sbin/e2fsck is a directory" error proved to be missing files in /etc. Perfectly obvious once you think about it - NOT! It's madness, actually.

You know, after an install, there's a trialsome routine of setting up basic config files. Well, I had wiped / clean, and setup2hd had turfed me out with skid marks on my backside, so those basic files in /etc/ were never set up. So I got back in, ran init 3, and selectively copied over one file at a time - /etc/fstab, /etc/hosts, and other configs I has set up to my liking, and knew to be unpolluted by earlier versions.

Now I'm starting in runlevel 4. It starts the last window manager I had, and I can select Mate, XFCE, or some half-assed spartan thing. They coloured the background, threw in a disgusting terminal, and called it a window manager. It has the hallmarks of an alcoholic CS student blown out by his girl friend. I hadn't seen that option of choosing desktops before. I could have been locking myself out of it by copying over /etc/X11.

Mate is set up to look much the way I had XFCE set up previously. The only thing I lack in Mate is a keyboard shortcut to switch between the 4 screens or windows. XFCE used to do it with Ctrl_F1-F4. What does Mate use?

Current is from this week, Mate is from last month. To do is: installing from Alien Bob's repo; the task of setting up look 'n' feel stuff in Mate's Labyrinthine menus; Building or installing Slackbuilds.
 
Old 03-23-2024, 12:55 PM   #14
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
OK, so the sddm display manager (the login screen) is driving you nuts. You can get rid of The virtual keyboard:
edit line 24 in /etc/sddm.conf so that it reads
InputMethod=
and nothing else.

If you prefer the old xdm login screen, comment out the sddm lines (lines 43-44) in /etc/rc.d/rc.4

For window switching, look for the menu item Keyboard Shortcuts or run
mate-keybinding-properties
from terminal.
 
1 members found this post helpful.
Old 03-23-2024, 01:34 PM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,304

Original Poster
Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Sorry I was unclear.

Window maker is the half-assed window manager I was bellyaching about. I'll tolerate the login screen for the moment, but mark that spot you mentioned with a comment. I think I know how to get rid of Window maker.

Experience teaches me to stop fixing something at the earliest opportunity, and keep your work reversible where possible. SDDM, is it? I hadn't run that before.

Thanks for the mate tuition. Those keybinding properties are definitely future work. I'd rather leave them as they are and learn them than have to fart about every time I upgrade. I'll configure Mate at my leisure.

Last edited by business_kid; 03-23-2024 at 01:36 PM.
 
  


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
borked python upgrade lvm_ Linux - Software 1 08-30-2022 05:22 PM
apt-get dist-upgrade borked nat rbees Linux - Newbie 3 04-11-2014 04:48 PM
Syslinux borked after upgrade? Now cannot boot from USB rabidredfox Linux - General 0 09-19-2010 07:19 PM
[SOLVED] Slackpkg kernel upgrade has borked Tap-to-Click on Touchpad BobNutfield Slackware 9 07-18-2009 07:46 AM
Upgrade Borked My System! Need Help! leiavoia Debian 19 02-26-2006 09:41 AM

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

All times are GMT -5. The time now is 02:31 AM.

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