Anthony Price wrote:
As far as I can tell it is looking at the correct partition - update-grub
does this and a manual check suggests that it is OK. /boot/boot.cfg looks
like this:

Hopefully that is /boot/grub/grub.cfg.


# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd0,2)

menuentry "GNU/Linux, Linux 3.16.2-lfs-7.6" {
         linux   /boot/vmlinuz-3.16.2-lfs-7.6 root=/dev/sda2 ro
}

As seen from the host system, LFS  is on /dev/sda8 which is the second
partition inside the extended partition sda2

If it is on /dev/sda8 on the host, then it's on /dev/sda8 on LFS too. What can be confusing is that other installations also write to the grub.cfg file, but they may not know where.

Did you run 'grub-install /dev/sda' ?

If so, then other distros' version of /boot/grub/grub.cfg are not used. Note that some distros use /boot/grub2/grub.cfg, but the question here is "Where is the /boot directory?" I highly recommend a separate /boot partition (100-200 MB) for all distros to share.

In any case, if you did run grub-install, then you need:

set root=(hd0,8)
menuentry "GNU/Linux, Linux 3.16.2-lfs-7.6" {
          linux   /boot/vmlinuz-3.16.2-lfs-7.6 root=/dev/sda8 ro
}

If you do use a separate /boot directory, say sda4, grub.cfg would
be:

set root=(hd0,4)
menuentry "GNU/Linux, Linux 3.16.2-lfs-7.6" {
          linux   /vmlinuz-3.16.2-lfs-7.6 root=/dev/sda8 ro
}

Note that in this case the kernel location is relative to / (the unmounted boot partition).

  -- Bruce

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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to