Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lilo won't start, /boot empty, no operating system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
selfless
n00b
n00b


Joined: 11 Oct 2003
Posts: 40

PostPosted: Mon Oct 13, 2003 8:52 pm    Post subject: Lilo won't start, /boot empty, no operating system Reply with quote

Oops. I didn't RUN /sbin/lilo the first time through, so I'm now trying to recover from my omission. I'm booting to the install CD #1, mounting stuff, and CHROOTing to /bin/bash.

To check the kernel version, for lilo.conf, I try to mount /boot, and always get an almost empty listing - there is a lost+found with some bytes in it, but I can't seem to navigate to see what is IN lost+found. There is also a symbolic link that only says boot -> . When I try to mount /boot, I get /dev/hda1 already mounted or /boot busy.

Because I cannot see what is in the /boot, I'm *guessing* that, because I installed over the last week or so (since 01 October 2003), my kernel version might be

-2.4.20-gentoo-r6

at least, that's what I put in lilo.conf <frown>

I will appreciate any advice or assistance. <smile>
_________________
This, too, shall pass.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32166
Location: 56N 3W

PostPosted: Mon Oct 13, 2003 9:41 pm    Post subject: Reply with quote

selfless,

If /boot is empty you didn't copy your kernel there after you built it.
The symlink of /boot/boot to . is to keep backwards compatibility with old versions of grub. Delete it if you want.

Copy you kernel, rerun lilo, then try to boot again.

Regards,

NeddySeagoon
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
selfless
n00b
n00b


Joined: 11 Oct 2003
Posts: 40

PostPosted: Mon Oct 13, 2003 10:37 pm    Post subject: Reply with quote

Thanks for the tips, NeddySeagoon!

>Copy you kernel, rerun lilo, then try to boot again.

I'm game - but from where do I copy it, please?
I guess I'll grep for it?

And, I assume I'll copy it to /boot right?
_________________
This, too, shall pass.
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Mon Oct 13, 2003 10:41 pm    Post subject: Reply with quote

copy /usr/src/linux/arch/<arch, e.g. i386>/boot/bzImage to /boot...
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
selfless
n00b
n00b


Joined: 11 Oct 2003
Posts: 40

PostPosted: Mon Oct 13, 2003 11:06 pm    Post subject: Reply with quote

ectospasm wrote:
copy /usr/src/linux/arch/<arch, e.g. i386>/boot/bzImage to /boot...


Thanks ectospasm!

I did the copy with cp - should I have done "copy?"

Now bzImage is in /boot, but lilo still barfs because the bzImage thingie isn't yet creating files like kernel-2.4.20-gentoo-r6
_________________
This, too, shall pass.
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Mon Oct 13, 2003 11:20 pm    Post subject: Reply with quote

selfless wrote:

I did the copy with cp - should I have done "copy?"

Now bzImage is in /boot, but lilo still barfs because the bzImage thingie isn't yet creating files like kernel-2.4.20-gentoo-r6


cp was the right command. You need to change the name of /boot/bzImage to whatever is referenced in lilo.conf, like such:

Code:
host root# mv /boot/bzImage /boot/kernel-2.4.20-gentoo-r6


If it's called something different in lilo.conf, change it to whatever that says.
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Mon Oct 13, 2003 11:22 pm    Post subject: Reply with quote

'cp' is correct.
Back to top
View user's profile Send private message
selfless
n00b
n00b


Joined: 11 Oct 2003
Posts: 40

PostPosted: Mon Oct 13, 2003 11:51 pm    Post subject: Reply with quote

I copied bzImage to rename it kernel-2.4.20-gentoo-r6, and now lilo is failing with complaints about not having initrd-2.4.20-gentoo-r6 in the /boot

I'm running a find for initrd*, but haven't got results yet.

How was I supposed to have created all the necessary files in /boot? Which step does that? Maybe that step failed and I didn't recognize the failure?
_________________
This, too, shall pass.


Last edited by selfless on Tue Oct 14, 2003 12:27 am; edited 1 time in total
Back to top
View user's profile Send private message
selfless
n00b
n00b


Joined: 11 Oct 2003
Posts: 40

PostPosted: Mon Oct 13, 2003 11:55 pm    Post subject: Reply with quote

Thanks for all the help!

Still looking for a file to put in /boot for initrd-2.4.20-gentoo-r6.

Lilo also seems to be complaining about the old master boot record (MBR) on the drive (it had NT4). Lilo is saying the drive doesn't match the setup in the partitions file - and it doesn't, of course, because I didn't wipe the MBR before the install (I only reformated). The 2Gig drive was all one partition when I started this install.

Anyway, is there a way to get lilo to just write-over or delete the old MBR? I looked at the lilo --help, and tried some things, but they give me permission denied errors (as root).
_________________
This, too, shall pass.


Last edited by selfless on Tue Oct 14, 2003 12:26 am; edited 2 times in total
Back to top
View user's profile Send private message
selfless
n00b
n00b


Joined: 11 Oct 2003
Posts: 40

PostPosted: Tue Oct 14, 2003 12:23 am    Post subject: Reply with quote

How is the file

initrd-2.4.20-gentoo-r6

initally created?
_________________
This, too, shall pass.
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Tue Oct 14, 2003 4:35 am    Post subject: Reply with quote

Did you use genkernel? If you didn't, and compiled your kernel yourself, you shouldn't need an initrd line in lilo.conf. It should look something like this:
Code:
image=/boot/kernel-2.4.20-gentoo-r6
   label=linux
   read-only
   root=/dev/hda3


I've never used genkernel, so I don't know where to look for that initrd file.
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
selfless
n00b
n00b


Joined: 11 Oct 2003
Posts: 40

PostPosted: Tue Oct 14, 2003 7:14 pm    Post subject: Reply with quote

Idid use genkernel, and it looks like that step failed. I re-ran genkernel, and it's failed with DMA errors.

I'm using genkernel --config to get rid of lots of stuff and I don't need, and I booted the install CD #1 with NODMA, hoping that the DMA problem will go away.

Again, thanks for all the help.
_________________
This, too, shall pass.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum