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 02-17-2022, 05:13 PM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
Access to crashed Installed Slackware Current Root


Crashed my slackware current during slackpkg upgrade.
Can I access intalled root system from Slackware Live which I am able to boot.
Why is install Slackware option locked on the Live version?

Last edited by NightSky; 02-17-2022 at 05:16 PM.
 
Old 02-17-2022, 05:19 PM   #2
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
you can. you might want to try and hunt down if something failed to upgrade properly and reinstall that. you could theoretically use the ROOT= with slackpkg to help do all that. you might need to manually run fsck.ext4 or fsck for whatever file system you are using.
 
1 members found this post helpful.
Old 02-17-2022, 06:06 PM   #3
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
Error Message at boot

Thank you khronosschoty

error updating slackware crashed before running #slackpkg clean-system and #lilo -v
Now cant boot into linux:
Loading Linux EBDA is big; Kernel setup stack overlaps Lilo second stage.

So do I sign into Slackware Live as root and mount my four partition slackware system?
From Slackware Live GUI Desktop I can see the partitions but to access them it asked for authentication. Do I use my Slackware System's root password? or Should I go into terminal mode?
fyi i'm having a back few days. Appreciate all your time
 
Old 02-17-2022, 06:19 PM   #4
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
well if it were me, I would boot Slackware live; open a terminal, su -l root. Then if I had a luks and or lvm root system I would handle that. Then I would run the proper fsck.$filesystem on the partitions; afterwards I would mount the root file system to something like /mnt. I would then mount the other partitions to wherever they go.(for example /mnt/boot for my boot partition if I have one) then I would would do something like:

mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
mount -o bind /proc /mnt/proc
mount -o bind /dev/pts /mnt/dev/pts

I might copy over my /etc/resolv.conf to /mnt/etc/resolv.conf
then I would chroot /mnt /bin/sh -l

then I would make sure everything that needs upgraded is upgraded, check for broken packages and reinstall those finally check my /etc/lilo and run /sbin/lilo (making sure of course everything in lilo is right and the kernel and the initrd is present)

This is all assuming whatever damage took place didn't leave me without a functional system to chroot into... if not (that is if I can't chroot into a working system) then I would try and fix that system (outside of the chroot) by reinstalling the broken packages using slackpkg or upgradepkg using the ROOT=/mnt , since ROOT=/mnt is where I would mount everything like in the example above -- before finally doing the steps I covered in brief above.

EDIT: this is all assuming I felt like things were worth saving -- in the case where I thought a reinstall might be wiser / easier, I would just backup my /home and reinstall. However, I'm assuming that its probably just a simple issue and lilo needs re-run. Perhaps you ended up with a busted kernel or something.

Last edited by khronosschoty; 02-17-2022 at 06:43 PM.
 
1 members found this post helpful.
Old 02-17-2022, 06:44 PM   #5
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
Wow! Thanks. Can't I just run #slackpkg clean-system & #lilo -v lol
I have no luks or lvm that's too advanced for me. I'll try follow you instructions. Thank you bunches
 
Old 02-17-2022, 06:51 PM   #6
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by NightSky View Post
Wow! Thanks. Can't I just run #slackpkg clean-system & #lilo -v lol
I have no luks or lvm that's too advanced for me. I'll try follow you instructions. Thank you bunches
Maybe reinstall lilo and all the kernel stuff and go from there, inside of the chroot. I'm not sure of your abilities here, as in how good you are at checking for broken packages. The the thing to do is to check what packages you have installed against the package tree -- see https://ftp.osuosl.org/pub/slackware...re64/FILE_LIST

Compare those packages to whats inside of /var/log/packages/ and lastly check the contents of each package entry found in that list to whats present.
 
1 members found this post helpful.
Old 02-17-2022, 08:06 PM   #7
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
What are the commands to compare /var/log/packages ?
 
Old 02-17-2022, 08:13 PM   #8
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
fyi I'm running xfce no kde no lvm, no luks, no raid. Should have backedup my Docs and Book Marks, crash was unexpected. Runlevel went to GUI on its own, I don't like GUI login. Think my video card failed, I replaced it.
 
Old 02-17-2022, 08:22 PM   #9
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by NightSky View Post
fyi I'm running xfce no kde no lvm, no luks, no raid. Should have backedup my Docs and Book Marks, crash was unexpected. Runlevel went to GUI on its own, I don't like GUI login. Think my video card failed, I replaced it.
you could still back those up, just follow the mounting procedure above, locate the files you want to cp and cp them over to an external. alternatively, you could run slackpkg and just reinstall everything and then just install anything missing, if finding broken packages is too much work. slackpkg reinstall all for example.

ROOT=/mnt slackpkg update
ROOT=/mnt slackpkg reinstall-all
ROOT=/mnt slackpkg upgrade-all

or just cp over what you want and start with a fresh install. The point is there is many ways to go about this. I'm not sure what the best solution for you is.

Last edited by khronosschoty; 02-17-2022 at 08:24 PM.
 
1 members found this post helpful.
Old 02-17-2022, 08:46 PM   #10
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
Think I will go ahead and copy the files I want over to my separate HDD and then go through the steps you proposed. But if I recall correctly there are a few commands to compare lists?
If so what are they?
 
  


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
[SOLVED] Disable remote root access but allow local root access-- possible? bskrakes Linux - Security 4 02-21-2019 04:02 PM
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM
Slackware64 -current vs Slackware -current or Slackware onebuck Slackware 16 06-23-2009 01:19 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM

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

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