LinuxQuestions.org
Help answer threads with 0 replies.
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 01-23-2015, 09:06 AM   #1
jefsa
Member
 
Registered: Mar 2012
Posts: 83
Blog Entries: 1

Rep: Reputation: Disabled
Re-installing LILO


Hello All,

For some unknown reason LILO dose not complete the boot. I found a process to reinstall it using the following commands:
mkdir /foo

mount /dev/hda3 /foo ; this is where Slackware is mounted
mount --bind /proc /foo/proc
mount --bind /sys /foo/sys
mount --bind /dev /foo/dev

chroot foo

vi /etc/lolo.conf
lilo
exit
reboot

I was able to only get to: mount --bind /dev /foo/dev where I get the following error message:

mount: wrong fs type, bad option, bad superblock on /dev, missing codepage or helper program, or other error.
In some cases useful info is found in syslog - try dmesg | tail or so.

Now I am really stuck, what do I do now?

Thanks for any help!!

Regards,

Jeff
 
Old 01-23-2015, 09:11 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Check if it really hda3 and not sda3
 
Old 01-23-2015, 09:24 AM   #3
jefsa
Member
 
Registered: Mar 2012
Posts: 83

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hello willysr,

It's a older machine with a older version of slackware installed, hda3 is correct.

Thanks.

Regards,

Jeff
 
Old 01-23-2015, 12:34 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
If lilo doesn't complete booting, how are you able to get where you are? And how old is the system? What version of Slackware are you running?
 
Old 01-23-2015, 01:49 PM   #5
jefsa
Member
 
Registered: Mar 2012
Posts: 83

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hi bassmadrigal,

This computer is probably pre 2010 (I did not purchase this). It has Slackware 12.2/Windows XP installed (of course we do not use XP).
When I restared the computer I selected from LILO to boot up Linux. During the boot process the screen froze. After reseaching I found
a procedutre to re-install LILO using a CD copy of 12.2 that we have. Using the instructions as stated from my original thread, I am unable to mount the device and complete the steps. I know this is old but it is important that I get this working. This is the only backup (12.2) that we have. This is what I have to deal with at this time.

Thanks for any help!

Regards,

Jeff
 
Old 01-23-2015, 02:06 PM   #6
Richard Twat
LQ Newbie
 
Registered: Jul 2009
Location: The Netherlands
Distribution: Slackware
Posts: 19

Rep: Reputation: 19
What happens if you just skip this step ?

Otherwise perhaps you need to create these devices:
Code:
cd /foo/dev
mknod -m 600 console c 5 1 
mknod -m 666 null c 1 3 
mknod -m 666 zero c 1 5
But 12.2 is a long time ago
 
Old 01-23-2015, 02:11 PM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I'm prefacing this that this is just attempting to figure out why /dev won't do a bind mount, at the bottom, I question the reason your computer failed to boot.

After booting up the disk, check mount to see what is mounted, I believe the directories that need the mount --bind done are already mounted by Slackware (or maybe that is after the installer completes?). I know after I complete setup, I've always just cd'd into /mnt (where Slackware mounts your harddrive to install everything to) and then run chroot /mnt and then update my lilo.conf file (I add compact so it boots faster). No bind commands needed.

But I wonder if your order has anything to do with it? All guides I have looked at said to mount /dev first, then /proc and /sys after (although, the latter two varied in what order). I doubt this is the issue, because it just doesn't make sense, but I'm throwing it out there anyway.

Last option I found on this site is to copy the contents of /dev into /foo/dev-temp, then do a bind mount of /foo/dev-temp to /foo/dev. It may be worth a shot.

Now, the computer not completing a boot could be indicative of something other than a lilo issue. If after you selected to boot linux, the system boots a bit, it may not be related to lilo at all and if so, reinstalling lilo may not lead to a fix. When the screen froze, did it retain the text or did you see the text before it disappeared? If so, what was it working on when it froze? Was Slackware 12.2 working before you restarted the computer? What did you do prior to the restart? Have you tried booting off the disc to your installation, not the setup disc? You can do that by reading the text at the prompt and typing the suggested line to boot a broken system? You would type the following after you boot off the cd when it shows boot: after a bunch of text (normally, if you want to start the install process, you'd just press enter). You'd just need to replace /dev/sda1 with your drive that Slackware is installed to. Doing this should get you to a working system if lilo or the kernel is the culprit.

Code:
huge.s root=/dev/sda1 rdinit= ro
 
Old 01-23-2015, 03:34 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Hi Jeff,

it's possible that the "mount" command in Slackware 12.2 installer was buggy, or feature incomplete if a link to Busybox (I couldn't check as for some reason I can't unpack the initrd).

To rule out that (or not) you can boot an installer for Slackware 14.1, then run the commands you mentioned.

The installer don't have to be at the same version as the installed system as long as both have the same Architecture (x86 32-bit in your case). And as long as you don't install in Slackware 12.2 packages intended for Slackware 14.1, of course (maybe you could just choose a SOURCE of packages for 12.2 when asked, but that would be another topic).

Also, if all you need is backup files, you don't have to chroot, you can do that directly from the installer, e.g. copying the files to an USB stick.
 
Old 01-23-2015, 04:31 PM   #9
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
If you are booting from a Slackware install CD, you should be able to reconfigure your lilo with:
Code:
mount /dev/hda3 /mnt
liloconfig /mnt
 
Old 01-23-2015, 05:34 PM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
@saulgoode: if you are as lazy as me, no need to provide a $1 to liloconfig as if $1 is null it will set /mnt as target anyway, if /usr/lib/setup/SeTpartitions is readable (and it is if we are in the installer).

By the way (that's my turn to be slightly off-topic), Pat kept in liloconfig (commented out) code to handle OS2, "in case it makes a comeback".

Last edited by Didier Spaier; 01-23-2015 at 05:37 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
LILO ERROR #1 - Lilo boot loader not installing in VectorLinux 7.0 Light edition. Vexe VectorLinux 4 02-09-2013 09:41 AM
[SOLVED] Edit lilo.conf, run /sbin/lilo, but lilo won't take changes lukameen Slackware 2 02-10-2012 12:10 PM
[SOLVED] LILO fails when run from live CD after installing Slack (skipped LILO during setup) sysfce2 Linux - Newbie 7 08-04-2009 12:16 AM
Installing LILO undeadpenguin Arch 2 11-09-2003 07:32 AM
Installing LILO Afterwards Savedadogs Linux - General 11 04-01-2002 04:07 AM

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

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