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 07-29-2019, 12:53 PM   #1
Bob Barry
LQ Newbie
 
Registered: Sep 2016
Posts: 6

Rep: Reputation: Disabled
fix lilo goof


I unthinkingly hit "return" after updating Slackware Current instead of typing "lilo". I have a backup kernel, so all I have to do to fix things is boot to the backup kernel, login as root, type "lilo", reboot, and carry on normally. _BUT_ I took advice to change to graphic login "because it's so much easier", and the cursor is now visible but unresponsive after boot so I cannot login. I'm looking for advice from someone who really knows the system -- suggestions on how to fix my system without reinstalling from scratch would be appreciated.
 
Old 07-29-2019, 01:49 PM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
You can boot from the install DVD, mount your root partition in a chroot, and then run lilo. See this post for a step-by-step guide (in your case skip generating an initrd and and editing lilo.conf if you don't need to do that):

https://www.linuxquestions.org/quest...6/#post5558235
 
Old 07-29-2019, 02:31 PM   #3
baumei
Member
 
Registered: Feb 2019
Location: USA; North Carolina
Distribution: Slackware 15.0 (replacing 14.2)
Posts: 365

Rep: Reputation: 124Reputation: 124
I have from time to time made that error, and the fix was not difficult. It should be readily possible to fix your system. What do you have to boot the computer: a) an 'emergency boot disk' on a USB flash-drive, made back at the time the OS was installed; or b) a USB flash-drive with "usbboot.img" properly installed; or c) something else? (Note: usbboot.img would come from a repository containing slackware-current/usb-and-pxe-installers.)

Last edited by baumei; 07-29-2019 at 02:43 PM.
 
Old 07-29-2019, 03:31 PM   #4
nycace36
Member
 
Registered: Feb 2004
Location: SFBayArea, CA
Distribution: Debian-based, Slackware 10x+
Posts: 185

Rep: Reputation: 22
Question similar lilo goof (or not)

After reviewing one of the latest security advisories here http://www.slackware.com/security/vi...ecurity.704001, I decided to also run /sbin/lilo from a good /etc/lilo.conf (with the proper upgradepkg'd kernel-huge-4.4.186-x86_64-1.txz as per https://www.linuxquestions.org/quest...te-4175657830/) and just as montagdude suggested using the link at https://www.linuxquestions.org/quest...6/#post5558235.

But when I re-booted after very specifically instructing the /etc/lilo.conf file to use the advised vmlinuz-huge-4.4.186 kernel, the reboot refused to accept keyboard input when the login: prompt appeared

Using the steps outlined in https://www.linuxquestions.org/quest...6/#post5558235, is it still possible to do a regressive install with a prior kernel (e.g., kernel-huge-4.4.172 or the original kernel-huge-4.4.12) and recover functionality without having to completely re-install Slackware 14.2 ?
 
Old 07-29-2019, 03:53 PM   #5
Labinnah
Member
 
Registered: May 2014
Location: Łódź, Poland
Distribution: Slackware-current
Posts: 185

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by Bob Barry View Post
_BUT_ I took advice to change to graphic login "because it's so much easier", and the cursor is now visible but unresponsive after boot so I cannot login. I'm looking for advice from someone who really knows the system -- suggestions on how to fix my system without reinstalling from scratch would be appreciated.
You mean you change init level to 4? Try Alt+Ctl+F1(or F2 to F6) and try login in text console.

If this it also broken, you can try add
Code:
init=/bin/bash
to lilo commandline (at boot time). However this boot system in very, VERY, crude mode. There are no startup scripts run, an you must everything do manually (mounting, set $PATH, etc). But if you are novice in Linux this maybe little to hard for you. If so better try "montagdude" advice.
 
Old 07-29-2019, 04:54 PM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
To boot to run level 3, hit Tab at the lilo screen, then add ' 3' i.e. space then 3, to the line.
 
2 members found this post helpful.
Old 07-30-2019, 10:30 AM   #7
Bob Barry
LQ Newbie
 
Registered: Sep 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
This is the simplest and least error-prone answer -- many thanks!
 
  


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
Apt / Synaptic goof BenGoodrich Debian 3 08-16-2005 03:07 AM
Newbie Goof!! TChumley Debian 5 11-23-2004 10:34 AM
mounting goof up paragon Linux - Newbie 2 05-14-2004 11:06 AM
Help with file-type association goof for folders... Sgaileach1 Linux - Software 7 02-02-2004 03:33 PM
Goof up in fstab! marksstroud Linux - Newbie 3 10-14-2001 12:24 AM

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

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