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.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just finished my basic LFS setup. I did not follow the instructions to set up a new grub install because I wanted to use my current grub install.
I am on Mageia 1 which uses Grub 0.97. My LFS system is on /dev/sdb1. Here are the contents of my /boot/grub/menu.lst (you can see the lfs entry that I added):
Code:
timeout 10
color black/cyan yellow/cyan
password --md5 $1$vQJgb0$m1x0LIb9JhONgxl4LnXxT0
default 0
title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=1116d9a6-351e-41ed-bc36-3c225e04db4c resume=UUID=f9c9ba08-0b12-4169-b734-bf7214b66aca splash=silent vga=788
initrd (hd0,0)/boot/initrd.img
title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=1116d9a6-351e-41ed-bc36-3c225e04db4c resume=UUID=f9c9ba08-0b12-4169-b734-bf7214b66aca
initrd (hd0,0)/boot/initrd.img
title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=1116d9a6-351e-41ed-bc36-3c225e04db4c failsafe
initrd (hd0,0)/boot/initrd.img
title lfs
root (hd1,0)
kernel /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1
In case it makes a difference, menu.lst and my grub install exists on /dev/sda1.
Here is the error that I get when try to boot lfs from grub:
Code:
Booting LFS
root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1
Error 15: File not found
I think I got all of the correct, I wrote it down on a piece of paper. what is really weird is that it says "Filesystem type is ext2fs", but /dev/sdb1 is actually ext3.
Please help me get to the bottom of this.
Last edited by CincinnatiKid; 04-22-2012 at 02:45 PM.
Please post the exact contents of your $LFS/boot directory, also the output of
Code:
fdisk -l
Also, I wonder why you are inconsistent in your own configuration files, one time you write
Code:
kernel (hd0,0)/boot/vmlinuz ...
, the other time it is
Code:
root (hd1,0)
kernel /boot/vmlinuz ...
This normally shouldn't matter, but I have seen weird things already, so I would at least try if it makes a difference when you try the first notation with your LFS option.
I just figured out that the entire time, I was working in /mnt/lfs, I thought that sdb1 was mounted in /mnt/lfs, but it wasn't, hopefully I can just move all of my work over to sdb1 and have it all work, I will let you know my results.
I am not sure if this will even work since I was not working in a different partition. This can be bad, I may have to start all over again!
Last edited by CincinnatiKid; 04-22-2012 at 04:31 PM.
Reason: added
It is on a hard disk. I copied everything to it, the system attempted to boot, but I got gobs of errors that I will attempt to work out. My fear is that I will have to start everything from scratch.
I am getting a lot of messages during bootup about things being read only. Has anyone experienced anything like that? I will try to capture some of these error messages and post them.
As long as you were chrooted to /mnt/lfs it shouldn't matter if it is a directory or a partition. In fact, the system shouldn't care at all about something like that.
Since you are a long time member here you should already know that "I am getting a lot of messages during bootup about things being read only." is not a sufficient error description. Please post when exactly those error-messages appear and which "things" are reported being read-only.
mount: unknown filesystem type 'devtmpfs'
ln: failed to create symbolic link '/dev/shm': read only filesystem
cp: cannot find '/dev/null': read only file system
My filesystem type is ext3.
I tar'd everything that was in /mnt/lfs and copied it to my second hard drive, and then untar'd it, could this be a part of why there is some kind of problem?
There seems to be an error in your /etc/fstab. This causes the /dev filesystem not to be mounted as tmpfs, as is pretty normal nowaydays, which in turn prevent the device nodes and symlinks in /dev from being created (it seems that at this point the /-filesystem is still mounted read-only).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.