LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   changing ownership : operation not permitted (https://www.linuxquestions.org/questions/linux-from-scratch-13/changing-ownership-operation-not-permitted-873909/)

janakiramulu 04-09-2011 12:33 AM

changing ownership : operation not permitted
 
hi all
i am here -lfs6.7 @ 5.33. Changing Ownership (pagno-73)

1)I wanna take back up $LFS/tools directory (for use in building future LFS systems), how can i take back up (tools dir)
i mounted pendrive to /tmp
i try to copy the tools dir to /tmp: msg permission denied
lfs:/mnt/lfs$ls
sources tools lfs-packages.tar
lfs:/mnt/lfs$cp -r tools /tmp(usb device mount point)

2)i am try to change the ownership of the $LFS/tools directory to user root by running the following command:

lfs:/mnt/lfs/sources$ chown -R root:root $LFS/tools

output is lenghty,but i am posting last lines only


chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xbn': Operation not permitted

chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xsw': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xw': Operation not permitted

chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/i386linux.xu': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xn': Operation not permitted

chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xr': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xdw': Operation not permitted

chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/i386linux.xn': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts': Operation not permitted

chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/as': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/ar': Operation not permitted

chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/strip': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/ranlib': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/objcopy': Operation not permitted

chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/nm': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/ld': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/objdump': Operation not permitted

chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools': Operation not permitted


why??(what i missed )

druuna 04-09-2011 02:09 AM

Hi,
Quote:

why??(what i missed )
You missed the Note at the beginning of chapter 5.33.

janakiramulu 04-09-2011 04:00 AM

[
 
hi druuna
thanku so much for fast reply

(i am using lfs livecd)
yes that may be the mistake
(present) one terminal is lfs usr,
so i opened new terminal
here i run this
root[ ~ ]#chown -R root:root $LFS/tools
is this fine
i have to do chpter 6 @ root[ ~ ]# only right
-----------------------------------------------
i was expecting abt backup tool dir,can u tell

thanku

druuna 04-09-2011 06:38 AM

Hi,
Quote:

Originally Posted by janakiramulu (Post 4318903)
yes that may be the mistake

I'm sure that is the mistake....

Quote:

here i run this
root[ ~ ]#chown -R root:root $LFS/tools
is this fine
That is the command in the book, just make sure the LFS variable is set (probably to /mnt/lfs).

Quote:

i have to do chpter 6 @ root[ ~ ]# only right
I do believe that is what the note in chapter 5.33 says.

Quote:

i was expecting abt backup tool dir,can u tell
What did you expect? The book only mentions this would be a good point to make a backup.

If you want to make a backup I would suggest the following (as root user):
Code:

cd /mnt
tar jcf lfs.chapter5.tar.bz2 lfs

If, for whatever reason, you want to start at the beginning of chapter 6 again do the following to restore the backup (as root user):
Code:

cd /mnt
rm -rf lfs
tar jxf lfs.chapter5.tar.bz2

Hope this helps.

janakiramulu 04-09-2011 07:04 AM

hi druuna
i exit from lfs user,now
root [ /mnt ]# tar jcf lfs.chapter5.tar.bz2 lfs
output is following

bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: No space left on device
Input file = (stdin), output file = (stdout)

how come this,i made 12gb partition for lfs ,
shall i remove sources dir(all previous pkg untared sources)? in /sources
-------------------------------------------------------------------------

spiky0011 04-09-2011 07:16 AM

You should remove the build dir as you go along

janakiramulu 04-09-2011 07:20 AM

hi druuna
(i am using lfs livecd)

here i just click on logout(on menu),after few seconds
its appear as root[ ~ ]#
here i typed
root[ ~ ]#startx
reslult is
FAT:directory bread(block 5991904) failed
scsi ....rejecting i/o to dead device
.
.
.
.
FAT:directory bread(block 5991904) failed
scsi ....rejecting i/o to dead device
FAT:FAT read failedblocknr 3820)
fatal server error:
could not create lock file in /tmp/.tx0-lock
give up.
xinit:no such file or directory(errno 2):unable to connect to x server
xinit:no such process(errno 3):server error.

something went wrong a?
when i type startx @ root [ ~ ]#
it should appear gui na
whats wrong

spiky0011 04-09-2011 07:25 AM

You need to build blfs yet, The lfs is just the base system

jschiwal 04-09-2011 07:34 AM

Don't use fat. Format the drive in a Linux filesystem. The chown command will not work. The ownership and permissions of directories and files are determined enmass by the mount options.

However, you could backup up files to a fat drive using tar. The ownership and permissions information is written inside the backup.

druuna 04-09-2011 09:33 AM

Hi,

Quote:

Originally Posted by janakiramulu (Post 4319048)
root [ /mnt ]# tar jcf lfs.chapter5.tar.bz2 lfs
output is following

bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: No space left on device
Input file = (stdin), output file = (stdout)

If you are using the liveCD there is indeed no space left to do the tar command (when using /mnt/lfs.chapter5.tar.bz2 as target). You cannot write to a cd, it is a read-only medium.

If you have a memory-stick or thumb drive or whatever, mount it first (for example to /mnt/usbstick), then tar to that mounted directory (again as root):
Code:

cd /mnt
tar jcf /mnt/usbstick/lfs.chapter5.tar.bz2 lfs

PS: You should always remove the build directories after the build (which is mentioned in the book), but you do not need to remove the packages.

Hope this helps.

janakiramulu 04-10-2011 06:09 AM

hi druuna

yester day i told ,i got fat error
so today i started fresh from starting
see 5.33(lfs-6.7)
note(pagen0-73)
The commands in the remainder of this book must be performed while logged in as user root and no
longer as user lfs. Also, double check that $LFS is set in root's environment.

lfs:/mnt/lfs/sources$exit(i exited from lfs)
root[ ~ ]#chown -R root:root $LFS/tools
root[ ~ ]#echo $LFS
its iving /mnt/lfs
it should show root na according to note

janakiramulu 04-10-2011 06:34 AM

hi druuna
one more thing
till chapter 5 only i have to use lfslivecd(without distrubing,without power off)

while doing chapter 6 ,doesnt need to use lfs livecd ?right
is this right what i am saying,
if so how can i start ch6 without using lfscd
plz tell me as above(step wise plz)
thanku

druuna 04-10-2011 07:05 AM

Hi,
Quote:

Originally Posted by janakiramulu (Post 4319839)
lfs:/mnt/lfs/sources$exit(i exited from lfs)
root[ ~ ]#chown -R root:root $LFS/tools
root[ ~ ]#echo $LFS
its iving /mnt/lfs
it should show root na according to note

That depends on what you mean by "it". $LFS/tools should now be owned by root.

Quote:

Originally Posted by janakiramulu
one more thing
till chapter 5 only i have to use lfslivecd(without distrubing,without power off)

while doing chapter 6 ,doesnt need to use lfs livecd ?right
is this right what i am saying

No, that is incorrect, you still need the liveCD.

janakiramulu 04-11-2011 01:36 AM

hi
druuna
thanks for reply

i used lfslivecd(continue) ...(lfs-6.7)

@6.2.2. Mounting and Populating /dev

root [ ~ ]# mount -v --bind /dev $LFS/dev
result is following
/dev on /dev type none (rw,bind)
is this right (i didnt get 'none' word),nothing wrong this one right?

shall i go forward,

druuna 04-11-2011 03:04 AM

Hi,

If there is no error shown you can continue.

The above shown output is not an error, it is the output generated by the -v (verbose) flag.

janakiramulu 04-11-2011 03:20 AM

k thanku druuna

janakiramulu 04-11-2011 04:41 AM

k thanks druuna

janakiramulu 04-11-2011 04:53 AM

can u clarify with one example

lfs-6.7, see pageno-75,3rd paragraph

Chapter 6. Installing Basic System Software
6.1. Introduction

-We do not recommend using optimizations.
-If a package refuses to compile when using optimization, try to compile it without optimization and see if that fixes the problem. Even if the package does compile
when using optimization, there is the risk it may have been compiled incorrectly because of the complex interactions
between the code and build tools.

what is the diff 'compile the package with optimization/without optimization'

TobiSGD 04-11-2011 05:01 AM

