LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 11-03-2011, 04:17 AM   #1
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Rep: Reputation: Disabled
chapter 8.3 Linux -2.6.37 in LFS 6.8


Hi am a little confused at a step in chapter 8.3 Linux-2.6.37

where i have to use the following command :

make LANG=<host_LANG_value> LC_ALL= menuconfig

what should i replace the LANG value with coz

echo $LANG shows up blank and so does echo $LC_ALL

and should i leave rest of the command as it is ??
 
Old 11-03-2011, 06:09 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Ignore the LANG setting, in this case it is only used to beautify the menu's that menuconfig presents.

Just use: make menuconfig instead.

Hope this helps.
 
1 members found this post helpful.
Old 11-03-2011, 06:37 AM   #3
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
Hey thanks for replying umm... went on along by changing the below command with

make LANG=<host_LANG_value> LC_ALL= menuconfig

with

make LANG=$LC_ALL LC_ALL= menuconfig

is that ok??
 
Old 11-03-2011, 06:38 AM   #4
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
but will follow up if i get any errors thanx
 
Old 11-03-2011, 06:45 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by adi_30stm View Post
went on along by changing the below command with

make LANG=<host_LANG_value> LC_ALL= menuconfig

with

make LANG=$LC_ALL LC_ALL= menuconfig

is that ok??
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).

Hope this helps.
 
Old 11-03-2011, 07:33 AM   #6
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
Hey druuna,

It seemed it worked question about 8.4.2

the command grub-install --grub-setup=/bin/true /dev/sda

says grub-install unknown command ??
 
Old 11-03-2011, 07:59 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

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.

Hope this helps.
 
Old 11-03-2011, 08:21 AM   #8
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
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.

---------- Post added 11-03-11 at 06:52 PM ----------

i would rather prefer grub2 actually
 
Old 11-03-2011, 08:40 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Originally Posted by adi_30stm View Post
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).

Quote:
i would rather prefer grub2 actually
Grub 1.98 is grub2

Hope this helps.
 
Old 11-03-2011, 08:45 AM   #10
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
umm ... i just checked /usr/sbin/ ...grub-install is not present ... what should i do ..? and yes i am chrooted enviroment as root
 
Old 11-03-2011, 08:47 AM   #11
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
and according to the LFS book 6.8 hda1 should b sda1 right for grub?
 
Old 11-03-2011, 09:00 AM   #12
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
using fdisk -l command hda1 is bootable
 
Old 11-03-2011, 09:21 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by adi_30stm View Post
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).

Hope this helps.
 
Old 11-03-2011, 09:54 AM   #14
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
Hey the test /sbin/reboot command reboots but starts up LFS CD ...and if i exit the cd then it just gives fatal error ??
 
Old 11-03-2011, 10:29 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by adi_30stm View Post
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).

Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS version 6.5, chapter 6.19 util-linux-ng-2.16 lunatik3904 Linux From Scratch 1 05-18-2010 01:51 PM
LFS version 6.5, chapter 6.19 util-linux-ng-2.16 lunatik3904 Linux - Distributions 0 05-18-2010 12:21 PM
Re-install Linux kernel from lfs 6.5 chapter 8.3 sathyanext Linux From Scratch 1 03-12-2010 09:54 PM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration