LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-15-2004, 07:39 PM   #1
dllmetal
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Rep: Reputation: 0
Can't install lilo after reinstalling windows


hi everyone,

the deal is that I had both SLACK and winxp on my pc, but I needed to reinstall win (keeping my SLACK) hoping to renstall lilo after win writes the new MBR... So I did it...

what happens is that i try to install lilo (by inserting the 1º slack cd mounting my root partition an running pkgtool) I get a lilo error #127.

My partition table is now the following:

NAME...............FLAGS............PART TYPE.....FS TYPE................. LABEL.........

hda5.....................................logical............NTFS..................... [^A]
hda2................boot..............primary.........W95 FAT32 (LDA)
hda3.....................................primary.........LINUX SWAP
hda4.....................................primary.........LINUX EXT2

HDA5 FOR WIN
HDA2 FOR DATA

furthermore i can't run command lilo (won't recognize)

I'm makng a project and I urgently need linux.

Thanks
 
Old 06-15-2004, 11:30 PM   #2
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
I'm not sure what you mean by '(won't recognize)', but maybe you should try using Tom's root/boot. It's the best rescue disk I've used. After you boot from Tom's, run 'man lilo' and 'man chroot'. One of them gives an excellent explanation of the procedure for reinstalling Lilo. It's always worked for me.

Enjoy!
--- Cerbere
 
Old 06-15-2004, 11:36 PM   #3
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
You dont actually have to reinstall lilo, if you use your slack cd 1 then mount your linux install
then chroot to that directory
e.g. chroot /mnt/linuxinstall
then just run lilo it should rewrite what everything to the MBR.
 
Old 06-16-2004, 04:55 AM   #4
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
dopefish, what you are describing IS the process of (re)installing Lilo. In this context, this means installing the boot loader. I don't think dllmetal was referring to re-installing the Lilo package. I know that I certainly didn't.

From the Lilo man page:
Code:
DESCRIPTION
       lilo  installs  a  boot loader that will be activated next
       time you boot.  It has lots of options.
Enjoy!
--- Cerbere
 
Old 06-16-2004, 06:56 AM   #5
Marsanghas
Member
 
Registered: Sep 2003
Location: Spijkenisse, Netherlands
Posts: 119

Rep: Reputation: 15
Don't know what the error 127 means, but anyway... you don't need to reinstall the lilo tgz package ( you mentioned using pkgtool ) That is... if you didn't remove the lilo package... otherwise you DO need to re-install it :-)

You do however need to issue the lilo command.
If you can't directly access it... go to the /sbin directory and type ./lilo

Hope that helps.


Last edited by Marsanghas; 06-16-2004 at 07:02 AM.
 
Old 06-16-2004, 09:15 PM   #6
dllmetal
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Original Poster
Rep: Reputation: 0
well I think that you didn't understand me... I want to modify my lilo.conf so I've tried to edited manually and then run lilo... but the result was a fatal error when it was adding windows, so as that didn't result I tried to overwrite lilo with pkgtool but no result (at the end of the configuration it says: it wasn't possible to write lilo - that's one of the mosdt explicit error messages I've ever seen ) does anyone knows what can I do? or at least what is the problem??

Is my partition table correct??

Cerbere I can access that my slack cd and live cds but the problem is that it just not installs and I don't have an idea why...
 
Old 06-16-2004, 10:08 PM   #7
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
What did you change in your lilo.conf? can you post your lilo.conf
 
Old 06-16-2004, 11:20 PM   #8
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
Since you seem to be kind of new at this. If you can boot into your Slack install, just try using liloconfig to reset lilo, installing it to the mbr. If your conf file points to root then rerunning lilo won't likely help.
 
Old 06-17-2004, 07:46 AM   #9
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
i got something related question to this one
i have win, slackware installed (bootloader is lilo)
now im gona to install Fedora on teh same box, as you ppl know fc will install grub.
just wana confirm if i choose to install grub, would it give me menu and Slackware in this menu?
what will be the best choice when chooseing b/w lilo and grub?
thanks in advance
 
