[SOLVED] 1st boot attempt: error: file '/boot/vmlinuz-4.13.9' not found
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.
As I read in chapter 8.3:
If the host system has a separate /boot partition, the files copied below should go there. So, the LFS kernel files should be at gentoo /boot which is hd(0,5).
This way LFS booted. So, should I leave it this way?
In addition to what has been suggested, you need to add
Code:
/dev/sdc1 /boot ext4 defaults 1 2
to LFS /etc/fstab.
You also need to make a directory called "/boot" in LFS, as this is your mount point.
Also, it is not a good idea to manually edit grub.cfg in gentoo. It will get overwritten every time gentoo updates grub. That is why I suggested putting the stanza in 40_custom.
Is there some special reason to have a separate boot partition in LFS? You could just copy vmlinuz to LFS /boot and use "set root=(hd2,2)"
Ok you need to use the complete vmlinuz name vmlinuz-4.13.9-svn-20171020.
but thats not the partition error. And set root=(hd2,1) is correct if kernel is in sdc1
In addition to what has been suggested, you need to add
Code:
/dev/sdc1 /boot ext4 defaults 1 2
to LFS /etc/fstab.
You also need to make a directory called "/boot" in LFS, as this is your mount point.
Also, it is not a good idea to manually edit grub.cfg in gentoo. It will get overwritten every time gentoo updates grub. That is why I suggested putting the stanza in 40_custom.
Is there some special reason to have a separate boot partition in LFS? You could just copy vmlinuz to LFS /boot and use "set root=(hd2,2)"
I will make the additions to LFS /etc/fstab.
I already have /boot in LFS.
I agree and will add the code in 40_custom where I already have the code for Windows 10.
I seperated /boot in a dedicated partition because I read in chapter 2.4.1.4 that making a /boot partition is highly recommended : "/boot – Highly recommended. Use this partition to store kernels and other booting information."
Shouldn't I do it?
Quote:
Originally Posted by spiky0011
Ok you need to use the complete vmlinuz name vmlinuz-4.13.9-svn-20171020.
but thats not the partition error. And set root=(hd2,1) is correct if kernel is in sdc1
Yes, I have the whole name to distinguish from gentoo kernels.
So you think set root=(hd2,1) should work? If yes why does it not?
As I read in chapter 8.3:
If the host system has a separate /boot partition, the files copied below should go there. So, the LFS kernel files should be at gentoo /boot which is hd(0,5).
This way LFS booted. So, should I leave it this way?
So this explains why the OP's vmlinuz ended up in gentoo. When I was going through the book, I missed that particular caveat in ch 8.3. No wonder my vmlinuz ended up in the right place!
I seperated /boot in a dedicated partition because I read in chapter 2.4.1.4 that making a /boot partition is highly recommended : "/boot – Highly recommended. Use this partition to store kernels and other booting information."
Shouldn't I do it?
In LFS, you can certainly have separate partitions mounted at /, /boot, /var, /tmp, /home, /var/spool, etc. I do this in fedora. It is just a matter of adding the appropriate entries in /etc/fstab. Fedora does this automatically, and they use mount by UUID. For LFS, you have to add the entries yourself. The lfs book uses mount by device file. However, I use mount by uuid in lfs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.