While compiling a software, a compiler can try to optimize for either performance or size. If you use optimization, the compiler has some techniques to alter the code that it more fits the need (performance/size). This can lead to situations where the code doesn't work in the way the developer intended it to do. Either the software doesn't work at all in your system or, and this is the real danger, it works, but in some situations becomes unstable or delivers wrong results.
Therefore the book recommends to not use optimizations.

janakiramulu 04-11-2011 05:47 AM

k thanks tobisgd
now its clear
but i was expecting any exmples,to what the diff(u can give any webpage/website to exmples)

janakiramulu 04-11-2011 06:10 AM

hi druuna
1) i mounted it usb to /mnt/usbstick),
cd /mnt
tar jcf /mnt/usbstick/lfs.chapter5.tar.bz2 lfs
janu@usbstick# lfs-chapter5.tar.bz2

janu@usbstick#tar -jxf lfs-chapter.tar.bz2 ( i try to extract)
here the result
tar: lfs/tools/include/inttypes.h: Cannot open: No such file or directory
tar: lfs/tools/include/termio.h: Cannot open: No such file or directory
tar: lfs/tools/include/iconv.h: Cannot open: No such file or directory
tar: lfs/tools/include/pthread.h: Cannot open: No such file or directory
tar: lfs/tools/include/poll.h: Cannot open: No such file or directory
tar: lfs/tools/include/tic.h: Cannot open: No such file or directory
tar: lfs/tools/include/expect_tcl.h: Cannot open: No such file or directory
tar: lfs/tools/include/netrose: Cannot mkdir: No such file or directory
tar: lfs/tools/include/netrose/rose.h: Cannot open: No such file or directory
tar: lfs/tools/include/shadow.h: Cannot open: No such file or directory
tar: lfs/tools/include/memory.h: Cannot open: No such file or directory
tar: lfs/tools/include/fstab.h: Cannot open: No such file or directory
tar: lfs/tools/include/fcntl.h: Cannot open: No such file or directory
tar: lfs/tools/include/endian.h: Cannot open: No such file or directory
tar: lfs/tools/include/error.h: Cannot open: No such file or directory
tar: lfs/tools/include/aliases.h: Cannot open: No such file or directory
tar: lfs/tools/include/ifaddrs.h: Cannot open: No such file or directory
tar: lfs/tools/include/features.h: Cannot open: No such file or directory
tar: lfs/tools/include/libintl.h: Cannot open: No such file or directory
tar: lfs/tools/include/netrom: Cannot mkdir: No such file or directory
tar: lfs/tools/include/netrom/netrom.h: Cannot open: No such file or directory
tar: lfs/sources/gettext-0.18.1.1/gettext-tools/gnulib-lib/.libs: Directory renamed before its status could be extracted
tar: lfs/sources/gettext-0.18.1.1/gettext-tools/gnulib-lib: Directory renamed before its status could be extracted
tar: lfs/sources/gettext-0.18.1.1/gettext-tools/src/.libs: Directory renamed before its status could be extracted
tar: lfs/sources/gettext-0.18.1.1/gettext-tools/src: Directory renamed before its status could be extracted
tar: lfs/sources/gettext-0.18.1.1/gettext-tools: Directory renamed before its status could be extracted
tar: lfs/sources/gettext-0.18.1.1: Directory renamed before its status could be extracted
tar: lfs/sources: time stamp 2011-04-11 19:54:46 is 13244.265589325 s in the future
tar: lfs: time stamp 2011-04-11 16:15:42 is 100.265498107 s in the future
tar: Exiting with failure status due to previous errors

some thing wrong,what to do
------------------------------------------------
2)this q is not required now
(but i told u power will go off in the night),so instead of redoing all the again till ch5)

how can use this(lfs-chapter5.tar.bz2) in further,(if i start build tmw),from there i will move ch6 k
---------------------------------------------------------------
3)do i need to use lfs livecd till(which chapter) end of lfs(successful completion)
------------------------------------------------------------------------
4)k i removed sources dir,build dir (i do not remove the packages)
then i move to further
6.9.1. Installation of Glibc -pageno-86
root:/sources/glibc-build#grep Error glibc-check-log
make[2]:[/sources/glibc-build/posix/annexc.out]error 1 {ignored]

how to fix this error
shall i install as fresh only glibc-2.12.1 again?
thanks

druuna 04-11-2011 07:32 AM

Hi,

First of all:

- Please spell out your words. Not doing so makes understanding you even harder then it already is....

q -> question
pgno -> page number
k -> Ok
na -> ????
ch -> chapter
etc, etc, etc.

Using [code] [/code] or [quote] [/quote] would also help in making your posts more readable.

About your questions:

Quote:

Originally Posted by janakiramulu (Post 4320864)
janu@usbstick#tar -jxf lfs-chapter.tar.bz2 ( i try to extract)
here the result
tar: lfs/tools/include/inttypes.h: Cannot open: No such file or directory
tar: lfs/tools/include/termio.h: Cannot open: No such file or directory
tar: lfs/tools/include/iconv.h: Cannot open: No such file or directory

some thing wrong,what to do

You created the backup as user root and try to restore it as user janu, I suspect this is what creates the error(s). I also notice that your are trying to untar in /mnt/usbstick, that is probably the wrong location (it should be un-tarred in /mnt).

Also: If you want to restore the backup you should remove the original content first. If you do not do so, unwanted files and directories might still be present after the restore.

If (!!!) you want to restore the backup, do the following as root user:
Code:

cd /mnt
rm -rf lfs
tar jxf /mnt/usbstick/lfs-chapter.tar.bz2

Only do this if you are 100% sure you want to start from the beginning of chapter 6 again!!

Quote:

2)this q is not required now
(but i told u power will go off in the night),so instead of redoing all the again till ch5)

how can use this(lfs-chapter5.tar.bz2) in further,(if i start build tmw),from there i will move ch6 k
The backup (the lfs-chapter5.tar.bz2 file) is only used when you want to redo all (!!) of chapter 6. It is _not_ used after a reboot/restart. If you restore the backup you have to start from the beginning of chapter 6 again.

Have a look at the Note at the bottom of 6.4. Entering the Chroot Environment, which explains what it is you want.

Quote:

3)do i need to use lfs livecd till(which chapter) end of lfs(successful completion)
Yes, you need to use it until you successfully build the LFS system. In other words: If you can boot into your newly build system (end of chapter 9.3), the liveCD isn't needed any more (although it could still be useful to fix possible error situations).

Quote:

6.9.1. Installation of Glibc -pageno-86
root:/sources/glibc-build#grep Error glibc-check-log
make[2]:[/sources/glibc-build/posix/annexc.out]error 1 {ignored]

how to fix this error
You did not read what is said in the glibc chapter (again!!) otherwise you would have known the answer to this question.

janakiramulu 04-12-2011 12:11 AM

hi druuna
thanks a lot for reply
sorry for spelling,now i will mention very clear

according to ur 2 ans ,i can not use backup after reboot/restart right
i can use backup only if i want to do redo all of chapter 6

--------------------------------------------------------
error about glibc

yes you are right ,i didnt read the chapter 6,
here 6.9.1. Installation of Glibc -they mentioned this error ,Though it is a harmless message i can ignore
i will move to further thanku so much

janakiramulu 04-12-2011 01:35 AM

how to install the locale for 'your own ()country, language and character set.'
i want install locales of country-india,language-(english/can we select different languages as options)

after this i will do next step 'make localedata/install-locales' pageno-87

TobiSGD 04-12-2011 06:30 AM

I am wondering why people, especially druuna, can be so calm with posts like yours.
At first, it was said to you more than one time that you have to read the book and do exactly what is written there. You don't.
Then you were asked to spell out your words to make your posts more readable for the people helping you. You don't.

Sorry I have to say that, but when I see your threads regarding LFS I doubt that in the end you will have learned anything from LFS. Some people think if they follow the book and copy/paste the commands they will be more knowledgeable at the end. In some cases this is so, because people are willing to learn, even if they not have fulfilled the prerequisites in the beginning (like you did).
But in your case you seem not even to be willing to follow the book. Furthermore you are wasting the time of the people on this forums with your threads about errors that wouldn't occur or could easily be solved if you actually would read the book.
What do you think you will achieve with this?

druuna 04-12-2011 01:47 PM

Quote:

Originally Posted by TobiSGD (Post 4322078)
I am wondering why people, especially druuna, can be so calm with posts like yours.

It is a Zen thing...
Quote:

