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 |
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-08-2003, 06:21 PM
|
#1
|
|
Member
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62
Rep:
|
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. 
|
|
|
|
07-08-2003, 06:25 PM
|
#2
|
|
Senior Member
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345
Rep:
|
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  )
|
|
|
|
07-08-2003, 06:26 PM
|
#3
|
|
Member
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62
Original Poster
Rep:
|
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
|
|
|
|
07-08-2003, 06:35 PM
|
#4
|
|
Member
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62
Original Poster
Rep:
|
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.
|
|
|
|
07-08-2003, 06:40 PM
|
#5
|
|
Senior Member
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345
Rep:
|
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.
|
|
|
|
07-08-2003, 06:46 PM
|
#6
|
|
Member
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62
Original Poster
Rep:
|
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.
|
|
|
|
07-08-2003, 06:55 PM
|
#7
|
|
Senior Member
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345
Rep:
|
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  )
|
|
|
|
07-08-2003, 06:56 PM
|
#8
|
|
Member
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62
Original Poster
Rep:
|
hmmm, strange, maybe i didn't do soething right...i'll try again
|
|
|
|
07-08-2003, 07:01 PM
|
#9
|
|
Member
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62
Original Poster
Rep:
|
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.
|
|
|
|
07-08-2003, 07:07 PM
|
#10
|
|
Senior Member
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345
Rep:
|
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).
|
|
|
|
07-08-2003, 07:25 PM
|
#11
|
|
Member
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62
Original Poster
Rep:
|
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.
|
|
|
|
07-08-2003, 07:30 PM
|
#12
|
|
Senior Member
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345
Rep:
|
If you do so before chrooting. Sure, go for it. Edit the file, chroot and then lilo. Fingers crossed.
|
|
|
|
07-08-2003, 07:42 PM
|
#13
|
|
Member
Registered: Jul 2003
Location: /dev/random
Distribution: Ubuntu 5.10, Fedora Core 4, Gentoo
Posts: 62
Original Poster
Rep:
|
man i hate being a newbie...
it sucks.
anyway that worked, and lilo boots right. thanks again for your help.
|
|
|
|
07-09-2003, 06:18 PM
|
#14
|
|
Senior Member
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345
Rep:
|
Hey, we've all got to start somewhere! Keep at it.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:40 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
|
|