Old 06-19-2004, 10:30 AM   #10
dllmetal
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Original Poster
Rep: Reputation: 0
ringwraith, it's not that, 've done this many times but and installed it always at mbr.... but I just don't know what is happening! well anyways I will post my lilo.conf it a few minutes
 
Old 06-19-2004, 11:25 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
@mardanian

No GRUB from Fedora Core won't load Slackware by default but it's easy to set it up to load Slack as long as you know the right partition that Slack is installed and the kernel you want to use. I usually make a symlink to the kernel so that it is /boot/vmlinuz instead of vmlinuz-xxxx so that if I change it I don't have to reconfigure grub. Here is a copy of my /boot/grub/menu.1st from Slack .

default=0
timeout=10
lba32
color red/black green/blue
title Slackware
kernel (hd1,0)/boot/vmlinuz ro root=/dev/hdb1 vga=788
title FedoraCore
kernel (hd1,2)/boot/vmlinuz ro root=/dev/hdb3 rhgb
/boot/initrd.img
title WindowsXP
rootnoverify (hd0,0)
makeactive

Note that my Fedora Core partition is on /dev/hdb3 which is hd1,2 to grub.

Last edited by reddazz; 06-19-2004 at 11:26 AM.
 
Old 06-19-2004, 08:00 PM   #12
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Quote:
Originally posted by mardanian
i got something related question to this one
i have win, slackware installed (bootloader is lilo)
now im gona to install Fedora on teh same box, as you ppl know fc will install grub.
just wana confirm if i choose to install grub, would it give me menu and Slackware in this menu?
what will be the best choice when chooseing b/w lilo and grub?
thanks in advance
Okay, first things first:

Fedora will give you the option to not install a bootloader, I recommend this option. Here's my reasoning:

It's much easier to set up LILO, in my opinion. Sure, on-the-fly boot commands can be nice, but I find it unnecessary if you're prepared like me and know how to boot off of a boot disk. Second: I cannot boot to XP with GRUB. I've tried for hours trying to figure out how to get it to work, but because of my config, I just can't get it to work. LILO, however, works well. All I suggest is to never use LILO's automated install setup. For me, it's been nothing but trouble, but maybe that's because I install my bootloaders on HDE, and I leave HDA alone as a backup in case I need to boot into XP and something bad happened with whichever bootloader was previously using (Such as bad hard drive, etc, all I have to do is switch my hard drive booter through my BIOS.)
 
Old 07-07-2004, 11:55 PM   #13
d4d4n9
Member
 
Registered: Oct 2003
Distribution: Mandrake 10.1, Knoppix 3.7
Posts: 153

Rep: Reputation: 30
Hi reddazz,
Hope that you still monitor this thread
Pardon me if this question is a silly one, but if I have to make a symlink to the kernel like your advice so that it is /boot/vmlinuz instead of vmlinuz-xxxx in lilo.conf, where do I put that command. Do I have to issue the command in a terminal console ?
Thanks in advance.
 
Old 07-08-2004, 12:01 AM   #14
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
You can make a symbolink link by using: ln -s /boot/vmlinuz-xxxx /boot/vmlinuz of course in a terminal as root.

EDIT: Forgot to say that slackware by default comes with this symlink
 
Old 07-08-2004, 01:38 AM   #15
d4d4n9
Member
 
Registered: Oct 2003
Distribution: Mandrake 10.1, Knoppix 3.7
Posts: 153

Rep: Reputation: 30
Thanks gbonvehi,
I presumed that once I issued, as root, this command in terminal : ln -s /boot/vmlinuz-xxxx /boot/vmlinuz, it will stay recognized every time I login to my box. won't it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Reinstalling LILO? moosegoose Slackware 5 11-11-2005 02:35 PM
Reinstalling Windows XP-How to bring back LILO? Micro420 Mandriva 4 03-29-2005 06:19 AM
Reinstalling Lilo after windows install n0rman- Linux - Software 3 09-19-2004 08:14 AM
reinstalling lilo deft Linux - Software 8 04-08-2004 10:03 AM
LILO reinstalling help Andrew Hruska Slackware 3 01-05-2004 08:53 PM

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

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