Two monks were washing their bowls in the river when they noticed a scorpion that was drowning. One monk immediately scooped it up and set it upon the bank. In the process he was stung. He went back to washing his bowl and again the scorpion fell in. The monk saved the scorpion and was again stung. The other monk asked him, "Friend, why do you continue to save the scorpion when you know it's nature is to sting?"

"Because," the monk replied, "to save it is my nature."
:D

spiky0011 04-12-2011 01:49 PM

And You Do

druuna 04-13-2011 03:49 AM

Quote:

Originally Posted by janakiramulu (Post 4321876)
how to install the locale for 'your own ()country, language and character set.'
i want install locales of country-india,language-(english/can we select different languages as options)

after this i will do next step 'make localedata/install-locales' pageno-87

I don't think you should be concerned about your country specific locale right now. Skip the individual locales part and install all locales (the make localedata/install-locales command). Keeping it simple for now is the way to go.

In chapter 7 you'll be able to set your wanted locale.

janakiramulu 04-13-2011 04:17 AM

hi druuna
thanks for reply
see pageno-189
when i enter this command
root:/sources/vim73#vim -c ':options'
result is in diff colors text and options as red colour like 1,2,3..25
i quit(<enter> for quit) from this
i moved to further is it k

janakiramulu 04-13-2011 04:34 AM

hidruuna
according to lfs book pageno-191.6.62. Stripping Again
i logout from chroot
ie
root:/logout
output is
there are stopped jobs
next i re enter to chroot
ie
root:/#chroot $LFS /tools/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/tools/bin/bash --login
output is
chroot:cannot change root directory t /tools/bin/env:not a directory(there is no directory with name)
what to do

druuna 04-13-2011 04:42 AM

Quote:

Originally Posted by janakiramulu (Post 4323071)
see pageno-189

Which chapter, I use the on-line version of the book, which does not have page numbers.

You are probably talking about chapter 6.60 and this is what the book says:
Quote:

Documentation for other available options can be obtained by running the following command:
Code:

vim -c ':options'

What is not clear about this?

druuna 04-13-2011 05:01 AM

Quote:

Originally Posted by janakiramulu (Post 4323089)
root:/logout
output is
there are stopped jobs

The bold part could be a problem, but without knowing which job(s) I cannot help you on that (and I don't know how to find out which job(s) the message is talking about)

Quote:

next i re enter to chroot
.
.
output is
chroot:cannot change root directory t /tools/bin/env:not a directory(there is no directory with name)
Does /tools/bin/env exist? (ls -l /tools/bin/env). If it does not exist you probably removed something you should not have removed.

Is LFS set (echo $LFS), if not: it should be.

janakiramulu 04-13-2011 05:29 AM

hi druuna
1)
i redo chapter 6.60. Vim-7.3
while running
root:/sources# make test (6.60.1. Installation of Vim)
is giving error in red colour (highlighted bold letters) moving fast(scrolling)
but at the end of make test result no error messages are appearing
------------------------------------------------------------------------------------------------------------

2)post no 29
yes this -6.60.2. Configuring Vim(pageno-189) ,here i will give very clear
when i issue this----root:/sources/vim73#vim -c 'ptions'
result is in diff colors text and options as red colour like 1,2,3........25
option window [while bar on that black letters with this name )
-
-
-
-
[no name]
then i press from keyboard(cntl+c)
following message showing
type:i quit(<enter> for quit)
then i press from keyboard(cntl+z)
output mesage is [1]:stopped

here i have to do nothing right(do i simply quit from this)when i issue this command 'vim -c 'ptions'
is it k.
------------------------------------------------------------------------
3)post 32
i am talking about 6.62. Stripping Again

root:/sources/vim73#logout
output is
there are stopped jobs(not bold letter)
---------------------------------------------------------
4)here i checked LFS set with following
root:/sources/:echo $LFS
result nothing
i need to set $LFS with export right
--------------------------------------------
5) where i have to perform this 6.60.2. Configuring Vim(,in vim source directory)

janakiramulu 04-13-2011 05:36 AM

6)i check
ls -l /tools/bin/env
doent exist env dir in /tools/bin

druuna 04-13-2011 05:47 AM

Hi,

If you have been building (parts of) chapter 6 without LFS being set, you need to start again from the beginning of chapter 6. You've been told the importance of the LFS variable again and again in the book........

