LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-27-2004, 08:56 AM   #1
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Rep: Reputation: 30
Install Windows and then repair LILO


I have dualboot with Slackware 10.0 and Windows 2000 (haven't been used since the install). I want to install Windows XP instead, and then Windows's bootloader will overwrite LILO. How do I repair LILO when I have installed Windows?
 
Old 12-27-2004, 09:00 AM   #2
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
my favorite is to use the GAG Bootloader.

It's a very small ISO to make a bootable CDfor installing the bootloader. It's 100% graphical, and simple to use. That way, install Windows and do it's thing.. thenpop in the GAG disc and reboot, it's very self-explainatory and easy to set up.

Of course, once you have that done, if you decide you would rather use good 'ole LILO, than just re-install from inside Slack.

And there's always the "right" way by using a boot-disk which should have been created upon install.. but if you're like me, you probably didn't make one.. so check out GAG.. you'll like it!
 
Old 12-27-2004, 09:59 AM   #3
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Original Poster
Rep: Reputation: 30
okey thanks for that one.

But is it not possible to use the Slackware CDs?
 
Old 12-27-2004, 10:04 AM   #4
nosaku
LQ Newbie
 
Registered: Nov 2004
Location: India
Distribution: Slackware 10
Posts: 21

Rep: Reputation: 0
After installing the Windows XP, boot your Slackware Linux from the Slackware bootable CD (first installation CD).

At the boot prompt enter: (assuming your root file system is on partition hda6...be careful to enter correct one)

root=/dev/hda6 ro

Once you are booted into Linux, login as root and enter:

# lilo

This will intall the LILO again...

That's it.

Regards,
Satish.
 
Old 12-27-2004, 10:07 AM   #5
piffy
LQ Newbie
 
Registered: Aug 2004
Location: Italy
Distribution: Suse, Knoppix
Posts: 7

Rep: Reputation: 0
Essentially, any CD able to boot and installed linux should do.
What I do is as follows:
1) Boot the installed system with a rescue CD (I use Suse "manual installation" method)
2) Ignore any warning and get to the root shell
3) (Possibly) edit linux.conf
4) Type lilo.

Alternatively, it is possible to use any rescue CD, chroot to the mounted disk and do the same.
 
Old 12-27-2004, 10:17 AM   #6
Vizy
LQ Newbie
 
Registered: Oct 2003
Location: Slovenia
Posts: 23

Rep: Reputation: 15
Hello!

If you have installed lilo on your linux partition and not in the MBR (master boot record), than you should be fine and oyu can use the Slackware CDs.

When installing windows xp the installation overwrites the MBR and makes your windows partition bootable. That is why you boot straight into windows without seeing lilo.

So boot from your slackware cd and use what ever kernel you like (just like you were installing slack) ...usually thats bare.i. When everything boots you must login as root. Then just run : cfdisk

Now all you have to do is change the boot flag of your Linux partition and remove boot flag from your windows partition, save changes (write changes to disk) and quit this program.

now pres ctrl + alt + del for your computer to restart and you should see your lilo again

NOTE: this will only work if you have lilo installed on your linux partition and NOT in the MBR.

I hope that this will help you!
Happy Hollydays
 
Old 12-27-2004, 10:28 AM   #7
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Original Poster
Rep: Reputation: 30
Thanks folks. I have LILO installed on MBR.
 
Old 12-27-2004, 10:51 AM   #8
Vizy
LQ Newbie
 
Registered: Oct 2003
Location: Slovenia
Posts: 23

Rep: Reputation: 15
|Ok than you have to do what osaku said.

That should work for sure.
 
Old 12-29-2004, 05:03 PM   #9
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Original Poster
Rep: Reputation: 30
I have done it now, but I had to do it in an other way.

The "root=/dev/hda3 ro" didn't work, it said "ro" was no command. Just "root=dev/hda3" did nothing.

This is what I did:

- Mountet my Linux root partition
- Ran "lilo -r /mnt"

Very easy! The "-r" argument defines the root directory.
 
Old 12-29-2004, 05:30 PM   #10
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
Just for future reference, nosaku should have said type "bare.i root=/dev/hda3 ro" or rather than bare.i you can type linux or any kernel. The directions are actually printed on the screen right above the boot prompt.
 
Old 12-30-2004, 01:18 AM   #11
beanerjo
Member
 
Registered: Aug 2004
Location: New Zealand
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
Or after booting with Slackware installation CD,

Code:
# mkdir /c
# mount /dev/hda3 /c
# chroot /c
# lilo
# exit
# reboot
 
Old 12-30-2004, 01:20 AM   #12
piffy
LQ Newbie
 
Registered: Aug 2004
Location: Italy
Distribution: Suse, Knoppix
Posts: 7

Rep: Reputation: 0
Thumbs up

>>- Ran "lilo -r /mnt"
>>Very easy! The "-r" argument defines the root directory.

Right! You learn a new trick every day!
 
Old 12-30-2004, 01:29 AM   #13
beanerjo
Member
 
Registered: Aug 2004
Location: New Zealand
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
>>>- Ran "lilo -r /mnt"
>>>Very easy! The "-r" argument defines the root directory.
>
>Right! You learn a new trick every day!

Yes! That's a bit simpler than chroot'ing. I'll use it next time. Thanks, objorkum and piffy.

Last edited by beanerjo; 12-30-2004 at 01:31 AM.
 
Old 12-30-2004, 05:56 AM   #14
nosaku
LQ Newbie
 
Registered: Nov 2004
Location: India
Distribution: Slackware 10
Posts: 21

Rep: Reputation: 0
Quote:
Originally posted by ringwraith
Just for future reference, nosaku should have said type "bare.i root=/dev/hda3 ro" or rather than bare.i you can type linux or any kernel. The directions are actually printed on the screen right above the boot prompt.
Thanks for correcting me. In a hurry I forgot to enter bare.i. Thanks again.

Regards,
Satish.
 
  


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
How to repair X Windows? dwarf007 Linux - General 6 12-23-2004 04:57 PM
No more LILO after Windows install Kanaflloric Linux - General 4 11-16-2004 02:36 PM
base gentoo installed, can't boot, need to repair lilo. how? Junior41180 Linux - Distributions 6 11-10-2004 04:45 AM
Can't install lilo after reinstalling windows dllmetal Slackware 16 07-08-2004 09:52 PM
How install windows but keep lilo neurotic Linux - Software 3 01-05-2004 06:13 PM


All times are GMT -5. The time now is 11:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration