Ayan Kumar Nath wrote:
Hi Guys,

I am building LFS for the first time and am just not able to make the
system boot after the Grub Install.

Device     Boot   Start      End  Sectors  Size Id Type
/dev/sda1  *       2048  1026047  1024000  500M 83 Linux
/dev/sda2       1026048 41943039 40916992 19.5G 8e Linux LVM

Disk /dev/sdb: 20 GiB, 21474836480 bytes, 41943040 sectors

Disk /dev/mapper/centos-swap: 2 GiB, 2147483648 bytes, 4194304 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/centos-root: 17.5 GiB, 18798870528 bytes, 36716544 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

It's a virtual machine running CentOS and LFS is installed on /dev/sdb

That's not obvious from the above.

You need to use a initrd for booting into a LVM partition.  See BLFS.
Plain LFS does not support LVM.

I would tar up the entire LFS build and save to real host. Then reinstall Centos without LVM. Recreate/format the partition and untar LFS back to the new 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