LinuxQuestions.org
Visit Jeremy's Blog.
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-09-2006, 04:27 PM   #31
pcwiz84
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Rep: Reputation: 0
Post Problem installing LILO after GRUB autoinstalled


I installed KNOPPIX on a computer at a church who wants systems for playing games. It automatically installs GRUB, but it isn't very useful to me nor anyone else who would see it. I want to install LILO instead of GRUB but this is the error I get:

Unrecognized token "! Please edit /etc/lilo.conf before running lilo!" at or above line 20 in file '/etc/lilo.conf'

ERROR: correct /etc/lilo.conf manually and rerun /sbin/lilo
any help guys?
pcwiz84
 
Old 03-09-2006, 06:01 PM   #32
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
can you post your /etc/lilo.conf here?
 
Old 03-14-2006, 11:38 AM   #33
pcwiz84
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Rep: Reputation: 0
I can, but not from this computer. I'll have to go to the box with KNOPPIX installed, put the /etc/lilo.conf file on a flash drive and move it to a box with internet access to show it to you.
 
Old 03-14-2006, 06:38 PM   #34
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
we will be waiting for that
 
Old 03-15-2006, 04:37 PM   #35
pcwiz84
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Rep: Reputation: 0
Well, ya know what? I couldn't find it!!! I did a "/" search on "lilo.conf" and it came up with NOTHING!!! What do I do??? There are programs that configure LILO, but it just won't work!!!
 
Old 03-15-2006, 05:00 PM   #36
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If your Knoppix has installed Grub then you will not have /etc/lilo.conf.

Instead you will have /boot/grub/menu.lst.

List it here and we may be able to advise a translation.

Personally I prefer Grub as it is a lot simpler to use and more forgiving than Lilo.
 
Old 03-15-2006, 06:30 PM   #37
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
have you mounted your root partition and chroot into it??
 
Old 03-19-2006, 01:09 PM   #38
pcwiz84
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Rep: Reputation: 0
Never mind

I just gave up and decided to install a different distro (one that has over 150 games on it). Thanx anyway.
 
Old 03-22-2006, 10:45 AM   #39
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190

Rep: Reputation: 30
I installed Slack 10.2, then my wife wanted to have a winblow$ environment so I installed WinXP pro. Just as I thought, the MBR was overwritten, but I knew how to fix it. Here is the way to do it:

1) Boot off the emergency disk you should have made when you installed Slack.
2) After you login, su over to root and type liloconfig.
3) On the menu that pops up, choose expert.
4) Choose new header file, then tell it to add linux then windows, with the labels you want it to display on the lilo menu. Set the amount of time you want to lilo to display before it auto boots. I choose 30 seconds because it gives me ample time to choose. These are all options on the expert menu.
5) Tell it to install Lilo. Now you have the option to install the superblock, MBR and a floppy. Most people on here tell you to install to MBR, especially when you are dual-booting because if you install it to root superblock, then you run into problems booting because Linux has to be the first boot partition, and it's really not that functional in the first place, so go ahead and install to MBR. All Lilo is, is a boot loader/manager, the same as NTLDR, or Grub.
6) When you get back to the command line, type /sbin/lilo. It should say something like "Added Linux. Added Windows." Restart your computer and you should be good to go.

Kid
 
Old 03-22-2006, 11:02 AM   #40
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
thekid,

You know nowaday with a LiveCD you can boot up a Linux and "chroot" to your Slackware

To add XP to Slackware, say it is in hda3, requires only 2 lines added to /etc/lilo.conf in Slackware
Code:
other=/dev/hda3
label=Windows_XP
To restore Lilo back into MBR with amended addition you just need to type at a root terminal
Code:
lilo -b /dev/hda
To re-configure Lilo again with liloconf program is another method.
 
Old 03-22-2006, 12:50 PM   #41
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190

Rep: Reputation: 30
Quote:
Originally Posted by saikee
thekid,

You know nowaday with a LiveCD you can boot up a Linux and "chroot" to your Slackware

To add XP to Slackware, say it is in hda3, requires only 2 lines added to /etc/lilo.conf in Slackware
Code:
other=/dev/hda3
label=Windows_XP
To restore Lilo back into MBR with amended addition you just need to type at a root terminal
Code:
lilo -b /dev/hda
To re-configure Lilo again with liloconf program is another method.
Thanks, I'm still a myself and still learning, though it gets easier the more I use it. I'll have to remember this the next time I have a problem.
 
  


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
Problem installing LILO from YAST jrattner1 SUSE / openSUSE 1 08-06-2005 04:08 AM
How To Keep LILO From Installing philipogletree Debian 1 08-05-2005 06:53 AM
Open bsd messed up my MBR, problem with installing Slackware lilo klemen Slackware 2 04-06-2005 05:37 AM
Lilo vs Grub - PROBLEM with lilo nelsonnery Linux - Software 2 09-09-2004 11:09 AM
Problem with Lilo not updating (yes I ran lilo after changing the conf) webguy Linux - General 2 06-24-2001 07:12 PM

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

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