Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am currently using Ubuntu 11.10. I have just finished my first Linux From Scratch build, and now I am trying to make it bootable. My system currently has Grub2 installed. I am trying to figure out how to add an entry for Linux from Scratch to Grub2. The partitions I am using are /dev/sd5 (the root partition), /dev/sda6 (the boot partition), /dev/sda7 (the home partition), and /dev/sda8 (the swap partition). Does anyone know how to do this?
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders, total 390721968 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 identifier: 0x00003f4a
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 207154828 103576390+ 83 Linux
/dev/sda2 207157246 253292543 23067649 5 Extended
/dev/sda5 207157248 228128767 10485760 83 Linux
/dev/sda6 228130816 228325375 97280 83 Linux
/dev/sda7 228327424 249098239 10385408 83 Linux
/dev/sda8 249100288 253292543 2096128 82 Linux swap / Solaris
The /ect/fstab file for my host system (Ubuntu) is the following:
# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=2b04dc66-c2b2-4e25-ac01-5a3936372264 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda8 during installation
UUID=6067c5ee-0a8e-4c79-ad79-fd9743808f1f none swap sw 0 0
I tried your suggestion, modifying the linux line to the proper settings for my system. When I try to boot using Grub2, I receive an error saying that the disk was not found, Do you know what could cause this?
Last edited by ubuntudude12; 12-30-2011 at 09:22 PM.
Reason: I forgot my signature
It may be your set root= line - double and triple check that. There can also be problems if you built the kernel incorrectly. Does it get so far into the boot before it bombs, and if so what is the actual text of the error produced?
Am I assuming correctly that you are using the grub that came with Ubuntu and not the one mewntioned/build/configured in LFS?
With that assumption in mind: Doesn't running a grub-update from Ubuntu find the new LFS system?
One of my other systems runs Debian (very related to Ubuntu) and running grub-update does find other OS's installed. On Debian this is the way to do it. If you manually add entries to grub (grub.cfg to be exact) they might be removed when the grub package is updated.