LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2006, 04:40 PM   #1
fatenabu
Member
 
Registered: Sep 2004
Posts: 131

Rep: Reputation: 15
installing lilo


Hello,
I have two linux distros installed but I can not access them because windows screwed up my boot loader. I know both distros are their though. I was wondering if I could download lilo off of the net and install it some how? Please help guys I miss my Linux.

Thanks,

Dustin
 
Old 01-05-2006, 07:07 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by fatenabu
Hello,
I have two linux distros installed but I can not access them because windows screwed up my boot loader. I know both distros are their though. I was wondering if I could download lilo off of the net and install it some how? Please help guys I miss my Linux.

Thanks,

Dustin
You could always download and burn a Knoppix disk then boot with it mount your / partition containing your lilo.conf then chroot into it and run lilo to restore the MBR. Alternatively if you have a rescue option with your install disks whereby you can boot with it then chroot into your install and run lilo or just simply boot into the system then run lilo.
 
Old 01-05-2006, 07:11 PM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Any small bootable system on CD will do the job nicely. I tend to keep a Debian netinstall CD (~185Mb) handy just for this purpose - booting from it, opening a console, mounting the root partition, chrooting to the mounted root partition, rescuing the system within it's own environment.
 
Old 01-05-2006, 07:14 PM   #4
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
Just boot up any Live CD and type
Code:
mkdir /mnt/temp
mount /dev/hdax /mnt/temp
chroot /mnt/temp
lilo -b /dev/hda
exit
reboot
The hdax= the root of your Linux partition. Putting Lilo into hda mean whole disk or MBR. If you use a Sata it should be sda and you have to change hdax to sdax as well.

Last edited by saikee; 01-06-2006 at 02:15 AM.
 
Old 01-05-2006, 07:20 PM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Note that running the "reboot" command like that may not always work. You may have to "exit" from the chroot first... just by typing "exit" after lilo has done it's magic, and then "reboot" once you're out of the chroot environment.
 
Old 01-05-2006, 07:38 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
So what distros are they? Many distros can be rescued using their installation discs.
 
Old 01-05-2006, 11:26 PM   #7
fatenabu
Member
 
Registered: Sep 2004
Posts: 131

Original Poster
Rep: Reputation: 15
They are Mandrivia 2006 and I also have Xandros 3.0 Deluxe. I no longer have my cds to install them because I let a friend borrow them. He is on Christmas break. I tried to use an older mandrivia cd to install the boot loader and it wouldn't work.
 
Old 01-06-2006, 02:17 AM   #8
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
Thymox is right there should be an "exit" before reboot because without it the reboot will bring the user back to the Live CD Linux.

I added the exit in the instructions.

The Live CD is the general method. Using the installation CD the instructions are similar except the name of the temporary directory has been pre-selected.

Last edited by saikee; 01-06-2006 at 02:19 AM.
 
Old 01-06-2006, 03:23 PM   #9
fatenabu
Member
 
Registered: Sep 2004
Posts: 131

Original Poster
Rep: Reputation: 15
hello,
I found and old xandros cd and installed its boot loader. I finally got it to work thanks guys

Dustin
 
  


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
Re-installing lilo lpn1160 Linux - Newbie 5 11-07-2005 04:18 AM
How To Keep LILO From Installing philipogletree Debian 1 08-05-2005 06:53 AM
LILO not installing...help! nikd Slackware 5 06-07-2004 12:48 PM
Installing LILO mcd Linux - Software 4 08-24-2003 11:32 PM
Installing LILO Afterwards Savedadogs Linux - General 11 04-01-2002 04:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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