On 4/22/07, Joel Means <[EMAIL PROTECTED]> wrote:
> This post didn't seem to make it to the list, so I am forwarding it now.

now it does :)

From: Dan D. <[EMAIL PROTECTED]>
> On Sun Apr 22 18:09 , Joel Means <[EMAIL PROTECTED]> sent:
>
> >Dan D. wrote:
> >>
> >> On Sun Apr 22 16:55 , 'Tijnema !' [EMAIL PROTECTED]> sent:
> >>
> >>> On 4/22/07, Dan D. [EMAIL PROTECTED]> wrote:
> >>>> Hello!
> >>>>
> >>>> setup (hd0)
> >>>>  Checking if "/boot/grup/stage1" exists... no
> >>>>  Checking if "/grup/stage1" exists... yes
> >>>>  ...
> >>>>
> >>>> is this ok? I don't know, I think it isn't, because the
> >> LFS-Book
> >>>> sais "If all went well, GRUB will have reported finding its
> >> files
> >>>> in /boot/grub."
> >>>>
> >>>> I've mounted
> >>>> /dev/hda1 in $LFS/boot and
> >>>> /dev/hda3 in $LFS
> >>>>
> >>>> There are 3 files in /boot/grup/
> >>>> e2fs_stage1_5
> >>>> stage1
> >>>> stage2
> >>>>
> >>> It is normal because you have a serperate boot partition, they
> >> path is
> >>> relative to the boot partition. And i guess you mean it found
> the
> >>> files in /grub? Else i don't know what you did :P
> >>
> >> but there isn't a /grub directory.
> >>
> >> I did:
> >>
> >> root (hd0,0)
> >> setup (hd0)
> >>
> >> /boot/grub/menu.lst contains:
> >> ...
> >> title LFS 6.2
> >> root (hd0,0)
> >> kernel /boot/lfskernel-2.6.16.38 root=/dev/hda1
> >>
> >> from hostsystems point of view is there a
> >> /mnt/lfs/etc/grub/menu.lst broken symbolic link
> >> to '/boot/grub/menu.lst'
> >>
> >> in /boot/grub are 4 files now, the new one is menu.lst ;)
> >>
> >> If I try to boot I can choose 'LFS 6.2' but then
> >> ...
> >> kernel /boot/lfskernel-2.6.16.38 root=/dev/hda1
> >>
> >> Error 15: File not found
> >>
> >> but /boot/lfskernel-2.6.16.38 exists!!
> >>
> >> what's wrong?
> >>
 >Grub isn't looking in $LFS/boot, it is looking directly
> at /dev/hda1.
> >Since you have mounted /dev/hda1 on $LFS/boot, you see your files
> at
> >$LFS/boot/*, but grub sees them at (/dev/hda1)/*.  So your
> menu.lst
> >should have
> >
> >kernel /lfskernel-2.6.26.38 root=/dev/hda3
> >
> >I hope that makes sense.
> >Joel
>
> Ahh, I understand. The mount point /boot doesn't exists at that
> time and root means the root directory (/), that resides on hda3.
>
> The kernel is loading now, but I get another Error:
>
> VFS: Cannot open root device "hda3" or unknown-block(0,0)
> Please append a correct "root=" boot option
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(0,0)
>
> If I change in menu.lst the 'root (hd0,0)' entry to 'root
> (hd0,2)', the kernel wont load and I get an Error 15: File not
> found again.

hmm, are you sure your $LFS partition is /dev/hda3?
You should check it by running
fdisk -l /dev/hda
and you will see that there are atleast 2 partitions, one is /dev/hda1
(/boot) and there should be another one containing root.

I have nearly the same setup as you, i have /dev/hdb1 = /boot,
/dev/hdb2 = /, /dev/hdb3 = swap.
I installed grub with the same commands as you did (except that i used
hd1 where you used hd0), and my kernel line in menu.lst is this one:
kernel /lfskernel-2.6.26.38 root=/dev/hdb2

And that works fine.
I guess that your / partition isn't /dev/hda3, but /dev/hda2.
You could change it in /boot/grub/menu.lst each time, but you could
also edit the command temporary when booting, so that when the grub
boot menu appears, you can press e to edit a line, and then go one
down, so that it highlights your kernel line. then press e again, and
change the last option to another disk, you could try /dev/hda2
/dev/hdb3 /dev/hdd3 or even /dev/sda3 /dev/sdb3 in case you are using
SATA.

Tijnema
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to