LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-08-2003, 06:21 PM   #1
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Rep: Reputation: 15
Angry mdk rescue won't fix lilo


alright, i recently reinstalled windows on my machinedon't kill me, i want windows.

*ditto ducks the incoming fruit...

anyhows, when i use the mdk rescue utility to reinstall lilo, it complains about an image not existing for a kernel, i hate to say no longer exists (so i was lazy and never removed it from the list). now it won't restore lilo into the MBR.

so is there an easy way to use the rescue disk, to go into the directory where the lilo configuration file and use vim (which exists on this rescue disk BTW) to edit it?

all i really need to know is where the lilo configuration files are located in mandrake.

i'm not sure why, but the "dir" command is missing in the rescue disk, so i can't just start snooping on my own for the lilo file...

i made a floppy rescue disk for linux before installing windows, but i never tested it, and low and behold, it doesn't work!!



thanks for your help.
 
Old 07-08-2003, 06:25 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Boot from your Mandy rescue CD.
Select 'mount your partitions under /mnt', when that's done, 'go to console'.
The type:
chroot /mnt
(this changed your current / to what was just mounted as /mnt)
lilo
(this should run lilo and put your config back into your mbr, if that's where it was before your decided to dance with the devil )
 
Old 07-08-2003, 06:26 PM   #3
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
hehe, let me try that, be back in a few minutes.

i don't dance with evil...i let it in my sandbox...to kick sand in it's eyes :P
 
Old 07-08-2003, 06:35 PM   #4
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
first it says that it's "added entry-foo" all 5 entries are added, at the end it says:

Fatal: no images defined or default image doesn't exist

come to think of it there was no default image, i set lilo up so i had to select an os each time.

and one of the entries as i said, doesn't point to a valid image, or a valid root path.
 
Old 07-08-2003, 06:40 PM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Ok, are you happy editing your lilo.conf file by hand (emacs or vi should both work in rescue mode, especially after you've chrooted)? If so, then do the necessary and rerun lilo, if not, then try and post the contents of your lilo.conf file here.

Oh, and if you're lucky, after you've chrooted, you might be able to type init 3 (or even 5) and get to a working Linux system. If you'd be more comfortable editing/reconfiguring from there, then give it a go.

<edit>
Oh, and you might want to put in a default image. If you want to make it so that you must select an OS to boot, then remove the 'timeout=xx' line, but make sure you still have the 'prompt' line.
</edit>

Last edited by Thymox; 07-08-2003 at 06:43 PM.
 
Old 07-08-2003, 06:46 PM   #6
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
i'll try it through vi first.

where is the lilo.conf located?

vi, vim or emacs DON'T work in chroot. emacs doesn't exist in normal rescue either.

edit:
oh, yeah i'll add a default.
init doesn't work.

oops, forgot the don't...

Last edited by dittohead; 07-08-2003 at 06:56 PM.
 
Old 07-08-2003, 06:55 PM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
emacs doesn't exists on the rescue disk (it is bloody huge), but when you've chrooted, if it was on your original Mandy system, you can use it.

Oh, and the lilo.conf file will be in /etc, so once you've chrooted, type emacs /etc/lilo.conf (or vi )
 
Old 07-08-2003, 06:56 PM   #8
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
hmmm, strange, maybe i didn't do soething right...i'll try again
 
Old 07-08-2003, 07:01 PM   #9
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
hmm, vi still don't work under chroot....

when i tell the rescue disk to mount everything to /mnt it says that my /home and /usr partitions won't because i either have too many mount points, or because that the fs type is wrong. they are both ext3.
 
Old 07-08-2003, 07:07 PM   #10
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
So long as those are the only two, you should still be fine.
Rescue menu --> mount partitions under /mnt
Rescue menu --> goto console
Console --> chroot /mnt
Console --> emacs /etc/lilo.conf
(make changes)
Console --> lilo
Console --> reboot

This should work absolutely fine - I had to do it myself earlier (I added something to my append section that would completely lock things up, hey ho).
 
Old 07-08-2003, 07:25 PM   #11
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
hmm, still won't work, but i can still use vim without chroot.

and because /etc is mounted at "/mnt/etc" i can edit the file from there.
 
Old 07-08-2003, 07:30 PM   #12
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
If you do so before chrooting. Sure, go for it. Edit the file, chroot and then lilo. Fingers crossed.
 
Old 07-08-2003, 07:42 PM   #13
dittohead
Member
 
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
man i hate being a newbie...

it sucks.

anyway that worked, and lilo boots right. thanks again for your help.
 
Old 07-09-2003, 06:18 PM   #14
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Hey, we've all got to start somewhere! Keep at it.
 
  


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 rescue. bruse Mandriva 2 04-30-2005 09:44 AM
how do i fix lilo when i get a LIL- while booting saqres Linux - General 6 10-07-2004 03:34 PM
How to fix LILO? 2dope Linux - Software 3 05-15-2004 08:13 PM
can I fix lilo with slax live cd? walterbyrd Slackware - Installation 1 04-01-2004 11:44 AM
Use rescue disk to fix x problem? General Dude Linux - Newbie 2 08-14-2003 12:34 PM

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

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