You still do not follow the book and still don't have a clue what it is you are doing. I don't think it is wise for you to continue until you have a better understanding of linux in general and know how to follow the instructions in the book.

This also means that I will not be answering your questions any more until I see a significant improvement.

janakiramulu 04-13-2011 05:51 AM

which i am asking above questions are conflict,i would have mention(above questions) as in the book
(but i followed the book as they mention)

janakiramulu 04-15-2011 12:51 AM

hi druuna
1)i have small doubt (echo $LFS)because of this i am not moving further
first i exit from lfs usr
then
root[ ~ ]#chown -R root:root $LFS/tools
root[ ~ ]#echo $ LFS
result is /mn/lfs (this result till chapter 6.23)

2)but
6.4. Entering the Chroot Environment (page no-79)
---------------------------------
see third paragaph
From this point on, there is no need to use the LFS variable anymore, because all work will be restricted to the LFS
file system. This is because the Bash shell is told that $LFS is now the root (/) directory.
------------------------------------------------------------------------------------------------
root[ ~ [#chroot "$LFS" /tools/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h
result is I have no name!:/# this is right according to book

I have no name!:/#echo $LFS
no (any) output
this is continuing till end of chapter 6,you are saying that it should set (echo $LFS))

how can i set the variable
this is the problem(exact) ,what to do i am going to be mad(with this)
plz help me

janakiramulu 04-15-2011 01:59 AM

5.33. Changing Ownership(page no-73)
Note
The commands in the remainder of this book must be performed while logged in as user root and no
longer as user lfs. Also, double check that $LFS is set in root's environment.
------------------------------------
i set with the $LFS to root with export command
ie
export LFS=/

----------------
then i moved to further
i checked echo $LFS
giving /
this is right according to book(check that $LFS is set in root's environment)
is this right

TobiSGD 04-15-2011 06:00 AM

Read post #35.

janakiramulu 04-15-2011 11:38 PM

hi druuna
just give me clue before moving to chapter6 and till end of lfs build
if i check(any time) echo $LFS,what would be the result

janakiramulu 04-20-2011 05:54 AM

hi druuna
this time i skip this (commands)step 5.32
5.33. Changing Ownership
1)i have gotten echo $LFS result is '/mnt/lfs' after issuing this command root:/#chown -R root:root $LFS/tools
----------------------------------------------------------------------------------
2)but after this
6.4. Entering the Chroot Environment
root [ ~ ]#chroot "$LFS" /tools/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/
sbin:/tools/bin \
/tools/bin/bash --login +h

result is
i have no name!:/# (as per book is right)
i have no name!:/#echo $LFS
nothing result
-----------------------------------
3)i moved further till 6.16. GCC-4.5.1(pageno-103) )ie ulimit -s 16384
(Test the results, but do not stop at errors:)
but
root:/sources/gcc-build#make -k check
giving errors
make[2]:***[check] error 127
make[1]:***[check-fxincludes] error2
i moved further(but do not stop at errors:)
-----------------------------------------------------------------
4)and
6.49. Make-3.82 (pageno-167)
root[:/sources/make-3.82#make
result is full of errors
i tred hole chapter 6(till 6.49),echo $LFS
ITS NOT GIVING ANY result

what i am doing mistake
plz tell me

janakiramulu 04-29-2011 05:19 AM

7.8. The Bash Shell Startup Files
 
hi druuna
i learned little,i back with success of chapter 6
now @ 7.8. The Bash Shell Startup Files

cat > /etc/profile << "EOF"
# Begin /etc/profile
export LANG=<ll>_<CC>.<charmap><@modifiers>
# End /etc/profile
EOF
-------------------------------------
what i have to use(mine is country' india',language 'english',what about charmap and modifier in my case)

<ll> below with the two-letter code for the desired language (e.g., “en”) and
<CC> with the two-letter code for the appropriate country (e.g., “GB”).
<charmap> should be replaced with the canonical charmap for your chosen locale.
Optional modifiers such as “@euro” may also be present.

is it necessary to use exact our country code and other things
if i use defaultanything ,can we cnange later
does it effect on anything further
(if you need i will ouput of locale -a )

janakiramulu 04-29-2011 05:31 AM

1 Attachment(s)
i am attaching below locale -a result
and
my system is all
hp-Hewlett-Packard INDIAN COMPANY (desktop,keyboard,everything)

druuna 04-29-2011 08:17 AM

Hi,
I do believe India has more then one possible locale setting. These came up (there might be more):
Quote:

hi_IN - Hindi is the official languages of the Indian Union Government and of many states in India.
mr_IN - Marathi language spoken by the Marathi people of western and central India.
en_IN - English (default) spoken and used by the Government and Business in India.
If you want to set your local locale you probably need one of those.

Examples:
Code:

export LANG=hi_IN.utf8

export LANG=en_IN

You can omit this step, English (or more precise POSIX) will then be used. It is possible to change this at a later point.

Do read the part in the book about using UTF-8!

Hope this helps.

janakiramulu 04-29-2011 11:38 PM

hi druuna
thanks for reply
i done following
root:/sources# LC_ALL=en_IN.utf8 locale charmap
UTF-8
root:/sources# LC_ALL=en_IN.utf8 locale language
English
root:/sources# LC_ALL=en_IN.utf8 locale charmap
UTF-8
root:/sources# LC_ALL=en_IN.utf8 locale int_curr_symbol
INR
root:/sources# LC_ALL=en_IN.utf8 locale int_prefix
91
---------------------
root:/sources# cat > /etc/profile << "EOF"
> # Begin /etc/profile
>
> export LANG=en_IN.utf8 INR
> # End /etc/profile
> EOF

(there LC_ALL output is in all capital letters,but in above cat command i used small is it fine)
i am giving above what i got on terminal ,while doing above steps

druuna 04-30-2011 01:33 AM

Hi,

The int_curr_symbol is already set when choosing a locale (as the output above shows), I don't know why you added it to the export LANG=en_IN.utf8 line. Remove the INR part.

janakiramulu 04-30-2011 01:43 AM

cat > /etc/profile << "EOF"
# Begin /etc/profile
export LANG=<ll>_<CC>.<charmap><@modifiers>
# End /etc/profile
EOF
AS PER BOOK in examples,Optional modifiers currency name right [like “@euro”]
thats why i used,any way right now i am @ 7.11. Configuring the localnet Script
so ,shall go back/or what to do
can we change from here,using any command
if i do change here ,does it effect any thing

janakiramulu 04-30-2011 02:41 AM

HI DRUUNA

network card version

no network card version

which one should i use,becauze i am using lfs-livecd, in that internet is working
i open filesystem there /etc/hosts
when i open hosts folowing result

# Begin /etc/hosts

127.0.0.1 lfslivecd localhost

# End /etc/hosts
which one cat command shall i use among above 2 cat commands(

network card version

no network card version

)i typed on another system
result
janu@janu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:3e:e9:ee
inet addr:10.100.37.29 Bcast:10.100.39.255 Mask:255.255.252.0
inet6 addr: fe80::20f:feff:fe3e:e9ee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3500739 errors:0 dropped:0 overruns:0 frame:0
TX packets:4609276 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1966551602 (1.9 GB) TX bytes:723099395 (723.0 MB)
Interrupt:17

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:815 errors:0 dropped:0 overruns:0 frame:0
TX packets:815 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:55482 (55.4 KB) TX bytes:55482 (55.4 KB)
what to do

druuna 04-30-2011 02:48 AM

Quote:

Originally Posted by janakiramulu (Post 4341639)
AS PER BOOK in examples,Optional modifiers currency name right [like “@euro”]
thats why i used

As stated in the book: Optional modifiers such as “@euro” may also be present. Not needed in this case.

Quote:

so ,shall go back/or what to do
I already told you what to do.....

Quote:

can we change from here,using any command
This I also already told you.....

A while back I stopped answering your posts due to lack of knowledge on your side and you not following the book. Seeing that you made it all the way up to chapter 7.8 without any help from the LQ community I though you would have a better understanding of what is going on. But if I look at your last replies (#47 and #48) I do wonder if that is true......

druuna 04-30-2011 02:51 AM

Quote:

Originally Posted by janakiramulu (Post 4341675)
network card version

no network card version

which one should i use,becauze i am using lfs-livecd, in that internet is working

You do seem to have a working network card. Pick the correct sections from the book.


All times are GMT -5. The time now is 03:01 PM.