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.
How exactly did you install your Grub configuration?
That's the issue I'm facing - SalixOS comes with LILO boot instead of Grub, so I don't think grub is even on my system to begin with. I don't have grub listed under my boot folders...
EDIT: Scratch that - I did ./config in the grub source folder and when I wen to boot...
Code:
root:/boot# cd grub/
root:/boot/grub# ls
i386-pc locale
`/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting.
So for the past month or so, I've been trying to build LFS through Virtualbox and the old LiveCD they had. After trouble in Chapter 6, I decided to try it out on an actual harddrive, running SalixOS and LFS has been a breeze since. After 2 days of speedily catching up and getting ahead, I've made it to Chapter 8, where the boot stuff occurs (GRUB), but now I have ran into this error. FIrst of all, I am under the impressiont hat this section is optional and I can just edit the current grub loader I have (booting Salix) to load my LFS build instead. Is this true? Anyway, I was wondering if there were any ideas where this error could be coming from? I was digging around a bit and it seems like this error usually results from forgetting to mount certain things. I've assured that everything is mounted (as in chapter 6.2 and 6.2.3) and I am doing this through chroot.
I also tried to ./configure inside the grub source directory and then;
Code:
root:/boot# cd grub/
root:/boot/grub# ls
i386-pc locale
But still got the same error.
Then I tried to boot with USB according to the instructions on this post (digging through LQ):
On the systems I have with grub2, I see at least a grub.cfg file also in that directory.
Also, in each menuentry there should be a separate set root= line. The set root line you posted "set root=(hd1,2)" is sdb2 while on the linux line you have the root=/dev/sda2. I'm really not sure what you are doing here. If you are not able to figure this out, you might do a google for 'bootinfoscript', download and run it from an Linux and post the output here for help. It should output a file called results.txt.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.