On Wed, Sep 10, 2014 at 01:12:27PM -0500, Bruce Dubbs wrote:
> Ken Moffat wrote:
>
> > The error is in grub.cfg - I suspect you have not copied the lfs
> >kernel to the debian /boot partition. So, if the lfs kernel is on
> >sda6 along with the lfs system, try
> >
> > set root='hd0,6'
> >
> >but ONLY do that in the lfs entry.
>
> Wrong syntax I think. The traditional syntax is:
>
> set root=(hd0,6)
>
Not wrong, but perhaps different from what you are used to.
This is what I'm using on the i686 7.6 system I have just built -
menuentry "LFS-7.6-minimal i686 3.16.2 (sda9)" {
insmod ext2
set root='hd0,msdos15'
linux /vmlinuz-3.16.2-sda9 root=/dev/sda9 ro
}
What I have in my various grub.cfg files is based on what
grub-mkconfig itself offered.
>
> You can specify a partition uuid. No initrd required. For example:
>
> linux /bzImage root=PARTUUID=666c2eee-193d-42db-a490-4c444342bd4e ro
>
> The partition UUID is not the same as a filesystem UUID and the partition
> table must be of type GPT (another advantage of GPT). To find it, type
> something like:
>
> $ blkid /dev/sdb1
> /dev/sdb1: UUID="e337b2bd-3899-4307-b374-e1c4cb1b5b8e" TYPE="ext4"
> PARTLABEL="Linux filesystem" PARTUUID="4a1bdb85-2937-4c44-96bc-c9387c43779a"
>
> There are advantages and disadvantages. A disadvantage is, as stated above,
> when restoring a backup. An advantage is more consistency on large hard
> drives where partitions may be created and deleted more frequently.
>
Interesting, I had forgotten about partition UUIDs because I have
only just tried GPT partitions.
Since we are now mentioning them, for the boot disk (presumably
/dev/sda) on a machine using a bios [ rather than EFI, which is a
hornet's nest of possibilities ] with a GPT partition, the
recommendation in http://www.gnu.org/software/grub/manual [ section
3.4 ] is that partition 1 should be a BIOS Boot Partition. This is
NOT the /boot partition. Unfortunately, links will not let me copy
and paste.
ĸen
--
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.
--
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