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 05-27-2022, 03:21 AM   #31
Delcaran
Member
 
Registered: Dec 2013
Location: ud.fvg.it
Distribution: Slackware64 14.2
Posts: 44

Original Poster
Rep: Reputation: 27

I had time to do some more tests.
  • I verified I am on Slackware64 using Slackware64 DVD.
  • All kernel packages are from DVD at version 5.15.19.
  • Also kernel-firmware is taken from DVD.
  • Following all your advices has changed nothing.

/var/log/messages last entry is on May 11, the last time a shutdown the laptop with a working Slackware.

I installed GRUB from DVD and the issue persists. I'm sure everything is all right, and I don't know if a full reinstall should change anything...
Any advice I can try maybe on GRUB prompt?
 
Old 05-27-2022, 05:35 AM   #32
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Following all your advices has changed nothing.
That's because we're just guessing here. Without evidence, it's all a bunch of assumptions and guesswork.

Quote:
There was no hardware changes
There's no evidence of this. Have you used a live CD and compared live CD messages with your internal messages?

Quote:
Disk order has not changed
How did you make this conclusion?

Quote:
15.0 has run for months without errors
And then "something" changed, and you've neglected to mention what exactly has changed, so we can only assume..
Could be fstab, not enough modules in initrd, plugging/unplugging usb storage, filesystem corruption..
Hardware failure, drained CMOS battery, and windows bcd could be running in there for all we know..

Whatever it is, we're generally assuming human error first, because that is a major cause of system failures.
Unless of course there's evidence, like comparison of lsmod/lspci/lsusb/dmesg between a working and broken system.
And it's usually standard practice for users here to have backups, so they can easily revert "something" that changed.
 
Old 05-27-2022, 05:48 AM   #33
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
@elcore

In the defense of OP, I would like to note that IF it's something like happened with booting LILO in some of my motherboards, there are no logs, nothing.

What I seen myself is LILO loading the kernel and initrd, then hard reboot of the box. I doubt that the kernel was even started. And this happened with perfectly fine and consistent Slackware(64) 15.0 installations.

So, I can confirm that really exists issues like this, the single difference in my case is that I do not intended to keep using LILO on those affected computers, so I have just switched to UEFI (which worked fine), not bothering about this beyond of taking note.

@OP

I suggest you to create an flasdrive with LiveSlak with persistence.

https://download.liveslak.org/
https://docs.slackware.com/slackware:liveslak

It's considerably easier to debug a broken system while using a fully fledged Slackware system running Plasma5 or XFCE. There LiveSlak would help much.

I for one, I use for cases like this an USB hard drive which contains a full installation of Slackware and even a mirror of the official tree - in fact I have 2 hard drives like this, one for latest stable and one for -current.

I suggest you to make one like this in the future - after all, is quite cheap to buy an USB enclosure and a second hand laptop hard drive you may have already in your locker.

Last edited by LuckyCyborg; 05-27-2022 at 06:21 AM.
 
Old 05-27-2022, 06:47 AM   #34
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Quote:
chroot from DVD
The slackware64 dvd boots okay. Have you tried booting the system from the dvd?
Maybe an incomplete upgrade could be causing the problem? Boot partition wasn’t mounted?

Last edited by colorpurple21859; 05-27-2022 at 07:20 AM.
 
Old 05-27-2022, 01:53 PM   #35
Delcaran
Member
 
Registered: Dec 2013
Location: ud.fvg.it
Distribution: Slackware64 14.2
Posts: 44

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by elcore View Post
There's no evidence of this. Have you used a live CD and compared live CD messages with your internal messages?
My internal messages are stuck at my last successful boot, on May 11. I'm pretty sure that reboot happens before initrd, after GRUB/LILO so nothing is being written...
Quote:
Originally Posted by elcore View Post
How did you make this conclusion?
It's a laptop. I use no external devices, nothing is connected to any port, and it's always been like this. Both drives have the same UUID as before and are reachable by same /dev/sdx device, contains all the files and fsck reports nothing.
Quote:
Originally Posted by elcore View Post
And then "something" changed, and you've neglected to mention what exactly has changed, so we can only assume..
Could be fstab, not enough modules in initrd, plugging/unplugging usb storage, filesystem corruption..
Hardware failure, drained CMOS battery, and windows bcd could be running in there for all we know..
Nothing changed that last day. I booted to look into a webpage while a was working on another pc, and used to uptime to upgrade. The only packages where those of the kernel.
fstab is the same, modules are the same, no usb storage, no filesystem corruption, cmos has been dead for at least a year.
Quote:
Originally Posted by elcore View Post
And it's usually standard practice for users here to have backups, so they can easily revert "something" that changed.
I do have backups of the old /boot partition. It's not working either. And all my files are safe, I have multiple copies and as I said all drives are fine, mountable and readable under chroot.

