LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2004, 07:33 PM   #1
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
reinstalling lilo in gentoo?


I've managed to kill my gentoo install by trying to put mandrake 10 beta 2 on the other partition.

I don't suppose anyone could explain how I'd go about reinstalling the lilo so I can boot the gentoo?

the gentoo is on /dev/hda5 and the boot partition is on /dev/hda2 if that matters at all?

regards

John

p.s. I've tried to have a go at re-installing using the liveCD, and I've read load's of doc's, but i'm totally lost, and in rather over my head

Last edited by bigjohn; 02-15-2004 at 07:36 PM.
 
Old 02-15-2004, 07:36 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
pop in a rescue disk, and run :
lilo
 
Old 02-15-2004, 07:39 PM   #3
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
I tried that, and didn't get anything.

erm, I then tried to "emerge" lilo, and it just says command not found.

I'm presuming that when I fire up the cd, I'm still working from the drive, and not actually in the /dev/hda5 install. Hence no emerge facility.

regards

John
 
Old 02-15-2004, 07:43 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
i have never used gentoo, but i assume the below instructions that i will link would be the same ..
click here

are you saying you did that ?
and when you say, you tried that, and didn't get anything, what do you mean exactly ?
 
Old 02-16-2004, 03:35 AM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Tried booting your Gentoo using the Mandrake bootloader(whether its grub or lilo)?
 
Old 02-16-2004, 12:32 PM   #6
Stanley56
Member
 
Registered: May 2003
Location: Belgium
Distribution: Gentoo, Debian
Posts: 44

Rep: Reputation: 15
Just insert the gentoo cd, boot to your root and then configure the /boot again like in the installation instructions.
When configuring grub.conf, just add the Mandrake option.

Gentoo = control
 
Old 02-16-2004, 03:49 PM   #7
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Well, I tried DrOzz's link suggestion. ZIP. I just get told no such image found, for either linux rescue or just rescue.

demonbanes idea won't work. The mandrake version of lilo will start the windows XP, but not mandrake (the current install effort is 10 beta 2, which won't boot).

So I found some stuff as to what I might be doing wrong, but to no avail.

I did mount -t proc none /mnt/gentoo/proc and then did the chroot stuff, as part of the error from yesterday said something about /proc/partitions so I wondered if that had anything to do with the problem.

I wasn't sure what else I should do from there, so I did /sbin/lilo which gave me this:

Warning: '/proc/partitions' does not match '/dev' directory structure
Name change: '/dev/ide/host0/bus0/target0/lun0/disc -> '/dev/hda'
The kernel was compiled with DEVFS_FSm but the 'devfs=mount' was omitted as a kernel command-line boot parameter; Hence, the '/dev' directory structure does not reflect DEV_FS device names.
Fatal: open /boot/kernel-2.4.20-gentoor6: No such file or directory


So I did emerge lilo and after a while it just stopped "doing it's thing" and said emerge lilo failed and then said the same stuff as above.

I even tried doing this, as I managed to look into /boot yesterday, but don't know how I did it, and I don't know if there was a copy of the kernel info there, cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage but I still seem to be getting nothing.

Can you see what I'm doing wrong ? or what I should try next ?

many thanks

John
 
Old 02-16-2004, 04:01 PM   #8
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Well - if I remember right you first slap in the gentoo CD and then mount the partitions.
mount /dev/hda5 /mnt/gentoo
mount /dev/hda2 /mnt/gentoo/boot
after that a 'chroot /mnt/gentoo /bin/bash' and running lilo should be good enough.Of course that will only boot gentoo afterwards - you'll have to configure lilo to boot mdk if you want to.Damn mdk did the same to me once.Specified not to install a bootloader and it slapped one on anyway.
 
Old 02-17-2004, 01:30 AM   #9
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Thing is crashmeister, the mandrake won't boot anyway. Something's gone wrong with the install of the mandrake 10 beta 2 - it just hangs half way through the boot, and I don't know how cure that one!

regards

John
 
Old 02-17-2004, 04:22 AM   #10
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Last one I did was mdk 9 and I am not planning on any further installs ;-)
Can you get at least the gentoo part going?
 
Old 02-18-2004, 01:51 PM   #11
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Cos we haven't got a gentoo distro forum, I found their's.

After various suggestions, I've ended up doing a re-install, just to save my sanity. That, in itself, isnt' too much of a problem.

The difficulty is, that after downloading up to date versions of the 2 disc liveCD set, got as many instructions as I can find and "gone for it", I've ended up with a full install, but without any window managers yet.

When I got to the reboot stage, to get pre compiled binary packages from the 2nd disc, it went and told me that there was no mount point for /dev/cdrom /mnt/cdrom and wouldn't let me do much from there.

Don't get me wrong, I feel that "portage" is vastly superior to any version of rpm and apt-get. But it's a bit of a pig, to have to download and compile - kde, last time I had to do it, was 175 megs, and it took 15 hours to download and compile each "sub package" one at a time.

And the install worked brilliantly.

But this time, it obviously didn't get everything installed, or I missed something in the install guide, cos I've just spent about 2 hours downloading/compiling/installing XFree 4.3 and now all I've got to do is to work out how I get kde (the portage tree is now at kde3.2 so that should be excellent - when I finally manage to sort it !!!)

Oh, and I doubt whether I'll bother with mandrake until version 10 final is available.

regards

John
 
Old 02-18-2004, 06:46 PM   #12
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Try 'emerge -s kde' - if it isn't there you don't got it.
As for the cd:You should have something like this in fstab:

/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0

and you'll need /mnt/cdrom as a mount point of course.
If you want to compile it yourself you might want to check what you really want because 'emerge kde' installs everything kde.Try to install kdebase first and then just get anything else you might want - who needs noatun and all that crap anyway?

You can also try to search the gentoo forums for something like 'kde compile time'. There are some tricks to have it compiled faster.

Last edited by crashmeister; 02-18-2004 at 06:47 PM.
 
  


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
Reinstalling LILO? moosegoose Slackware 5 11-11-2005 02:35 PM
Problem reinstalling lilo thebored Linux - Software 4 04-19-2005 01:30 AM
reinstalling lilo deft Linux - Software 8 04-08-2004 10:03 AM
LILO reinstalling help Andrew Hruska Slackware 3 01-05-2004 08:53 PM
Having some trouble reinstalling lilo cav Linux - General 3 08-27-2003 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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