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.
If LC_ALL is empty to start with, it will do nothing and will probably work. But I wouldn't use the LANG/LC_ALL setting at all in this case (as already mentioned).
Before going into the specific grub question I have a question for you:
Do you need to install grub?
I'm asking because you do not mention if you share LFS with another, already installed, distribution (setting up a multi-boot system) or if this is done in a virtual machine or .....
If you do already have a working distro, grub is already present and you do not need to install it in LFS. The only thing you need to do is add an entry to your grub.cfg on your already installed distro.
Realize that if you _do_ install grub in LFS you'll overwrite the one that is installed with your other distro!! If you remove LFS at a later point you do need to re-install grub in your other distro.
If you still have doubts; Post some details about how and where LFS is installed so we can point you in the right direction.
My LFS is on a virtual machine and does not have any other OS on it ...its hda1 according to cfdisk ....and is root as the new environment created.
If you are sure that hda is used instead of sda, you need to change the grub-install command to:
Code:
grub-install --grub-setup=/bin/true /dev/hda
This is also true for all the other times sda is mentioned in the LFS document.
You do mention that there is an error message saying something like: grub-install unknown command. Did anything go wrong during the install of grub (chapter 6.44. GRUB-1.98)? Check if grub-install is present (from the top of my head: /usr/sbin/).
Another thing: You are still inside the chrooted environment when setting up grub? (you should be).
umm ... i just checked /usr/sbin/ ...grub-install is not present ... what should i do ..? and yes i am chrooted enviroment as root
Install grub as stated in chapter 6.44 (from within the chrooted environment). Do check afterwards if the grub executables are present. And after that try 8.3 again.
Quote:
and according to the LFS book 6.8 hda1 should b sda1 right for grub?
Both sda and hda are used, but sda is more common. That's why sda is used in the LFS book (you using a virtual machine might complicate things a bit, but that is a later concern if it shows up at all).
Hey the test /sbin/reboot command reboots but starts up LFS CD ...and if i exit the cd then it just gives fatal error ??
What are you trying to do?
LFS isn't bootable yet (grub isn't present and configured). You need to boot from the liveCD, mount $LFS, do the points mentioned in chapter 6.4 (do read the Note!!!). At this point you can install grub and continue with 8.4 (configure grub).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.