LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-03-2005, 06:57 PM   #1
jasone
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160

Rep: Reputation: 30
Lilo = gone, installation of a new one?


Hi

Iīve searched this forum for answer but didnīt find any so now iīm asking you guys.

I installed my slackware to my disk that also had windows on it. Now I reinstalled windows on the disk and my lilo is gone. Lilo was installed to the masterdisk and Im sure that I didnīt do anything wrong in the windows installation.

So my question is: How do I create a new lilo? Im using a laptop without a floppy drive and I cant get into linux just windows. Im considering on trying with knoppix if thats possible otherwise I hope someone can tell me how to do this from windows. Note that I cant reinstall just the lilo with my slackware dvd the only option is to reinstall the whole thing again =(

Thanks in advance!
 
Old 04-03-2005, 07:04 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Boot from your slack CD and proceed to the command prompt.
mount the existing slack partition and then 'chroot' to the mount point.
Make sure the /etc/lilo.conf is correct and rerun /sbin/lilo
 
Old 04-03-2005, 07:16 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Why not just use the CD to boot into the current system ???.
Being a new Slack user, this question piqued my interest, so just tried it. Works fine - currently posting from my system booted this way. Bypassed my boot-loader altogether.
 
Old 04-03-2005, 07:29 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Yea, do that instead, much easier then my fix. Just specify the root parrition at the lilo: prompt.
 
Old 04-04-2005, 02:33 AM   #5
jasone
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160

Original Poster
Rep: Reputation: 30
Thanks!

I'm at work now but iīll try as soon as I get home!

So when a boot from my slack dvd I could just login to my regular user account and then startx? If thats the case it is awesome but I still would like to know how to create a new lilo so I don't need the disc every time.
 
Old 04-04-2005, 03:59 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Boot (install) CD 1, and read the text on the screen - do as it says to boot your system.
It will be your disk-based build, merely bypassing the boot-loader.

Use the instruction above from crabboy to re-install lilo. Couldn't be easier.
 
Old 04-04-2005, 10:20 AM   #7
jasone
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160

Original Poster
Rep: Reputation: 30
Iīve mounted my slack partition (only have one) opend lilo.conf with vi but itīs empty? Thats wierd huh? Btw I dont know how to " 'chroot' to the mount point.
Make sure the /etc/lilo.conf is correct and rerun /sbin/lilo"

Sorry for all the questions but I guess far to new to linux to be able to do this without help.
 
Old 04-04-2005, 10:44 AM   #8
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Here are the steps that I originaly suggested:

- boot from CD. Use the CDs root filesystem.
- # mount /dev/hda1 /mnt ( this is specific to your machine, it's the linux paritiion)
- # choot /mnt
- # cd /etc
- verify that lilo.conf is correct.
- # /sbin/lilo


As sysg00 suggests:

- Boot from CD and specify current root partition at lilo prompt.
- lilo: root=/dev/hda1
- # /sbin/lilo


You can see that mounting your root makes it much easier.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo.conf help for new installation simcox1 Slackware - Installation 7 05-06-2005 05:23 PM
manual LILO installation hdo781 Slackware - Installation 2 01-20-2005 01:46 PM
Lilo installation, wierdness sporks Slackware - Installation 0 01-13-2005 08:51 PM
LILO installation problems miketwalker Linux - Software 0 05-17-2004 07:29 PM
lilo - installation failed davep Linux - Software 2 04-29-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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