Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-15-2004, 07:39 PM
|
#1
|
LQ Newbie
Registered: Jan 2004
Posts: 8
Rep:
|
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
|
|
|
06-15-2004, 11:30 PM
|
#2
|
Member
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799
Rep:
|
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
|
|
|
06-15-2004, 11:36 PM
|
#3
|
Member
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481
Rep:
|
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.
|
|
|
06-16-2004, 04:55 AM
|
#4
|
Member
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799
Rep:
|
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
|
|
|
06-16-2004, 06:56 AM
|
#5
|
Member
Registered: Sep 2003
Location: Spijkenisse, Netherlands
Posts: 119
Rep:
|
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.
|
|
|
06-16-2004, 09:15 PM
|
#6
|
LQ Newbie
Registered: Jan 2004
Posts: 8
Original Poster
Rep:
|
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...
|
|
|
06-16-2004, 10:08 PM
|
#7
|
Member
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481
Rep:
|
What did you change in your lilo.conf? can you post your lilo.conf
|
|
|
06-16-2004, 11:20 PM
|
#8
|
Senior Member
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272
Rep:
|
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.
|
|
|
06-17-2004, 07:46 AM
|
#9
|
Member
Registered: Mar 2004
Distribution: Fedora
Posts: 254
Rep:
|
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
|
|
|
06-19-2004, 10:30 AM
|
#10
|
LQ Newbie
Registered: Jan 2004
Posts: 8
Original Poster
Rep:
|
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
|
|
|
06-19-2004, 11:25 AM
|
#11
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
@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.
|
|
|
06-19-2004, 08:00 PM
|
#12
|
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032
Rep:
|
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.)
|
|
|
07-07-2004, 11:55 PM
|
#13
|
Member
Registered: Oct 2003
Distribution: Mandrake 10.1, Knoppix 3.7
Posts: 153
Rep:
|
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.
|
|
|
07-08-2004, 12:01 AM
|
#14
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
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
|
|
|
07-08-2004, 01:38 AM
|
#15
|
Member
Registered: Oct 2003
Distribution: Mandrake 10.1, Knoppix 3.7
Posts: 153
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|