View previous topic :: View next topic |
Author |
Message |
selfless n00b
Joined: 11 Oct 2003 Posts: 40
|
Posted: Mon Oct 13, 2003 8:52 pm Post subject: Lilo won't start, /boot empty, no operating system |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Mon Oct 13, 2003 9:41 pm Post subject: |
|
|
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 |
|
|
selfless n00b
Joined: 11 Oct 2003 Posts: 40
|
Posted: Mon Oct 13, 2003 10:37 pm Post subject: |
|
|
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 |
|
|
ectospasm l33t
Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
|
Back to top |
|
|
selfless n00b
Joined: 11 Oct 2003 Posts: 40
|
Posted: Mon Oct 13, 2003 11:06 pm Post subject: |
|
|
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 |
|
|
ectospasm l33t
Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
Posted: Mon Oct 13, 2003 11:20 pm Post subject: |
|
|
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 |
|
|
meowsqueak Veteran
Joined: 26 Aug 2003 Posts: 1549 Location: New Zealand
|
Posted: Mon Oct 13, 2003 11:22 pm Post subject: |
|
|
'cp' is correct. |
|
Back to top |
|
|
selfless n00b
Joined: 11 Oct 2003 Posts: 40
|
Posted: Mon Oct 13, 2003 11:51 pm Post subject: |
|
|
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 |
|
|
selfless n00b
Joined: 11 Oct 2003 Posts: 40
|
Posted: Mon Oct 13, 2003 11:55 pm Post subject: |
|
|
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 |
|
|
selfless n00b
Joined: 11 Oct 2003 Posts: 40
|
Posted: Tue Oct 14, 2003 12:23 am Post subject: |
|
|
How is the file
initrd-2.4.20-gentoo-r6
initally created? _________________ This, too, shall pass. |
|
Back to top |
|
|
ectospasm l33t
Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
Posted: Tue Oct 14, 2003 4:35 am Post subject: |
|
|
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 |
|
|
selfless n00b
Joined: 11 Oct 2003 Posts: 40
|
Posted: Tue Oct 14, 2003 7:14 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|