Ken Moffat wrote:
On Tue, Sep 09, 2014 at 09:00:13PM -0700, Michael Havens wrote:
On Tue, Sep 9, 2014 at 7:43 PM, Ken Moffat <[email protected]> wrote:
It was less than perfect (darn). after rebooting and selecting the lfs OS
the response I got was an immediate:
error: file not found
then it also said to press any key to continue which took me back to the
grub menu. The real bad thing is that it didn't tell me which file was not
found.
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)
The kernel itself does not know about UUIDs. They are handled in
the initrd, and LFS does not use an initrd. For ext2/3/4 you can
_mount_ by label [ man e2label ] which allows things like this in
/etc/fstab :
LABEL=home /home auto defaults,noatime 1 2
but I believe the grub entry still needs to point to root=/dev/sdaX
and therefore it would not help.
Also, for LFS the UUID stuff in grub.cfg is not needed, and will
cause pain if you ever have to restore backups to a new disk.
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.
-- Bruce
-- 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