I'm really just trying to understand what could have gone wrong...
 
Old 05-27-2022, 03:30 PM   #36
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 992

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
Quote:
Originally Posted by Delcaran View Post
Yes, I did try the old kernel (chroot, removed 5.15.38, installed 5.15.19 from DVD, created initrd) but no luck.
If you are able to boot the installation DVD with its kernel and chroot to your installed root partition it is a good way to start fixing things. The next step might be to boot the installation DVD huge kernel and pointing that kernel to your installed root partition. However, I must admit that I have no experience from doing that with an encrypted root partition.

Once you have a working kernel with access to your installed root partition the "only" thing left to fix is some boot loader capable of booting your working kernel with your root partition.

What bootloader did you use when you successfully booted the kernel from the installation DVD? Grub? Isolinux? If you have an EFI system you probably used grub, but if you have an old MBR bios you probably used isolinux.

regards Henrik
 
Old 05-27-2022, 04:56 PM   #37
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,797

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
Delcaran, it is entirely possible that a change unrealized by you took place while doing something else as some software these days does write to BIOS/UEFI Firmware and some can change settings with little or no notice, especially if you also run Win10 or 11.
 
Old 05-27-2022, 07:22 PM   #38
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
What where all the commands used to chroot into the system?
 
1 members found this post helpful.
Old 05-28-2022, 01:50 AM   #39
zaphar
Member
 
Registered: Nov 2012
Distribution: Slackware
Posts: 37

Rep: Reputation: Disabled
I had the same problem as the original post. Using a Slackware installation USB drive to boot the root partition worked, so it seemed to be something related to the kernel or booting the kernel.
 
1 members found this post helpful.
Old 05-28-2022, 05:12 AM   #40
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by Delcaran View Post
cmos has been dead for at least a year.
Yeah we could argue forever whether or not CMOS is dead or pining for the fjords.
But it's a futile argument, since CMOS is the kind of thing that's always there, deciding the order of boot devices.
Even if the battery is dead, CMOS data is still there in its default state.

Quote:
Originally Posted by Delcaran View Post
I'm really just trying to understand what could have gone wrong...
So far, it took 3 pages for you to even mention there is a boot partition (which is something that Slackware installer won't do by default).
And you didn't answer if there's another system installed, sdcard plugged in, cd/dvd inside, or any of that crucial information.

Additionally, after the initial kernel upgrade, have you tried a new mkinitrd script to make initrd or just used mkinitrd command directly?
Did you make new initrd on boot partition or elsewhere? Are there modification dates on kernel image and initrd image, and more specifically do they match?
Have you still got these kernel packages which you used to upgrade the machine, and if so, could you provide a md5/sha* checksums of these packages?

While I'm still bored enough to try and help you, I'm not patient enough to invest weeks/months into this.
 
Old 05-28-2022, 01:08 PM   #41
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,797

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
I'd really like to know what sort of X86 machine will even POST let alone boot when CMOS is dead. I have to assume you don't mean the actual CMOS is dead but the battery that powers CMOS instead, but even that will prevent POST. Without power to BIOS/UEFI the machine will likely still get a Power Good signal allowing a few basic functions like powering LEDs and Fans but that's all in my experience.
 
Old 05-28-2022, 06:50 PM   #42
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
The dvd boots okay, the internal drive lilo bootloader menu loads, my guess it would have something to do with the initrd. What happens if you boot without initrd, will the kernel load to the point it locks up?
 
Old 05-28-2022, 09:01 PM   #43
Loomx
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 184

Rep: Reputation: Disabled
Quote:
Originally Posted by Delcaran View Post
The only packages where those of the kernel.
fstab is the same, modules are the same, no usb storage, no filesystem corruption, cmos has been dead for at least a year.
Just checking: did you upgrade the kernel-modules package? I read through your messages and you didn't specifically say.
If you forgot, they would be still on 5.15.27, which would explain why neither the latest kernel nor the install kernel boot.

As @colorpurple21859 said, see what this command shows:
Code:
ls -l /var/log/packages/ | grep kernel
 
1 members found this post helpful.
Old 05-30-2022, 07:09 AM   #44
Delcaran
Member
 
Registered: Dec 2013
Location: ud.fvg.it
Distribution: Slackware64 14.2
Posts: 44

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by elcore View Post
So far, it took 3 pages for you to even mention there is a boot partition (which is something that Slackware installer won't do by default).
And you didn't answer if there's another system installed, sdcard plugged in, cd/dvd inside, or any of that crucial information.
I'm sorry, I thought I provided all the relevant information, but maybe it was only clear in my head since I always followed Slackware READMEs.

The laptop has only one SSD drive formatted like this:
  • /dev/sda1 mounted as /boot with unencrypted ext4
  • /dev/sda2 is a LUKS drive with LVM named cryptvg
  • /dev/cryptvg/root is ext4 and mounted as /
  • /dev/cryptvg/home is ext4 and mounted as /home
  • /dev/cryptvg/swap is the swap partition
Slackware is the only system installed, there were nothing inserted anywhere, not even the mouse since I almost never need X11.


Quote:
Originally Posted by elcore View Post
SAdditionally, after the initial kernel upgrade, have you tried a new mkinitrd script to make initrd or just used mkinitrd command directly?
I tried the old script I've used since 14.2 came out, which was generated the first with
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
Then when it wasn't working, inside chroot I ran the command directly and with the configuration file. After each command I ran lilo -v and rebooted without success.

Quote:
Originally Posted by elcore View Post
Did you make new initrd on boot partition or elsewhere?
In the /boot partition.

Quote:
Originally Posted by elcore View Post
Are there modification dates on kernel image and initrd image, and more specifically do they match?
Yes, they match.

Quote:
Originally Posted by elcore View Post
Have you still got these kernel packages which you used to upgrade the machine, and if so, could you provide a md5/sha* checksums of these packages?
I do not, since I have rolled back to Slackware64 15.0's default of 5.15.19 taken from the DVD. The DVD was correctly downloaded (as torrent) and burned (checksum was correct). When I did the upgrade I did through slackpkg+, so checksum was checked as correct.

Quote:
Originally Posted by Loomx View Post
Just checking: did you upgrade the kernel-modules package? I read through your messages and you didn't specifically say.
If you forgot, they would be still on 5.15.27, which would explain why neither the latest kernel nor the install kernel boot.
All kernel related packages are now at 5.15.19, I checked with /var/log/packages.

Quote:
Originally Posted by colorpurple21859 View Post
What happens if you boot without initrd, will the kernel load to the point it locks up?
That I have not tried, I will as soon as I come back from a work trip on Monday.

Quote:
Originally Posted by colorpurple21859 View Post
What where all the commands used to chroot into the system?
I followed this guide. These are the commands I enter after logging in with root on the DVD:
  • cryptsetup luksOpen /dev/sda2 cryptvg
  • vgchange -ay
  • mount /dev/cryptvg/root /mnt
  • mount /dev/sda1 /mnt/boot
  • mount /dev/cryptvg/home /mnt/home
  • mount -o bind /dev /mnt/dev
  • mount -o bind /sys /mnt/sys
  • mount -o bind /proc /mnt/proc
  • swapon /dev/cryptvg/swap
  • chroot /mnt /bin/bash

Quote:
Originally Posted by enorbet View Post
it is entirely possible that a change unrealized by you took place while doing something else as some software these days does write to BIOS/UEFI Firmware and some can change settings with little or no notice, especially if you also run Win10 or 11.
Slackware was my only system, and on my last successful boot I was only in TTY1 and TTY2 inside runinit 3. In TTY1 I was running lynx, in TTY2 I first run slackpkg+, the mkinitrd and then lilo -v. Nothing else, not even X11. I really doubt something changed in the BIOS...

Last edited by Delcaran; 06-07-2022 at 09:11 AM. Reason: Fix typo
 
Old 05-30-2022, 09:02 AM   #45
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
add
Code:
mount -o bind /run /mnt/run
to the mix, chroot into the system and run
Code:
geninitrd
Maybe that will generate a working initrd
 
  


Reply

Tags
initrd, lilo, luks, lvm, reboots



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
reboot after LILO says 'Loading slackware..... bios check complete' - over and over what Slackware - Installation 11 06-08-2021 08:00 AM
Post Kernel Boot - BIOS CHECK unsuccessful linuxbird Linux - Hardware 1 07-05-2012 04:43 PM
reboot freezes after yast update run, reboot for kernel update sparkbot Linux - Software 2 11-15-2006 06:34 PM
Reboot after "BIOS Data Check Successful" using 2.6 kernel tvynr Linux - Software 2 10-05-2005 12:28 PM

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

All times are GMT -5. The time now is 03:58 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